Skip to content

Commit

Permalink
fix(v2_7): Add missing messages. Fixes crs4#131
Browse files Browse the repository at this point in the history
List of messages: ADT_A04, ADT_A07, ADT_A08, ADT_A10, ADT_A11, ADT_A13, ADT_A14, ADT_A22, ADT_A23, ADT_A25, ADT_A26, ADT_A27, ADT_A28, ADT_A29, ADT_A31, ADT_A32, ADT_A33, ADT_A40, ADT_A41, ADT_A42, ADT_A47, ADT_A49, ADT_A51, ADT_A53, ADT_A55 MFN_M14, PMU_B02, PMU_B05, PMU_B06, PPR_PC2, PPR_PPC3
  • Loading branch information
jgarciaroca committed Aug 7, 2024
1 parent affcf22 commit dfa438f
Show file tree
Hide file tree
Showing 2 changed files with 505 additions and 0 deletions.
107 changes: 107 additions & 0 deletions hl7apy/v2_7/groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@
'ADT_A03_PROCEDURE': ('sequence',
(['PR1', SEGMENTS['PR1'], (1, 1), 'SEG'],
['ROL', SEGMENTS['ROL'], (0, -1), 'SEG'],)),
'ADT_A04_INSURANCE': ('sequence',
(['IN1', SEGMENTS['IN1'], (1, 1), 'SEG'],
['IN2', SEGMENTS['IN2'], (0, 1), 'SEG'],
['IN3', SEGMENTS['IN3'], (0, -1), 'SEG'],
['ROL', SEGMENTS['ROL'], (0, -1), 'SEG'],)),
'ADT_A04_PROCEDURE': ('sequence',
(['PR1', SEGMENTS['PR1'], (1, 1), 'SEG'],
['ROL', SEGMENTS['ROL'], (0, -1), 'SEG'],)),
'ADT_A05_INSURANCE': ('sequence',
(['IN1', SEGMENTS['IN1'], (1, 1), 'SEG'],
['IN2', SEGMENTS['IN2'], (0, 1), 'SEG'],
Expand All @@ -56,6 +64,38 @@
'ADT_A06_PROCEDURE': ('sequence',
(['PR1', SEGMENTS['PR1'], (1, 1), 'SEG'],
['ROL', SEGMENTS['ROL'], (0, -1), 'SEG'],)),
'ADT_A07_INSURANCE': ('sequence',
(['IN1', SEGMENTS['IN1'], (1, 1), 'SEG'],
['IN2', SEGMENTS['IN2'], (0, 1), 'SEG'],
['IN3', SEGMENTS['IN3'], (0, -1), 'SEG'],
['ROL', SEGMENTS['ROL'], (0, -1), 'SEG'],)),
'ADT_A07_PROCEDURE': ('sequence',
(['PR1', SEGMENTS['PR1'], (1, 1), 'SEG'],
['ROL', SEGMENTS['ROL'], (0, -1), 'SEG'],)),
'ADT_A08_INSURANCE': ('sequence',
(['IN1', SEGMENTS['IN1'], (1, 1), 'SEG'],
['IN2', SEGMENTS['IN2'], (0, 1), 'SEG'],
['IN3', SEGMENTS['IN3'], (0, -1), 'SEG'],
['ROL', SEGMENTS['ROL'], (0, -1), 'SEG'],)),
'ADT_A08_PROCEDURE': ('sequence',
(['PR1', SEGMENTS['PR1'], (1, 1), 'SEG'],
['ROL', SEGMENTS['ROL'], (0, -1), 'SEG'],)),
'ADT_A13_INSURANCE': ('sequence',
(['IN1', SEGMENTS['IN1'], (1, 1), 'SEG'],
['IN2', SEGMENTS['IN2'], (0, 1), 'SEG'],
['IN3', SEGMENTS['IN3'], (0, -1), 'SEG'],
['ROL', SEGMENTS['ROL'], (0, -1), 'SEG'],)),
'ADT_A13_PROCEDURE': ('sequence',
(['PR1', SEGMENTS['PR1'], (1, 1), 'SEG'],
['ROL', SEGMENTS['ROL'], (0, -1), 'SEG'],)),
'ADT_A14_INSURANCE': ('sequence',
(['IN1', SEGMENTS['IN1'], (1, 1), 'SEG'],
['IN2', SEGMENTS['IN2'], (0, 1), 'SEG'],
['IN3', SEGMENTS['IN3'], (0, -1), 'SEG'],
['ROL', SEGMENTS['ROL'], (0, -1), 'SEG'],)),
'ADT_A14_PROCEDURE': ('sequence',
(['PR1', SEGMENTS['PR1'], (1, 1), 'SEG'],
['ROL', SEGMENTS['ROL'], (0, -1), 'SEG'],)),
'ADT_A16_INSURANCE': ('sequence',
(['IN1', SEGMENTS['IN1'], (1, 1), 'SEG'],
['IN2', SEGMENTS['IN2'], (0, 1), 'SEG'],
Expand All @@ -64,11 +104,42 @@
'ADT_A16_PROCEDURE': ('sequence',
(['PR1', SEGMENTS['PR1'], (1, 1), 'SEG'],
['ROL', SEGMENTS['ROL'], (0, -1), 'SEG'],)),
'ADT_A28_INSURANCE': ('sequence',
(['IN1', SEGMENTS['IN1'], (1, 1), 'SEG'],
['IN2', SEGMENTS['IN2'], (0, 1), 'SEG'],
['IN3', SEGMENTS['IN3'], (0, -1), 'SEG'],
['ROL', SEGMENTS['ROL'], (0, -1), 'SEG'],)),
'ADT_A28_PROCEDURE': ('sequence',
(['PR1', SEGMENTS['PR1'], (1, 1), 'SEG'],
['ROL', SEGMENTS['ROL'], (0, -1), 'SEG'],)),
'ADT_A31_INSURANCE': ('sequence',
(['IN1', SEGMENTS['IN1'], (1, 1), 'SEG'],
['IN2', SEGMENTS['IN2'], (0, 1), 'SEG'],
['IN3', SEGMENTS['IN3'], (0, -1), 'SEG'],
['ROL', SEGMENTS['ROL'], (0, -1), 'SEG'],)),
'ADT_A31_PROCEDURE': ('sequence',
(['PR1', SEGMENTS['PR1'], (1, 1), 'SEG'],
['ROL', SEGMENTS['ROL'], (0, -1), 'SEG'],)),
'ADT_A39_PATIENT': ('sequence',
(['PID', SEGMENTS['PID'], (1, 1), 'SEG'],
['PD1', SEGMENTS['PD1'], (0, 1), 'SEG'],
['MRG', SEGMENTS['MRG'], (1, 1), 'SEG'],
['PV1', SEGMENTS['PV1'], (0, 1), 'SEG'],)),
'ADT_A40_PATIENT': ('sequence',
(['PID', SEGMENTS['PID'], (1, 1), 'SEG'],
['PD1', SEGMENTS['PD1'], (0, 1), 'SEG'],
['MRG', SEGMENTS['MRG'], (1, 1), 'SEG'],
['PV1', SEGMENTS['PV1'], (0, 1), 'SEG'],)),
'ADT_A41_PATIENT': ('sequence',
(['PID', SEGMENTS['PID'], (1, 1), 'SEG'],
['PD1', SEGMENTS['PD1'], (0, 1), 'SEG'],
['MRG', SEGMENTS['MRG'], (1, 1), 'SEG'],
['PV1', SEGMENTS['PV1'], (0, 1), 'SEG'],)),
'ADT_A42_PATIENT': ('sequence',
(['PID', SEGMENTS['PID'], (1, 1), 'SEG'],
['PD1', SEGMENTS['PD1'], (0, 1), 'SEG'],
['MRG', SEGMENTS['MRG'], (1, 1), 'SEG'],
['PV1', SEGMENTS['PV1'], (0, 1), 'SEG'],)),
'ADT_A43_PATIENT': ('sequence',
(['PID', SEGMENTS['PID'], (1, 1), 'SEG'],
['PD1', SEGMENTS['PD1'], (0, 1), 'SEG'],
Expand All @@ -81,6 +152,15 @@
'ADT_A45_MERGE_INFO': ('sequence',
(['MRG', SEGMENTS['MRG'], (1, 1), 'SEG'],
['PV1', SEGMENTS['PV1'], (1, 1), 'SEG'],)),
'ADT_A47_PATIENT': ('sequence',
(['PID', SEGMENTS['PID'], (1, 1), 'SEG'],
['PD1', SEGMENTS['PD1'], (0, 1), 'SEG'],
['ARV', SEGMENTS['ARV'], (0, -1), 'SEG'],
['MRG', SEGMENTS['MRG'], (1, 1), 'SEG'],)),
'ADT_A49_PATIENT': ('sequence',
(['PID', SEGMENTS['PID'], (1, 1), 'SEG'],
['PD1', SEGMENTS['PD1'], (0, 1), 'SEG'],
['MRG', SEGMENTS['MRG'], (1, 1), 'SEG'],)),
'ADT_A60_ADVERSE_REACTION_GROUP': ('sequence',
(['IAM', SEGMENTS['IAM'], (1, 1), 'SEG'],
['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],
Expand Down Expand Up @@ -1169,6 +1249,9 @@
(['MFE', SEGMENTS['MFE'], (1, 1), 'SEG'],
['OM1', SEGMENTS['OM1'], (1, 1), 'SEG'],
['OM7', SEGMENTS['OM7'], (0, 1), 'SEG'],)),
'MFN_M14_MF_SITE_DEFINED': ('sequence',
(['MFE', SEGMENTS['MFE'], (1, 1), 'SEG'],
['ANYHL7SEGMENT', SEGMENTS['ANYHL7SEGMENT'], (1, 1), 'SEG'],)),
'MFN_M15_MF_INV_ITEM': ('sequence',
(['MFE', SEGMENTS['MFE'], (1, 1), 'SEG'],
['IIM', SEGMENTS['IIM'], (1, 1), 'SEG'],)),
Expand Down Expand Up @@ -2665,6 +2748,30 @@
'PPR_PC1_PROBLEM_ROLE': ('sequence',
(['ROL', SEGMENTS['ROL'], (1, 1), 'SEG'],
['VAR', SEGMENTS['VAR'], (0, -1), 'SEG'],)),
'PPR_PC2_PATIENT_VISIT': ('sequence',
(['PV1', SEGMENTS['PV1'], (1, 1), 'SEG'],
['PV2', SEGMENTS['PV2'], (0, 1), 'SEG'],)),
'PPR_PC2_PROBLEM': ('sequence',
(['PRB', SEGMENTS['PRB'], (1, 1), 'SEG'],
['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],
['VAR', SEGMENTS['VAR'], (0, -1), 'SEG'],
['PPR_PC1_PROBLEM_ROLE', None, (0, -1), 'GRP'],
['PPR_PC1_PATHWAY', None, (0, -1), 'GRP'],
['PPR_PC1_PROBLEM_OBSERVATION', None, (0, -1), 'GRP'],
['PPR_PC1_GOAL', None, (0, -1), 'GRP'],
['PPR_PC1_ORDER', None, (0, -1), 'GRP'],)),
'PPR_PC3_PATIENT_VISIT': ('sequence',
(['PV1', SEGMENTS['PV1'], (1, 1), 'SEG'],
['PV2', SEGMENTS['PV2'], (0, 1), 'SEG'],)),
'PPR_PC3_PROBLEM': ('sequence',
(['PRB', SEGMENTS['PRB'], (1, 1), 'SEG'],
['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],
['VAR', SEGMENTS['VAR'], (0, -1), 'SEG'],
['PPR_PC1_PROBLEM_ROLE', None, (0, -1), 'GRP'],
['PPR_PC1_PATHWAY', None, (0, -1), 'GRP'],
['PPR_PC1_PROBLEM_OBSERVATION', None, (0, -1), 'GRP'],
['PPR_PC1_GOAL', None, (0, -1), 'GRP'],
['PPR_PC1_ORDER', None, (0, -1), 'GRP'],)),
'PPT_PCL_CHOICE': ('choice',
(['OBR', SEGMENTS['OBR'], (1, 1), 'SEG'],
['ANYHL7SEGMENT', SEGMENTS['ANYHL7SEGMENT'], (1, 1), 'SEG'],)),
Expand Down
Loading

0 comments on commit dfa438f

Please sign in to comment.