CDCgov / prime-reportstream

ReportStream is a public intermediary tool for delivery of data between different parts of the healthcare ecosystem.
https://reportstream.cdc.gov
Creative Commons Zero v1.0 Universal
73 stars 40 forks source link

Write a custom FHIR path function that validates NPI #9437

Closed victor-chaparro closed 9 months ago

victor-chaparro commented 1 year ago

User Story

As ReportStream, I need to validate NPI data is valid.

Description/Use Case

Currently the covid pipeline validates NPIs and if it's valid, additional context is added to the HL7 v2 message. The UP is only checking if the NPI is not empty to add the additional context.

Risks/Impacts/Considerations

Dev Notes

A custom FHIR path function can be written and used as part sender transforms to include the additional context. NPIUtilities.kt contains the logic needed to implement this function.

Acceptance Criteria

arnejduranovic commented 1 year ago

I think you can also validate NPI with a FHIR server that contains that info?

bishoyayoub commented 1 year ago

@victor-chaparro Should we still pursue this effort?

victor-chaparro commented 1 year ago

I think we should if we need to support the Covid pipeline features in the UP. Do you think we need to research what it would take to validate NPI against a FHIR server?

arnejduranovic commented 1 year ago

@victor-chaparro This ticket seems to be part of the greater validation effort, no? My vote is to icebox this ticket (since it includes a solution) and consider this problem later when we implement validation. Thoughts?

LaFreda1 commented 10 months ago

@arnejduranovic Is this work still required?

arnejduranovic commented 10 months ago

This remains to be seen, we don't have any hard requirements for this as of yet.

LaFreda1 commented 9 months ago

Closing this ticket for now. Will reopen if needed.