{
  "resourceType": "StructureDefinition",
  "id": "extension-eicr-trigger-code-flag",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2018-09-29T20:27:53.259+00:00"
  },
  "url": "http://hl7.org/fhir/us/ecr/StructureDefinition/extension-eicr-trigger-code-flag",
  "version": "0.0.0",
  "name": "extension-eicr-trigger-code-flag",
  "title": "eICR Trigger Code Flag",
  "status": "draft",
  "date": "2018-08-01",
  "description": "A flag which, if it is present, indicates that the **target** reference represents a triggering event and caused the eCR to be generated. It also contains the identifier and version of the RCTC value from which the code was matched. It is used in the eICR profile in the following sections:\r\r\n- Encounters Section\r- Problem Section\r\n- Plan of Treatment Section\r- Results Section",
  "fhirVersion": "3.0.1",
  "kind": "complex-type",
  "abstract": false,
  "contextType": "resource",
  "context": [
    "Reference",
    "Encounter.diagnosis"
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "eICR Trigger Code Flag",
        "definition": "Definition: A flag to indicate that the **target** reference represents a triggering event and caused the eCR to be generated. It is used in the eICR profile in the following places:\r\r\n- Composition[eICR Composition].section[Problem Section].entry\r- Composition[eICR Composition].section[Results Section].entry\r\n- Composition[eICR Composition].section[Plan of Treatment Section].entry\r- Encounter[eICR Encounter].diagnosis",
        "max": "1",
        "isModifier": false
      },
      {
        "id": "Extension.extension",
        "path": "Extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Extension.extension:triggerCodeValueSet",
        "path": "Extension.extension",
        "sliceName": "triggerCodeValueSet",
        "short": "RCTC value set OID",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Extension.extension:triggerCodeValueSet.url",
        "path": "Extension.extension.url",
        "fixedUri": "triggerCodeValueSet"
      },
      {
        "id": "Extension.extension:triggerCodeValueSet.value[x]:valueOid",
        "path": "Extension.extension.valueOid",
        "sliceName": "valueOid",
        "min": 1,
        "type": [
          {
            "code": "oid"
          }
        ],
        "example": [
          {
            "label": "General",
            "valueOid": "urn:oid:2.16.840.1.114222.4.11.7508"
          }
        ]
      },
      {
        "id": "Extension.extension:triggerCodeValueSetVersion",
        "path": "Extension.extension",
        "sliceName": "triggerCodeValueSetVersion",
        "short": "RCTC value set version",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Extension.extension:triggerCodeValueSetVersion.url",
        "path": "Extension.extension.url",
        "fixedUri": "triggerCodeValueSetVersion"
      },
      {
        "id": "Extension.extension:triggerCodeValueSetVersion.value[x]:valueString",
        "path": "Extension.extension.valueString",
        "sliceName": "valueString",
        "type": [
          {
            "code": "string"
          }
        ],
        "example": [
          {
            "label": "General",
            "valueString": "19/05/2018"
          }
        ]
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "http://hl7.org/fhir/us/ecr/StructureDefinition/extension-eicr-trigger-code-flag"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "max": "0",
        "type": [
          {
            "code": "base64Binary"
          },
          {
            "code": "boolean"
          },
          {
            "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": "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"
          }
        ]
      }
    ]
  }
}