Situational Awareness for Novel Epidemic Response
0.1.0 - STU Ballot

This page is part of the Situational Awareness for Novel Epidemic Response (v0.1.0: STU 1 Ballot 1) based on FHIR R4. The current version which supercedes this version is 1.0.0. For a full list of available versions, see the Directory of published versions

Automation Testing Examples

Test data for the Automation Test Data Set includes a Measure, Location, and Organization resources for a single facility, and test data representing two days of patient activity for a small group of test cases, designed to illustrate the capability of the automated system to distinguish the difference between cases to be included or excluded from the measure.

Automation Test Data

The test data were developed with the following questions in mind. Using data gathered electronically from an EHR:

  • Can it accurately and consistently be discerned that an inpatient with COVID-19 was admitted on the previous day?
  • Can it accurately and consistently be discerned that an inpatient had a positive viral laboratory result for SARS-Co-V-2, the organisms causing COVID-19? Likewise can it accurately and consistently be discerned when they did not?
  • Can it accurately and consistently be discerned if a patient is suspected of COVID-19 by ICD-10-CM / SNOMED CT diagnosis or problem list codes in the absence of a positive laboratory test for SARS-Co-V-2, the organisms causing COVID-19? Likewise can it accurately and consistently be discerned when they did not?
  • Can it accurately and consistently be determined that a patient has had a specimen collected in the previous 14 days that was positive for SARS-Co-V-2, the organisms causing COVID-19? The scenarios tested will include those where specimens were collected prior to admission. Likewise can it accurately and consistently be discerned when they did not?
  • Can it accurately and consistently be determined that the only prior positive viral laboratory result for SARS-Co-V-2, the organisms causing COVID-19 was collected on the day of Connectathon?
  • Can it be identified accurately and consistently that an inpatient’s location is or is not an intensive care unit?
  • Can it accurately and consistently be determined that a patient is located in the Emergency Department at the time of Connectathon, or that patient is not?
  • Can it accurately and consistently be determined that a patient was on a mechanical ventilator on the day of Connectathon, or that he was not?

This data can be be used to prepopulate a FHIR Server to support test cases for the Measure Computer Actor.

Predefined Measure for the Automation Test Data Set

This implementation guide includes a sample measure describing the measurements that were required to be reported to CDC/NHSN earlier this year for Patient Impact and Hospital Capacity. It is similar to the measure provided for the hospital capacity examples, but includes the necessary features to automate computation from data available via a FHIR Server.

Test Case 1a: Admission date =Today (T) w/ outcome = No

Condition for Test Case 1a
Encounter for Test Case 1a
Observation-1 for Test Case 1a
Patient for Test Case 1a
Location for Test Case 1a
MedicationRequest for Test Case 1a

Test Case 1b: Admission date =T-1 w/ outcome = Yes/No

Condition for Test Case 1b
Encounter for Test Case 1b
Observation-1 for Test Case 1b
Patient for Test Case 1b
Location for Test Case 1b
MedicationRequest for Test Case 1b

Test Case 1c: Admission date =T-2 w/ outcome = No

Condition for Test Case 1c
Encounter for Test Case 1c
Immunization for Test Case 1c
Observation-1 for Test Case 1c
Observation-3 for Test Case 1c
Observation-4 for Test Case 1c
Patient for Test Case 1c
Location for Test Case 1c

Test Case 2a: Positive test result w/ outcome = Yes/No

Condition for Test Case 2a
Encounter for Test Case 2a
Immunization for Test Case 2a
Observation-1 for Test Case 2a
Patient for Test Case 2a
Location for Test Case 2a

Test Case 2b: Negative test result w/ outcome = No

Condition for Test Case 2b
Encounter for Test Case 2b
Immunization for Test Case 2b
Observation-1 for Test Case 2b
Observation-4 for Test Case 2b
Patient for Test Case 2b
Location for Test Case 2b
MedicationRequest for Test Case 2b

Test Case 2c: Negative test followed by Positive w/ outcome = Yes

Condition-1 for Test Case 2c
Condition-2 for Test Case 2c
Encounter for Test Case 2c
Immunization for Test Case 2c
Observation-1 for Test Case 2c
Observation-2 for Test Case 2c
Observation-3 for Test Case 2c
Patient for Test Case 2c
Location for Test Case 2c
MedicationRequest for Test Case 2c

Test Case 3a: Neither Adm diagnosis or Problem list doument COVID w/ outcome = No

Encounter for Test Case 3a
Observation-1 for Test Case 3a
Observation-4 for Test Case 3a
Patient for Test Case 3a
Location for Test Case 3a
MedicationRequest for Test Case 3a

Test Case 3b: Adm diagnosis documents COVID but problem list does not w/ outcome = Yes

Condition for Test Case 3b
Encounter for Test Case 3b
Observation-1 for Test Case 3b
Observation-3 for Test Case 3b
Patient for Test Case 3b
Location for Test Case 3b

Test Case 4a: T-1 w/ outcome = Yes

Encounter for Test Case 4a
Observation-1 for Test Case 4a
Observation-3 for Test Case 4a
Patient for Test Case 4a
Location for Test Case 4a

Test Case 4b: T-15 w/ outcome = No

Condition for Test Case 4b
Encounter for Test Case 4b
Observation-1 for Test Case 4b
Observation-3 for Test Case 4b
Patient for Test Case 4b
Location for Test Case 4b
MedicationRequest for Test Case 4b

Test Case 4c: T w/ outcome = No

Condition for Test Case 4c
Encounter for Test Case 4c
Observation-1 for Test Case 4c
Observation-3 for Test Case 4c
Patient for Test Case 4c
Location for Test Case 4c
MedicationRequest for Test Case 4c

Test Case 5a: Only positive collected today w/ outcome = Yes

Condition for Test Case 5a
Encounter for Test Case 5a
Observation-1 for Test Case 5a
Patient for Test Case 5a
Location for Test Case 5a
MedicationRequest for Test Case 5a

Test Case 5b: Only positive collected T-1 w/ outcome = No

Encounter for Test Case 5b
Observation-1 for Test Case 5b
Patient for Test Case 5b
Location for Test Case 5b
MedicationRequest for Test Case 5b

Test Case 5c: Positives collected T-13 and T w/ outcome = No

Condition for Test Case 5c
Encounter for Test Case 5c
Observation-1 for Test Case 5c
Patient for Test Case 5c
Location for Test Case 5c

Test Case 6a: Ventilator (intubation) start date = T-1 and no stop (extubation) date w/ outcome = Yes

Condition for Test Case 6a
Encounter for Test Case 6a
Observation-1 for Test Case 6a
Observation-3 for Test Case 6a
Patient for Test Case 6a
Location for Test Case 6a

Test Case 6b: Ventilator (intubation)start date = T-3 and stop (extubation) date = T w/ outcome = Yes

Encounter for Test Case 6b
Observation-1 for Test Case 6b
Observation-3 for Test Case 6b
Observation-4 for Test Case 6b
Patient for Test Case 6b
Location for Test Case 6b
MedicationRequest for Test Case 6b

Test Case 6c: Ventilator (intubation) start date = T-6 and stop date (extubation) =T-1 w/ outcome = No

Condition for Test Case 6c
Encounter for Test Case 6c
Immunization for Test Case 6c
Observation-1 for Test Case 6c
Observation-3 for Test Case 6c
Observation-4 for Test Case 6c
Patient for Test Case 6c
Location for Test Case 6c
MedicationRequest for Test Case 6c

Test Case 7a: No w/ outcome = No

Condition for Test Case 7a
Encounter for Test Case 7a
Observation-1 for Test Case 7a
Observation-3 for Test Case 7a
Observation-4 for Test Case 7a
Patient for Test Case 7a
Location for Test Case 7a
MedicationRequest for Test Case 7a

Test Case 7b: Yes w/ outcome = Yes

Condition for Test Case 7b
Encounter for Test Case 7b
Observation-1 for Test Case 7b
Patient for Test Case 7b
Location for Test Case 7b
MedicationRequest for Test Case 7b

Test Case 8a: No w/ outcome = No

Condition for 8a
Encounter for Test Case 8a
Observation-1 for Test Case 8a
Patient for Test Case 8a
Location for Test Case 8a
MedicationRequest for Test Case 8a

Test Case 8b: Yes w/ outcome = Yes

Encounter for Test Case 8b
Observation-1 for Test Case 8b
Patient for Test Case 8b
Location for Test Case 8b
MedicationRequest for Test Case 8b

Test Case 8c: Yes w/ outcome = Yes

Encounter for Test Case 8c
Observation-1 for Test Case 8c
Observation-3 for Test Case 8c
Observation-4 for Test Case 8c
Patient for Test Case 8c
Location for Test Case 8c
MedicationRequest for Test Case 8c

Test Case 9a: Diagnosis of Suspected COVID-19 WITHOUT positive viral test w/ outcome = Yes

Condition for Test Case 9a
Encounter for Test Case 9a
Immunization for Immunization1-9a
Patient for Test Case 9a
Location for Test Case 9a

Test Case 9b: No Diagnosis of Suspected COVID-19 nor positive viral test w/ outcome = No

Condition for Test Case 9b
Encounter for Test Case 9b
Immunization for Test Case 9b
Observation-4 for Test Case 9b
Patient for Test Case 9b
Location for Test Case 9b

Test Case 9c: Diagnosis of Suspected COVID-19 AND ALSO positive viral test w/ outcome = No

Condition for Test Case 9c
Encounter for Test Case 9c
Observation-1 for Test Case 9c
Observation-3 for Test Case 9c
Patient for Test Case 9c
Location for Test Case 9c
MedicationRequest for Test Case 9c