AudaciousInquiry / fhir-saner

Situation Awareness for Novel Epidemic Response (COVID-19 driven project to track resource availability)
17 stars 0 forks source link

Reporting to CDC #36

Closed keithboone closed 4 years ago

keithboone commented 4 years ago

As a Hospital Administrator I want to convert a bundle of MeasureReport resources produced by my EHR or other system into a CSV File so that I can upload it into the CDC Form and send it to the CDC so that my staff can spend less time managing the reporting process.

Scenario: Normal Error Free Scenario Given a {Bundle} of {MeasureReport} resources produced by a system When requested by {assigned staff} Then The {CDC Reporting Component} will produce a CSV file formatted according to the CDC Specifications And the file will be uploaded and sent to the CDC.

Scenario: Bundle does not contain CDC Measures Given a {Bundle} of {MeasureReport} resources produced by a system And the {Bundle} does not contain CDC Measures When the {CDC Reporting Component} detects that no CDC Measures are present Then ???

Scenario: Bundle is missing data Given a {Bundle} of {MeasureReport} resources produced by a system And the {Bundle} is missing one of the CDC Measures And the system can normally produce that measure When the {CDC Reporting Component} detects a missing CDC Measures Then ???

Scenario: Bundle does not conform to CDC constraints And the {Bundle} is contains a set of inconsistent measures (e.g., there are less total beds occupied than covid+ beds occupied) When the {CDC Reporting Component} detects the failed constraint Then ???

keithboone commented 4 years ago

Possible implementation:

Given an {MeasureReportBundle} in XML When a request is made to convert to CSV Then convert using XSLT transform

Given an {MeasureReportBundle} in JSON When a request is made to convert to CSV Then convert to XML using FHIR tools And convert to CSV using XSLT transform