{
  "resourceType": "StructureDefinition",
  "id": "rr-eicr-processing-status-reason",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2018-09-29T20:27:06.866+00:00"
  },
  "url": "http://hl7.org/fhir/us/ecr/StructureDefinition/rr-eicr-processing-status-reason",
  "name": "rr-eicr-processing-status-reason",
  "title": "eICR Processing Status Reason",
  "status": "draft",
  "date": "2018-08-01",
  "description": "If the incoming eICR was not successfully processed for a determination of reportability, contains the reason it was not processed.  If any of the trigger codes used to generate the eICR are from an outdated version of the RCTC or the codes are marked as inactive in the latest version of the RCTC, these are flagged and component observations will hold the details of the outdated and expected versions of the RCTC.",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation",
        "path": "Observation",
        "short": "eICR Processing Status Reason",
        "definition": "If the incoming eICR was not successfully processed for a determination of reportability, contains the reason it was not processed.  If any of the trigger codes used to generate the eICR are from an outdated version of the RCTC or the codes are marked as inactive in the latest version fo the RCTC, these are flagged and compoent observations will hold the details of the outdated and expected versions of the RCTC.",
        "mustSupport": true
      },
      {
        "id": "Observation.status",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
            "valueString": "default: final"
          }
        ],
        "path": "Observation.status",
        "fixedCode": "final"
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "definition": "If the incoming eICR was not successfully processed for a determination of reportability, contains the reason it was not processed.",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "urn:oid:2.16.840.1.114222.4.5.232",
              "code": "RR6",
              "display": "eICR Processing Status Reason"
            }
          ]
        }
      },
      {
        "id": "Observation.value[x]:valueCodeableConcept",
        "path": "Observation.valueCodeableConcept",
        "sliceName": "valueCodeableConcept",
        "definition": "If the incoming eICR was not successfully processed for a determination of reportability, contains the reason it was not processed.",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "example": [
          {
            "label": "General",
            "valueCodeableConcept": {
              "coding": [
                {
                  "system": "urn:oid:2.16.840.1.114222.4.5.274",
                  "code": "RRVS30",
                  "display": "eICR was processed with the warning of: inactive RCTC code"
                }
              ]
            }
          }
        ],
        "mustSupport": true,
        "binding": {
          "strength": "extensible",
          "description": "This value set contains codes that describe the reason for the processing status (warning or error).",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/us/ecr/ValueSet/eicr-processing-status-reason-ecr"
          }
        }
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "short": "eICR Processing Status Reason Detail",
        "definition": "Further details about eICR processing status warnings or errors. If any of the trigger codes used to generate the eICR are from an outdated version of the RCTC or the codes are marked as inactive in the latest version of the RCTC, will contain the details of the outdated and expected versions of the RCTC.",
        "mustSupport": true
      },
      {
        "id": "Observation.component.code",
        "path": "Observation.component.code",
        "short": "Type of processing status reason detail",
        "example": [
          {
            "label": "General",
            "valueCodeableConcept": {
              "coding": [
                {
                  "system": "urn:oid:2.16.840.1.114222.4.5.274",
                  "code": "RRVS32",
                  "display": "Inactive RCTC code detail"
                }
              ]
            }
          }
        ],
        "mustSupport": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ObservationCode"
            }
          ],
          "strength": "extensible",
          "description": "This value set contains codes that describe the type of eICR processing status detail.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/us/ecr/ValueSet/eicr-processing-status-reason-detail-type-ecr"
          }
        }
      },
      {
        "id": "Observation.component.value[x]",
        "path": "Observation.component.value[x]",
        "short": "Processing status reason detail",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "string"
          }
        ],
        "example": [
          {
            "label": "General",
            "valueCodeableConcept": {
              "coding": [
                {
                  "system": "http://snomed.info/sct",
                  "code": "69092001",
                  "display": "Leptospirosis icterohemorrhagica (disorder)"
                }
              ]
            }
          }
        ],
        "mustSupport": true
      }
    ]
  }
}