The following are rules for creating and updating charts using the HL7 Medical Records Chart message action. These rules take into account the values available in the HL7 message and the values existing in the database.
Because the use of MRN assigning authorities varies per system, the following tables use the MRN column in a generic way. If your system is configured for assigning authorities, a match for the MRN column would require both the MRN and the assigning authority in the HL7 message to match the MRN and assigning authority in the database.
Legend for Table:
-
Yes —The value is in the HL7 message.
-
No —The value is NOT in the HL7 message.
-
Match —The value in the HL7 message matches the object's primary key value in the database.
-
Match HL7 —The value in the HL7 message matches a value in the database.
-
Blank —The value in the database is an empty string.
-
Diff —The value in the HL7 message does not match the object's primary key value in the database.
-
Diff HL7 —The value in the HL7 message does not match the value in the database.
-
[ANY] —The value in the database does not affect results.
-
N/A —Not applicable (for example, no matching chart exists in database, or values are missing from HL7 message)
# |
Received HL7 Message |
Existing DB values |
Rules |
||||||
---|---|---|---|---|---|---|---|---|---|
MPI |
MRN |
Chart |
MPI |
MRN |
Chart # |
Chart MPI |
Chart MRN |
||
1 |
Yes |
Yes |
Yes |
Match |
Match |
Match |
Match HL7 |
Match HL7 |
Update system MPI Update system MRN Update existing Chart |
2 |
Yes |
Yes |
Yes |
Match |
Match |
Match |
Diff HL7 |
Diff HL7 |
Update system MPI Update system MRN Update and Move Chart to new MPI/MRN |
3 |
Yes |
Yes |
Yes |
No Match |
No Match |
No Match |
N/A |
N/A |
New Patient Scenario Create new MPI in system Create new MRN in system Create new Chart in system |
4 |
Yes |
Yes |
Yes |
Match |
No Match |
No Match |
N/A |
N/A |
Update system MPI Create new MRN in system Create new Chart in system |
5 |
Yes |
Yes |
Yes |
Match |
Match |
No Match |
N/A |
N/A |
Update system MPI Update system MRN Create new Chart in system |
6 |
Yes |
Yes |
Yes |
No Match |
Match |
No Match |
N/A |
N/A |
Log an error; Medical Records Chart processor will not create charts for existing MRNs that do not match the existing MPI. |
7 |
Yes |
Yes |
Yes |
No Match |
No Match |
Match |
Diff HL7 |
Diff HL7 |
Create new MPI in system Create new MRN in system Update and Move Chart to new MPI/MR |
8 |
[ANY] |
[ANY] |
No |
[ANY] |
[ANY] |
N/A |
N/A |
N/A |
Log an error; Medical Records Chart processor will not create/update charts without a chart ID in the message. |
9 |
No |
No |
Yes |
N/A |
N/A |
Match |
N/A |
N/A |
Use MPI/MRN from Chart Use Rule 1 |
10 |
No |
No |
Yes |
N/A |
N/A |
No Match |
N/A |
N/A |
Log an error; Medical Records Chart processor will not create charts without an MPI or MRN in the message. |