Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use MSH-11 to identify test messages #1389

Merged
merged 17 commits into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions adr/026-hl7-test-message-routing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# 26. HL7 Test Message Routing

Date: 2024-10-10

## Decision

We will use `MSH-11` to identify and route test and non-test messages in ReportStream. The values for `MSH-11` will be:
- `T` (Training): for test files to be sent manually to partners
- `D` (Debugging): for test files **not** to be sent to partners, and sent manually
- `N` (Non-Production Testing): for test files **not** to be sent to partners, and sent by a scheduled task

## Status

Accepted.

## Context

Some of the transformations we apply in the Intermediary overwrite `MSH-5` (Receiving Application) and `MSH-6` (Receiving Facility), which are normally used in HL7 for routing purposes. That's currently the case for UCSD transformations. Because of this, we can't rely on those fields to identify and route test messages in ReportStream.

After internal discussion, we decided to use `MSH-11` (Processing ID) for this purpose as it is a field already used in HL7 to identify test messages.

We decided to use `D` (Debugging) for internal test messages and `T` (Training/Testing) for partner test messages because `T` is already used by our partners for testing, so we need to stick to that value.

## Impact

### Positive

- We will be able to identify and route test messages in ReportStream without relying on fields that are overwritten by transformations; and as a result, avoid sending test messages to partners by mistake
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth mentioning the updated routing in RS as part of this ADR? Has the routing there already been updated, and will it be the same in staging and prod or different?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm good point. I'll add some clarification on the differences between staging and prod

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some more context

- We will be able to differentiate between test messages that are sent manually and scheduled (e.g. the RS Integration Tests)
- We will have a consistent way to identify test messages across all partners, regardless of the transformations applied

## Negative

- We will have to make sure to update our internal test message to use `D` in `MSH-11`
- We will have to make sure to update the RS Integration Tests messages to use `N` in `MSH-11`

### Risks

- We may forget to update the `MSH-11` value for messages meant for internal testing, which could lead to test messages being sent to partners by mistake

## Related Issues

#1387
2 changes: 1 addition & 1 deletion examples/CA/002_CA_ORU_R01.hl7
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MSH|^~\&|SISGDSP|SISGDSP|SISHIERECEIVER^11223344^L,M,N|^^L,M,N|20230706093730||ORU^R01^ORU_R01|220220550|T|2.5.1
MSH|^~\&|SISGDSP|SISGDSP|SISHIERECEIVER^11223344^L,M,N|^^L,M,N|20230706093730||ORU^R01^ORU_R01|220220550|D|2.5.1
PID|1||^^^NPI^MR||Smith^John^^^^^B||202202050000|||2106-3^White||||||||||||2186-5^Not Hispanic or Latino||N|1
NK1|1|Smith^Sarah|MTH^Mother|850 Marina Bay Parkway, APT 125^^Richmond^CA^94806-4000^USA|^^^^^916^3720117|^^^^^916^3729999||||||||||199107010000
ORC|RE|^FormNumber||^HospOrdNumber||||||||^CORTEZ^ALAN^^^^^^^NPI||||||||||300 PASTEUR DR, RM H1524^^PALO ALTO^CA^94305-2200
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MSH|^~\&|SISGDSP|SISGDSP|SISHIERECEIVER^11903029^L,M,N|^^L,M,N|20240212103049||ORU^R01^ORU_R01|243408787|T|2.5.1
MSH|^~\&|SISGDSP|SISGDSP|SISHIERECEIVER^11903029^L,M,N|^^L,M,N|20240212103049||ORU^R01^ORU_R01|243408787|D|2.5.1
Copy link
Contributor

@somesylvie somesylvie Oct 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this change need to be made in the final messages too? Like 003_CA_ORU_R01_CDPH_produced_3_hl7_translation_final.hl7 still has T in msh-11, and I assume the other final messages are like that

Edit: Looks like all the CA messages have a final version, plus MN 0004

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question. Not in my opinion. Files that have the 1_hl7_translation, 2_fhir_transformation, 3_hl7_translation_final suffix are snapshots of the corresponding 0_initial_message file that went through each step of the RS flow, at that specific moment. Of those files, the only one that should be sent to RS and routed is 0_initial_message. We need to send it through the flow in order to update the other ones. Which makes me think we may want a different way of storing these files so they are not constantly out of date. We could think using the new Automated Staging Test - Submit Messages workflow for this purpose

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it can be okay to have the final ones be like...a snapshot in time, as long as it's noted that they are. But I think if we don't update that value, they're not actually the right output for those inputs? Since I don't think MSH-11 changes through the workflow. It might be nice to either note when they were last generated, or have a way to regenerate them automatically. The nice part of having the files more static is there's fewer surprises, but having them more up to date makes them more valid for tests

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think regenerating them automatically is a good idea. It should be straightforward to create a bash script to do that using hurl. Though we'd need to manually get and overwrite the FHIR files from the local azure storage to update those

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll create a new PR to add a script that will automate those updates as much as possible

PID|1||80008715^^^&NPI^MR||CDPH-FOUR^GIRL A MOMFOUR^^^^^B|||F||2076-8^Native Hawaiian or Other Pacific Islander||||||||||||2186-5^Not Hispanic or Latino||Y|1
NK1|1|CDPH-FOUR^MOMFOUR|MTH^Mother|123 TOWNE-CENTER DRIVE^^SAN-DIEGO^CA^92126^USA|^^^^^619^1231234|^^^^^858^2493690
ORC|RE|7171232842^FormNumber||189403712^HospOrdNumber||||||||^WILKINSON^LESLEY|||||||||UCSD JACOBS MEDICAL CENTER^^^^^^^^^R797| 2961DR YLLUT^^SAN DIEGO^CA^99999-9999
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MSH|^~\&|SISGDSP|SISGDSP|SISHIERECEIVER^11903029^L,M,N|^^L,M,N|20240226034304||ORU^R01^ORU_R01|243408836|T|2.5.1
MSH|^~\&|SISGDSP|SISGDSP|SISHIERECEIVER^11903029^L,M,N|^^L,M,N|20240226034304||ORU^R01^ORU_R01|243408836|D|2.5.1
PID|1||80008836^^^&NPI^MR||CDPHSIX^BOY MOMSIX^^^^^B|||M||2106-3^White||||||||||||2186-5^Not Hispanic or Latino||N|1
NK1|1|CDPHSIX|MTH^Mother|132 ST^^SAN DIEGO^CA^92126^USA
ORC|RE|7181233072^FormNumber||189430284^HospOrdNumber||||||||^ROSEN^REBECCA|||||||||UCSD JACOBS MEDICAL CENTER^^^^^^^^^R797| 2961DR YLLUT^^SAN DIEGO^CA^99999-9999
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MSH|^~\&|SISGDSP|SISGDSP|SISHIERECEIVER^11223344^L,M,N|^^L,M,N|20240716090632||ORU^R01^ORU_R01|220220550|T|2.5.1
MSH|^~\&|SISGDSP|SISGDSP|SISHIERECEIVER^11223344^L,M,N|^^L,M,N|20240716090632||ORU^R01^ORU_R01|220220550|D|2.5.1
PID|1||80008715^^^NPI^MR||Bird^Tweety^^^^^B||202407100000|M||2106-3^White||||||||||||2186-5^Not Hispanic or Latino||N|1
NK1|1|Bird^Big|MTH^Mother|850 Marina Bay Parkway, APT 125^^Richmond^CA^94806-4000^USA|^^^^^916^3720117|^^^^^916^3729999||||||||||199301010000
ORC|RE|ABC888^FormNumber||Q12345^HospOrdNumber||||||||^CORTEZ^ALAN^^^^^^^NPI|||||||||UCSD JACOBS MEDICAL CENTER^^^^^^^^^R797|300 PASTEUR DR, RM H1524^^PALO ALTO^CA^94305-2200
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MSH|^~\&|SISGDSP|SISGDSP|SISHIERECEIVER^11223344^L,M,N|^^L,M,N|20240716090632||ORU^R01^ORU_R01|220220550|T|2.5.1
MSH|^~\&|SISGDSP|SISGDSP|SISHIERECEIVER^11223344^L,M,N|^^L,M,N|20240716090632||ORU^R01^ORU_R01|220220550|D|2.5.1
PID|1||80008715^^^NPI^MR||Bird^Tweety^^^^^B||202407100000|M||2106-3^White||||||||||||2186-5^Not Hispanic or Latino||N|1
NK1|1|Bird^Big|MTH^Mother|850 Marina Bay Parkway, APT 125^^Richmond^CA^94806-4000^USA|^^^^^916^3720117|^^^^^916^3729999||||||||||199301010000
ORC|RE|ABC888^FormNumber||Q12345^HospOrdNumber||||||||^CORTEZ^ALAN^^^^^^^NPI|||||||||UCSD JACOBS MEDICAL CENTER^^^^^^^^^R797|300 PASTEUR DR, RM H1524^^PALO ALTO^CA^94305-2200
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MSH|^~\&|SISGDSP|SISGDSP|SISHIERECEIVER^11903029^L,M,N|^^L,M,N|20240711034913||ORU^R01^ORU_R01|243747623|T|2.5.1
MSH|^~\&|SISGDSP|SISGDSP|SISHIERECEIVER^11903029^L,M,N|^^L,M,N|20240711034913||ORU^R01^ORU_R01|243747623|D|2.5.1
PID|1||80009197^^^&NPI^MR||NICUABG^TESTONE^^^^^B||20240607|M||2076-8^Native Hawaiian or Other Pacific Islander||||||||||||2186-5^Not Hispanic or Latino||N|1
NK1|1|NICUABG|MTH^Mother
ORC|RE|7241234515^FormNumber||189609160^HospOrdNumber||||||||1790743185^HUBBARD^EUSTRATIA^^^^^^^NPI|||||||||^^^^^^^^^R797| N 054TS ARALC, TS102 E^^SAN DIEGO^CA^99999-9999
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MSH|^~\&|SISGDSP|SISGDSP|SISHIERECEIVER^11903029^L,M,N|^1730127069^L,M,N|20240722103544||ORU^R01^ORU_R01|243747672|T|2.5.1
MSH|^~\&|SISGDSP|SISGDSP|SISHIERECEIVER^11903029^L,M,N|^1730127069^L,M,N|20240722103544||ORU^R01^ORU_R01|243747672|D|2.5.1
PID|1||80008765^^^1730127069&NPI^MR||CDPHTWENTYFIVE^BOY MOM^^^^^B||202308101318|M||2131-1^Other Race||||||||||||2135-2^Hispanic or Latino||Y|2
NK1|1|CDPHTWENTYFIVE^MOM|MTH^Mother|125 STREET^^SAN DIEGO^CA^92126^USA|^^^^^619^6363636
ORC|RE|7251234856^FormNumber||189556932^HospOrdNumber||||||||1790743185^HUBBARD^EUSTRATIA^^^^^^^NPI|||||||||UC SAN DIEGO MEDICAL CENTER^^^^^^^^^R508| 5421TS HT61, SR ET^^SAN DIEGO^CA^99999-9999
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MSH|^~\&|SISGDSP|SISGDSP|SISHIERECEIVER^11903029^L,M,N|^^L,M,N|20240722010205||ORU^R01^ORU_R01|243747677|T|2.5.1
MSH|^~\&|SISGDSP|SISGDSP|SISHIERECEIVER^11903029^L,M,N|^^L,M,N|20240722010205||ORU^R01^ORU_R01|243747677|D|2.5.1
PID|1||80008766^^^&NPI^MR||CDPHTWENTYFIVE^BOY B MOM^^^^^B||202308101318|M||2131-1^Other Race||||||||||||2135-2^Hispanic or Latino||Y|1
NK1|1|CDPHTWENTYFIVE^MOM|MTH^Mother
ORC|RE|7261235086^FormNumber||189417053^HospOrdNumber||||||||1790743185^HUBBARD^EUSTRATIA^^^^^^^NPI|||||||||^^^^^^^^^R508| 5421TS HT61, SR ET^^SAN DIEGO^CA^99999-9999
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MSH|^~\&|SISGDSP|SISGDSP|SISHIERECEIVER^11903029^L,M,N|^^L,M,N|20240722021721||ORU^R01^ORU_R01|243747680|T|2.5.1
MSH|^~\&|SISGDSP|SISGDSP|SISHIERECEIVER^11903029^L,M,N|^^L,M,N|20240722021721||ORU^R01^ORU_R01|243747680|D|2.5.1
PID|1||80008667^^^&NPI^MR||ADT^BOY A ARTICHOKE^^^^^B||202305250959|M||2076-8^Native Hawaiian or Other Pacific Islander||||||||||||2186-5^Not Hispanic or Latino||Y|1
NK1|1|ADT^ARTICHOKE|MTH^Mother
ORC|RE|7271235330^FormNumber||189394505^HospOrdNumber||||||||1790743185^HUBBARD^EUSTRATIA^^^^^^^NPI|||||||||^^^^^^^^^R797| N 054TS ARALC, TS102 E^^SAN DIEGO^CA^99999-9999
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MSH|^~\&|SISGDSP|SISGDSP|SISHIERECEIVER^11903029^L,M,N|^^L,M,N|20240711034913||ORU^R01^ORU_R01|243747623|T|2.5.1
MSH|^~\&|SISGDSP|SISGDSP|SISHIERECEIVER^11903029^L,M,N|^^L,M,N|20240711034913||ORU^R01^ORU_R01|243747623|D|2.5.1
PID|1||80009197^^^&NPI^MR||NICUABG^TESTONE^^^^^B||20240607|M||2076-8^Native Hawaiian or Other Pacific Islander||||||||||||2186-5^Not Hispanic or Latino||N|1
NK1|1|NICUABG|MTH^Mother
ORC|RE|7241234515^FormNumber||189609160^HospOrdNumber||||||||1790743185^HUBBARD^EUSTRATIA^^^^^^^NPI|||||||||^^^^^^^^^R797| N 054TS ARALC, TS102 E^^SAN DIEGO^CA^99999-9999
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MSH|^~\&|SISGDSP|SISGDSP|SISHIERECEIVER^11903029^L,M,N|^^L,M,N|20240711034913||ORU^R01^ORU_R01|243747623|T|2.5.1
MSH|^~\&|SISGDSP|SISGDSP|SISHIERECEIVER^11903029^L,M,N|^^L,M,N|20240711034913||ORU^R01^ORU_R01|243747623|D|2.5.1
PID|1||80009197^^^&NPI^MR||NICUABG^TESTONE^^^^^B||20240607|M||2076-8^Native Hawaiian or Other Pacific Islander||||||||||||2186-5^Not Hispanic or Latino||N|1
NK1|1|NICUABG|MTH^Mother
ORC|RE|7241234515^FormNumber||189609160^HospOrdNumber||||||||1790743185^HUBBARD^EUSTRATIA^^^^^^^^^^NPI|||||||||^^^^^^^^^R797| N 054TS ARALC, TS102 E^^SAN DIEGO^CA^99999-9999
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MSH|^~\&|SISGDSP|SISGDSP|SISHIERECEIVER^11903029^L,M,N|^^L,M,N|20240711034913||ORU^R01^ORU_R01|243747623|T|2.5.1
MSH|^~\&|SISGDSP|SISGDSP|SISHIERECEIVER^11903029^L,M,N|^^L,M,N|20240711034913||ORU^R01^ORU_R01|243747623|D|2.5.1
PID|1||80009197^^^&NPI^MR||NICUABG^TESTONE^^^^^B||20240607|M||2076-8^Native Hawaiian or Other Pacific Islander||||||||||||2186-5^Not Hispanic or Latino||N|1
NK1|1|NICUABG|MTH^Mother
ORC|RE|7241234515^FormNumber||189609160^HospOrdNumber|||||||||||||||||^^^^^^^^^R797| N 054TS ARALC, TS102 E^^SAN DIEGO^CA^99999-9999
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MSH|^~\&|SISGDSP|SISGDSP|SISHIERECEIVER^11903029^L,M,N|^^L,M,N|20240711034913||ORU^R01^ORU_R01|243747623|T|2.5.1
MSH|^~\&|SISGDSP|SISGDSP|SISHIERECEIVER^11903029^L,M,N|^^L,M,N|20240711034913||ORU^R01^ORU_R01|243747623|D|2.5.1
PID|1||80009197^^^&NPI^MR||NICUABG^TESTONE^^^^^B||20240607|M||2076-8^Native Hawaiian or Other Pacific Islander||||||||||||2186-5^Not Hispanic or Latino||N|1
NK1|1|NICUABG|MTH^Mother
ORC|RE|7241234515^FormNumber||189609160^HospOrdNumber|||||||||||||||||^^^^^^^^^R797| N 054TS ARALC, TS102 E^^SAN DIEGO^CA^99999-9999
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MSH|^~\&|SISGDSP|SISGDSP|SISHIERECEIVER^11903029^L,M,N|^^L,M,N|20240711034913||ORU^R01^ORU_R01|243747623|T|2.5.1
MSH|^~\&|SISGDSP|SISGDSP|SISHIERECEIVER^11903029^L,M,N|^^L,M,N|20240711034913||ORU^R01^ORU_R01|243747623|D|2.5.1
PID|1||80009197^^^&NPI^MR||NICUABG^TESTONE^^^^^B||20240607|M||2076-8^Native Hawaiian or Other Pacific Islander||||||||||||2186-5^Not Hispanic or Latino||N|1
NK1|1|NICUABG|MTH^Mother
ORC|RE|7241234515^FormNumber||189609160^HospOrdNumber|||||||||||||||||^^^^^^^^^R797| N 054TS ARALC, TS102 E^^SAN DIEGO^CA^99999-9999
Expand Down
2 changes: 1 addition & 1 deletion examples/Epic/001_Epic_ORM_O01.hl7
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MSH|^~\&|EPICSTND|MB003480|PSC|MB|20230927071047|265108|ORM^O01|550162|P|2.3
MSH|^~\&|EPICSTND|MB003480|PSC|MB|20230927071047|265108|ORM^O01|550162|D|2.3
PID|1|E7082628^^^^EPI||E7082628^^^^EPI|LAST NAME^FIRST NAME^MIDDLEJ||DOB|SEX|^^^||ADDRESS 1^ADDRESS 2^CITY^STATE^ZIP^US^P^^COUNT/PARISH|COUNTY PARISH|2253351752|||MARITAL||CSN/VISIT^^^T|SSN|||ETHNICITY||||||||N
IN1|1|SRCTR^AETNA MEDICARE PLAN PPO^LCPLAN||AETNA MEDICARE PLAN PPO|PO BOX 981106^^EL PASO^TX^79998-1106^||8886323862|200-00313||||20230101||||LAST NAME ^FIRST^MIDDLE^|1|1|DOB|ADDRESS^^CITY^STATE^ZIP^US^^^PARISH/COUNTY|||4|||||||||N|||||101657292100|||||||F
GT1|1|102656163|FIRST NAME ^LAST NAME^MIDDLE^^^^L|| ADDRESS^^CITY^STATE^ZIP^US^^^PARISH/COUNTY|2253351752~2253351752||19430118|F|P/F|1|435604788|||||^^^^^US|||UNKNOWN
Expand Down
2 changes: 1 addition & 1 deletion examples/Epic/002_Epic_ORU_R01.hl7
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MSH|^~\&|MAYOREFLAB|MAYOREFLAB|C7041420||202309260758|C7041420|ORU^R01|169066674328696234|P|2.3
MSH|^~\&|MAYOREFLAB|MAYOREFLAB|C7041420||202309260758|C7041420|ORU^R01|169066674328696234|D|2.3
PID|||MRN||LAST NAME^FIRST^MIDDLE||DOB|SEX|||ADDRESS 1^ADDRESS 2^CITY^STATE^ZIP||PHONE|||||VISIT ID/CSN
OBR|1|1008303116^EPC|23MAYO-265S0173^Beaker~M186031683^MAYO|F5DNA^Factor V Leiden (R506Q) Mutation, B|||202309221145|||||||202309230940||90111^BLANCHET^PAULETTE^M||||||202309260754|||F
OBX|1|ST|21838^Factor V Leiden (R506Q) Mutation, B^MAYO^21668-9^F5 gene.p.Arg506Gln:PrThr:Pt:Bld/Tiss:Ord:Molgen^LN||Negative||Negative||||F||||||||202309260754
Expand Down
2 changes: 1 addition & 1 deletion examples/LA/001_LA_ORM_O01_NBS.hl7
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MSH|^~\&|Epic^1.2.840.114350.1.13.145.2.7.2.695071^ISO|Ochsner Health^ochsner.org^DNS|NATUS^natus.health.state.la.us^DNS|LA Public Health Lab^2.16.840.1.114222.4.3.26.3.2^ISO|20240702052916||ORM^O01^ORM_O01|31808297|T|2.5.1|||AL|AL|||||LAB_PRU_COMPONENT^^2.16.840.1.113883.9.82^ISO~LAB_TO_COMPONENT^^2.16.840.1.113883.9.22^ISO
MSH|^~\&|Epic^1.2.840.114350.1.13.145.2.7.2.695071^ISO|Ochsner Health^ochsner.org^DNS|NATUS^natus.health.state.la.us^DNS|LA Public Health Lab^2.16.840.1.114222.4.3.26.3.2^ISO|20240702052916||ORM^O01^ORM_O01|31808297|D|2.5.1|||AL|AL|||||LAB_PRU_COMPONENT^^2.16.840.1.113883.9.82^ISO~LAB_TO_COMPONENT^^2.16.840.1.113883.9.22^ISO
NK1|2|SMITH^SADIE^S^^^^L|MTH^Mother^HL70063^^^^^^Mother|555 STATE HIGHWAY 13^^DEER CREEK^LA^56527-9657^USA^H^^OTTER TAIL|^^PH^^^763^5555555^^(763)555-5555
NK1|1|SMITH^SAMUAL^^^^^L|FTH^Father^HL70063^^^^^^Father|^^^^^USA^H^^|^^PH^^^507^5556666^^(507)555-6666
PID|1||11102779^^^CRPMRN^MR||SMITH^BB SARAH^^^^^L|SMITH^SADIE^S|20240630131023|M|||555 STATE HIGHWAY 13^^DEER CREEK^LA^56527-9657^USA^H^^OTTER TAIL||^^PH^^^763^5555555^^(763)555-5555|||||||||||N|1|||||N
Expand Down
2 changes: 1 addition & 1 deletion examples/MN/002_MN_OML_O21_NBS.hl7
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MSH|^~\&|Epic^1.2.840.114350.1.13.145.2.7.2.695071^ISO|Centracare^centracare.com^DNS|NATUS^natus.health.state.mn.us^DNS|MN Public Health Lab^2.16.840.1.114222.4.1.10080^ISO|20230506052916-0500||OML^O21^OML_O21|31808297|P|2.5.1|||AL|AL|||||LAB_PRU_COMPONENT^^2.16.840.1.113883.9.82^ISO~LAB_TO_COMPONENT^^2.16.840.1.113883.9.22^ISO
MSH|^~\&|Epic^1.2.840.114350.1.13.145.2.7.2.695071^ISO|Centracare^centracare.com^DNS|NATUS^natus.health.state.mn.us^DNS|MN Public Health Lab^2.16.840.1.114222.4.1.10080^ISO|20230506052916-0500||OML^O21^OML_O21|31808297|D|2.5.1|||AL|AL|||||LAB_PRU_COMPONENT^^2.16.840.1.113883.9.82^ISO~LAB_TO_COMPONENT^^2.16.840.1.113883.9.22^ISO
PID|1||11102779^^^CRPMRN^MR||SMITH^BB SARAH^^^^^L||20230504131023-0500|M|||555 STATE HIGHWAY 13^^DEER CREEK^MN^56527-9657^USA^^^OTTER TAIL|||||||||||||N|1|||||N
NK1|1|SMITH^SAMUAL^^^^^L|FTH^Father^HL70063^^^^^^Father|^^^^^USA^H^^|^^PH^^^507^5556666^^(507)555-6666
NK1|2|SMITH^SADIE^S^^^^L|MTH^Mother^HL70063^^^^^^Mother|555 STATE HIGHWAY 13^^DEER CREEK^MN^56527-9657^USA^H^^OTTER TAIL|^^PH^^^763^5555555^^(763)555-5555
Expand Down
2 changes: 1 addition & 1 deletion examples/MN/003_MN_ORM_O01_NBS.hl7
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MSH|^~\&|Epic^1.2.840.114350.1.13.145.2.7.2.695071^ISO|Centracare^centracare.com^DNS|NATUS^natus.health.state.mn.us^DNS|MN Public Health Lab^2.16.840.1.114222.4.1.10080^ISO|20230506052916-0500||ORM^O01^ORM_O01|31808297|P|2.5.1|||AL|AL|||||LAB_PRU_COMPONENT^^2.16.840.1.113883.9.82^ISO~LAB_TO_COMPONENT^^2.16.840.1.113883.9.22^ISO
MSH|^~\&|Epic^1.2.840.114350.1.13.145.2.7.2.695071^ISO|Centracare^centracare.com^DNS|NATUS^natus.health.state.mn.us^DNS|MN Public Health Lab^2.16.840.1.114222.4.1.10080^ISO|20230506052916-0500||ORM^O01^ORM_O01|31808297|D|2.5.1|||AL|AL|||||LAB_PRU_COMPONENT^^2.16.840.1.113883.9.82^ISO~LAB_TO_COMPONENT^^2.16.840.1.113883.9.22^ISO
PID|1||11102779^^^CRPMRN^MR||SMITH^BB SARAH^^^^^L|SMITH^SADIE^S|20230504131023-0500|M|||555 STATE HIGHWAY 13^^DEER CREEK^MN^56527-9657^USA^H^^OTTER TAIL||^^PH^^^763^5555555^^(763)555-5555|||||||||||N|1|||||N
ORC|NW|421832901^EPIC^1.2.840.114350.1.13.145.2.7.2.695071^ISO|||||||20230506052913-0500|||1265136360^JONES^JANE^^^^^^NPI^L^^^NPI|||||||||ST. CLOUD HOSPITAL^L^^^^CMS^NPI^^^1043269798~ST. CLOUD HOSPITAL^L^^^^MN Public Health Lab^Submitter ID^^^739
OBR|1|421832901^EPIC^1.2.840.114350.1.13.145.2.7.2.695071^ISO||54089-8^Newborn screening panel American Health Information Community (AHIC)^LN|||20230506050000||||||||440500007&Blood spot specimen&SCT
Expand Down
2 changes: 1 addition & 1 deletion examples/MN/003_MN_ORM_O01_NBS_extended.hl7
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MSH|^~\&|Epic^1.2.840.114350.1.13.145.2.7.2.695071^ISO|Centracare^centracare.com^DNS|NATUS^natus.health.state.mn.us^DNS|MN Public Health Lab^2.16.840.1.114222.4.1.10080^ISO|20230506052916-0500||ORM^O01^ORM_O01|31808297|P|2.5.1|||AL|AL|||||LAB_PRU_COMPONENT^^2.16.840.1.113883.9.82^ISO~LAB_TO_COMPONENT^^2.16.840.1.113883.9.22^ISO
MSH|^~\&|Epic^1.2.840.114350.1.13.145.2.7.2.695071^ISO|Centracare^centracare.com^DNS|NATUS^natus.health.state.mn.us^DNS|MN Public Health Lab^2.16.840.1.114222.4.1.10080^ISO|20230506052916-0500||ORM^O01^ORM_O01|31808297|D|2.5.1|||AL|AL|||||LAB_PRU_COMPONENT^^2.16.840.1.113883.9.82^ISO~LAB_TO_COMPONENT^^2.16.840.1.113883.9.22^ISO
PID|1||11102779^^^CRPMRN^MR||SMITH^BB SARAH^^^^^L||20230504131023-0500|M|||555 STATE HIGHWAY 13^^DEER CREEK^MN^56527-9657^USA^^^OTTER TAIL|||||||||||||N|1|||||N
NK1|1|SMITH^SAMUAL^^^^^L|FTH^Father^HL70063^^^^^^Father|^^^^^USA^H^^|^^PH^^^507^5556666^^(507)555-6666
NK1|2|SMITH^SADIE^S^^^^L|MTH^Mother^HL70063^^^^^^Mother|555 STATE HIGHWAY 13^^DEER CREEK^MN^56527-9657^USA^H^^OTTER TAIL|^^PH^^^763^5555555^^(763)555-5555
Expand Down
2 changes: 1 addition & 1 deletion examples/MN/003_MN_ORM_O01_NBS_simplified.hl7
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MSH|^~\&|Epic^1.2.840.114350.1.13.145.2.7.2.695071^ISO|Centracare^centracare.com^DNS|NATUS^natus.health.state.mn.us^DNS|MN Public Health Lab^2.16.840.1.114222.4.1.10080^ISO|20230506052916-0500||ORM^O01^ORM_O01|31808297|P|2.5.1|||AL|AL|||||LAB_PRU_COMPONENT^^2.16.840.1.113883.9.82^ISO~LAB_TO_COMPONENT^^2.16.840.1.113883.9.22^ISO
MSH|^~\&|Epic^1.2.840.114350.1.13.145.2.7.2.695071^ISO|Centracare^centracare.com^DNS|NATUS^natus.health.state.mn.us^DNS|MN Public Health Lab^2.16.840.1.114222.4.1.10080^ISO|20230506052916-0500||ORM^O01^ORM_O01|31808297|D|2.5.1|||AL|AL|||||LAB_PRU_COMPONENT^^2.16.840.1.113883.9.82^ISO~LAB_TO_COMPONENT^^2.16.840.1.113883.9.22^ISO
PID|1||11102779^^^CRPMRN^MR||SMITH^BB SARAH^^^^^L|SMITH^SADIE^S|20230504131023-0500|M|||555 STATE HIGHWAY 13^^DEER CREEK^MN^56527-9657^USA^H^^OTTER TAIL||^^PH^^^763^555555^^(763)555-5555|||||||||||N|1|||||N
ORC|NW|421832901^EPIC^1.2.840.114350.1.13.145.2.7.2.695071^ISO|||||||20230506052913-0500|||1265136360^JONES^JANE^^^^^^NPI^L^^^NPI|||||||||ST. CLOUD HOSPITAL^L^^^^CMS^NPI^^^1043269798~ST. CLOUD HOSPITAL^L^^^^MN Public Health Lab^Submitter ID^^^739
OBR|1|421832901^EPIC^1.2.840.114350.1.13.145.2.7.2.695071^ISO||54089-8^Newborn screening panel American Health Information Community (AHIC)^LN|||20230506050000|||||||20230506060000-0500|440500007&Blood spot specimen&SCT
Expand Down
2 changes: 1 addition & 1 deletion examples/MN/004_MN_ORU_R01_NBS_0_initial_message.hl7
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MSH|^~\&|Natus^natus.health.state.mn.us^DNS|MN Public Health Lab^2.16.840.1.114222.4.1.10080^ISO|Epic^1.2.840.114350.1.13.145.2.7.2.695071^ISO|Centracare^centracare.com^DNS|20230606192849-0500||ORU^R01^ORU_R01|20230607002849_0365|P|2.5.1|||AL|AL|||||LRI_NG_FRN_PROFILE^^2.16.840.1.113883.9.195.3.4^ISO~LRI_NDBS_COMPONENT^^2.16.840.1.113883.9.195.3.6^ISO~LAB_PRN_Component^^2.16.840.1.113883.9.81^ISO~LAB_TO_COMPONENT^^2.16.840.1.113883.9.22^ISO|
MSH|^~\&|Natus^natus.health.state.mn.us^DNS|MN Public Health Lab^2.16.840.1.114222.4.1.10080^ISO|Epic^1.2.840.114350.1.13.145.2.7.2.695071^ISO|Centracare^centracare.com^DNS|20230606192849-0500||ORU^R01^ORU_R01|20230607002849_0365|D|2.5.1|||AL|AL|||||LRI_NG_FRN_PROFILE^^2.16.840.1.113883.9.195.3.4^ISO~LRI_NDBS_COMPONENT^^2.16.840.1.113883.9.195.3.6^ISO~LAB_PRN_Component^^2.16.840.1.113883.9.81^ISO~LAB_TO_COMPONENT^^2.16.840.1.113883.9.22^ISO|
PID|1||11102779^^^CRPMRN^MR||SMITH^BB SARAH^^^^L||20230504131000||||555 STATE HIGHWAY 13^^DEER CREEK^MN^565279657^^H^^|||||||||||||||||||N|
NK1|1|SMITH^SADIE^S^^^^L|MTH^Mother^HL70063^^^^^^Mother|555 STATE HIGHWAY 13^^DEER CREEK^MN^565279657^USA^H^^|^^PH^^^763^5555555^^(763)555-5555^^^7635555555|
ORC|RE|423787478^EPIC^1.2.840.114350.1.13.145.2.7.2.695071^ISO|20231561137^MN Public Health Lab^2.16.840.1.114222.4.1.10080^ISO|||||||||1174911127^SMITH^SAMANTHA^^^^^^NPI^L^^^NPI|||||||||ST. CLOUD HOSPITAL^L^^^^CMS^NPI^^^1043269798~ST. CLOUD HOSPITAL^L^^^^MN Public Health Lab^Submitter ID^^^739||||||||||54089-8^Newborn screening panel American Health Information Community (AHIC)^LN|
Expand Down
2 changes: 1 addition & 1 deletion examples/MN/005_MN_ADT_A01.hl7
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MSH|^~\&|SCH|SCH||Idx|20230504131924||ADT^A01|407750281|P|2.3
MSH|^~\&|SCH|SCH||Idx|20230504131924||ADT^A01|407750281|D|2.3
EVN|A01|20230504131924||ADT_EVENT|CSY6293^JOHNSON^JANE^J^^^^^CCHS^^^^^SCH
PID|1||11102779^^^SCH||SMITH^BB SARAH||20230504131023|M|||555 STATE HIGHWAY 13^^DEER CREEK^MN^56527-9657^US^^^OTTER TAIL||||||||||SMITH^SADIE^S^|||N|1|||||N
NK1|1|SMITH^SAMUAL^^|FTH^Father^HL70063|^^^^^^^^|^^||||||||||||||||||||||||||||||
Expand Down
Loading