prime-simplereport
prime-simplereport copied to clipboard
Address STLT feedback from AIMS testing
BACKEND PULL REQUEST
Related Issue
- Resolves #9267
- Resolves #9268
- Resolves #9269
- Resolves #9273
- Resolves #9274
Changes Proposed
- Use APHL-assigned IDs for message header (MSH) segments MSH-3 Sending Application and MSH-4 Sending Facility as well as File Header Segment (FHS) and Batch Header Segment (BHS)
- Add telecom equipment type PH in all phone number fields
- Add telecom use codes PRN (Personal Residence Number) for patient phones and WPN (Work Number) for provider and facility phones
- Remove millisecond precision from HL7 timestamps since it caused issues in Alabama's system
- Ensure timestamps in FHS and BHS are earlier than or equal to timestamp in MSH
Additional Information
- For MSH-3 Sending Application, I created
HL7Propertiessince are values that will change depending on the environment - For MSH-4 Sending Facility, I added these to
HL7Constantssince these will stay the same for all environments, but open to moving them to HL7Properties if we prefer - As of 11/4/2025, APHL stated we should continue to use the existing CDC OID we've been using for other HL7 fields like ORC-3.3 where SimpleReport is identified as the assigning authority.
Testing
- Deployed on dev5
- Submit a bulk upload file
- Check AIM S3 bucket with AIMSCLI tool to see if the HL7 message was created
node aims.ts ls - Verify contents on the HL7 message created
node aim.ts getmessage object_key_here
Locally
- Make sure
aimsReportingEnabledis set to true - Run backend in debug with a breakpoint here in AimsReportingService
- Verify contents on the
batchMessagestring and the generatedobjectKey
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
100.0% Coverage on New Code
0.0% Duplication on New Code