prime-reportstream icon indicating copy to clipboard operation
prime-reportstream copied to clipboard

Map CSTE Member OID to member-oid extension during convert-step

Open victor-chaparro opened this issue 1 year ago • 6 comments

User Story

As a STLT receiving ELR, I want to only receive test results that are antigen tests for a given condition, so that my programs have the correct type of tests we are interested in analyzing.

Description/Use Case

Currently the covid pipeline uses the Covid LIVD table to determine if reports are for antigen tests. This is needed because some receivers only want to receive antigen tests. We need the ability to do this in the UP, but can't rely on the LIVD table since that only supports Covid results and this needs to work for any condition.

For the UP, we need to implement a way to route items based on whether they are antigen or another type. This information is reflected by the Member OID the test performed belongs to

Risks/Impacts/Considerations

Dev Notes

Implementation checklist:

  1. Add new extension to map test code member oid (Member OID column in RS condition mapping table): https://reportstream.cdc.gov/fhir/StructureDefinition/test-performed-member-oid
  2. Modify convert step to stamp ELR messages with test-performed-member-oid
  3. Ensure this data is NOT in Azure Events

With the above implemented, the following routing filter expression should be functional:

%resource.code.coding.extension('https://reportstream.cdc.gov/fhir/StructureDefinition/condition-code').value.where(code  in ('840539006')).exists() and %resource.interpretation.coding.code = 'A' and %resource.code.coding.extension('https://reportstream.cdc.gov/fhir/StructureDefinition/test-performed-member-oid').value.where(code  in ('2.16.840.1.113762.1.4.1146.1142')).exists()

Docs on our condition to code mapping dataset can be found here: prime-router/docs/design/proposals/0023-condition-to-code-mapping/0023-condition-to-code-mapping.md

CSV version of the code to condition mapping table in our repo: prime-router/metadata/tables/local/observation-mapping.csv

Official dataset our condition mapping table is derived from: https://docs.google.com/spreadsheets/d/1rO_p145xXO1AD76vx8vBqXgoQUnLqfc8/edit?gid=739612351#gid=739612351

Acceptance Criteria

  • [ ] test-performed-member-oid stamped on Observation resources in ELR messages
  • [ ] Results can be filtered out based on test type (member oid) as determined by CSTE value sets
  • [ ] The process to determine results are antigen is documented

victor-chaparro avatar May 22 '24 21:05 victor-chaparro

Will require Platform input for longer term solution

chris-kuryak avatar Jun 18 '24 18:06 chris-kuryak

Projected to take more than 1 sprint

chris-kuryak avatar Jun 18 '24 18:06 chris-kuryak

@victor-chaparro Per James, can we update this ticket and potentially hand off to Platform since it seems like it is more in their wheelhouse?

chris-kuryak avatar Jul 16 '24 21:07 chris-kuryak

Need to meet with @victor-chaparro and @chris-kuryak to better understand what values we are expecting to be stamped and how we can use the OOID to get the values we want.

arnejduranovic avatar Oct 04 '24 15:10 arnejduranovic

Unblocked. Spoke with Victor and got clarification on what exactly needs to be stamped. Will update ticket.

arnejduranovic avatar Oct 07 '24 14:10 arnejduranovic

Hey team! Please add your planning poker estimate with Zenhub @adegolier @arnejduranovic @david-navapbc @jack-h-wang @JFisk42 @kant777 @mkalish @thetaurean

MichaelEsuruoso avatar Oct 07 '24 16:10 MichaelEsuruoso

This link https://reportstream.cdc.gov/fhir/StructureDefinition/test-performed-member-oid is broken

kant777 avatar Oct 29 '24 06:10 kant777

@kant777 Where is that link located on the website?

@victor-chaparro @jillian-hammer FYI

chris-kuryak avatar Oct 29 '24 15:10 chris-kuryak

Here is the first version of the PR https://github.com/CDCgov/prime-reportstream/pull/16397/files this is not full ready yet. I plan getting a review from @arnejduranovic or @mkalish to make sure I am in the right direction

kant777 avatar Oct 30 '24 03:10 kant777

Almost ready, fixing some tests. Slight delay due to onboarding.

kant777 avatar Nov 06 '24 17:11 kant777

All tests pass. https://github.com/CDCgov/prime-reportstream/pull/16397

kant777 avatar Nov 07 '24 13:11 kant777

fixed according to the review. stamping oid for each condition rather than for each observation. Also added a test case and made sure it passes

kant777 avatar Dec 03 '24 10:12 kant777

Spillover-Scope Creep- The ticket the not originally specify what the output should look like. Changes required

MichaelEsuruoso avatar Dec 17 '24 17:12 MichaelEsuruoso

@kant777 please make sure to update this tickets with your comment

MichaelEsuruoso avatar Jan 21 '25 16:01 MichaelEsuruoso