CDCgov / prime-simplereport

SimpleReport is a fast, free, and easy way for COVID-19 testing facilities to report results to public health departments.
https://simplereport.gov
Creative Commons Zero v1.0 Universal
58 stars 54 forks source link

Convert uploaded HIV CSV to FHIR #5627

Closed mehansen closed 1 year ago

mehansen commented 1 year ago

Background

HIV data uploaded in CSV format must be converted to FHIR before it can be sent to the ReportStream Universal Pipeline so that it can be routed to LAC.

Action requested

Update gov.cdc.usds.simplereport.service.TestResultUploadService#processHIVResultCSV to convert input to FHIR and send to UP You can use processResultCSV as a reference. Should be able to change fhir converter code to conditionally include sections on gender and birth sex if they are in the row

Acceptance Criteria

A CSV of the correct schema uploaded via our support page link is converted to a FHIR bundle log the serialized fhir bundle in processHIVResultCSV A CSV of incorrect schema can just fail silently (no need for validation support at this time) Exclude fields related to sexuality or gender of sexual partners at this time

Additional context

TestResultUploadService BulkUploadResultsToFhir

mehansen commented 1 year ago

Closing as won't do