HUD-Data-Lab / Data.Exchange.and.Interoperability

Repository for Homeless Management Information System (HMIS) development and management of products to support data exchange and interoperability
GNU General Public License v3.0
2 stars 6 forks source link

Nuanced Record Matching Logic #12

Open drobadey opened 3 months ago

drobadey commented 3 months ago

This is somewhat related to https://github.com/HUD-Data-Lab/Data.Exchange.and.Interoperability/issues/11 in the context of storing ID matches.

Summary The API specs as they stand now do not appear to allow for nuanced record matching logic for things like CE assessments. Without a more nuanced matching logic, a CE assessment (or any enrollment-related record) may not be connected to a relevant enrollment. The API specs should be updated in the context of assessments (as one example) to incorporate a more nuanced record matching logic. Below is a scenario to illustrate this concern.

Scenario

Primary question Given that the EHR in this scenario doesn’t have the concept of a program/enrollment, what logic determines how that assessment from EHR connects to correct enrollment in HMIS?

Assumptions

Concern The API specs as they exist currently appear to assume a 1:1 relationship of IDs between systems. At the higher level of the record hierarchy, pulling a list of IDs and then matching based on those IDs may be satisfactory (as proposed in Issue 1 - https://github.com/HUD-Data-Lab/Data.Exchange.and.Interoperability/issues/1). However, in the scenario described above, in order to identify the correct enrollment to connect an assessment to, the API would need to pull the EnrollmentID that would include it in the CE APR. This logic should include, but is not limited to, ensuring that:

Note 1: this concern may not be as applicable for CE systems where Healthcare Provider A can be set up as their own agency/program but would be very applicable for communities that have all of their CE process go through one agency/program.

Note 2: The need for more nuanced matching logic may also be applicable to connecting:

Conclusion As the API specs are currently written, a CE assessment may not be connected to the enrollment that would ensure the inclusion of that assessment in the CE APR. As a result, the API specs should be updated in the context of assessments, and in several other places, to incorporate more nuanced matching logic.

drobadey commented 1 week ago

This will be reviewed with the future iteration of the HMIS API Reference that entails CE assessments.

A portion of this concern has already been resolved with "summary" endpoints.