From 6ec74d48913af99d6b0a561d4a61b9095ddae20a Mon Sep 17 00:00:00 2001 From: Tzvi Shir-Vaknin Date: Tue, 2 Jul 2024 15:04:00 +0300 Subject: [PATCH] feat: adds missing SIU to v2.3 and v2.3.1 --- hl7apy/v2_3/groups.py | 312 ++++++++++++++++++++++++++++++++++++ hl7apy/v2_3/messages.py | 78 +++++++++ hl7apy/v2_3_1/groups.py | 325 ++++++++++++++++++++++++++++++++++++++ hl7apy/v2_3_1/messages.py | 78 +++++++++ 4 files changed, 793 insertions(+) diff --git a/hl7apy/v2_3/groups.py b/hl7apy/v2_3/groups.py index 5f5d24c..4e1a5e0 100644 --- a/hl7apy/v2_3/groups.py +++ b/hl7apy/v2_3/groups.py @@ -1318,6 +1318,318 @@ 'SIU_S12_SERVICE': ('sequence', (['AIS', SEGMENTS['AIS'], (1, 1), 'SEG'], ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S13_GENERAL_RESOURCE': ('sequence', + (['AIG', SEGMENTS['AIG'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S13_LOCATION_RESOURCE': ('sequence', + (['AIL', SEGMENTS['AIL'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S13_PATIENT': ('sequence', + (['PID', SEGMENTS['PID'], (1, 1), 'SEG'], + ['PV1', SEGMENTS['PV1'], (0, 1), 'SEG'], + ['PV2', SEGMENTS['PV2'], (0, 1), 'SEG'], + ['OBX', SEGMENTS['OBX'], (0, -1), 'SEG'], + ['DG1', SEGMENTS['DG1'], (0, -1), 'SEG'],)), + 'SIU_S13_PERSONNEL_RESOURCE': ('sequence', + (['AIP', SEGMENTS['AIP'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S13_RESOURCES': ('sequence', + (['RGS', SEGMENTS['RGS'], (1, 1), 'SEG'], + ['SIU_S13_SERVICE', None, (0, -1), 'GRP'], + ['SIU_S13_GENERAL_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S13_LOCATION_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S13_PERSONNEL_RESOURCE', None, (0, -1), 'GRP'],)), + 'SIU_S13_SERVICE': ('sequence', + (['AIS', SEGMENTS['AIS'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S14_GENERAL_RESOURCE': ('sequence', + (['AIG', SEGMENTS['AIG'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S14_LOCATION_RESOURCE': ('sequence', + (['AIL', SEGMENTS['AIL'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S14_PATIENT': ('sequence', + (['PID', SEGMENTS['PID'], (1, 1), 'SEG'], + ['PV1', SEGMENTS['PV1'], (0, 1), 'SEG'], + ['PV2', SEGMENTS['PV2'], (0, 1), 'SEG'], + ['OBX', SEGMENTS['OBX'], (0, -1), 'SEG'], + ['DG1', SEGMENTS['DG1'], (0, -1), 'SEG'],)), + 'SIU_S14_PERSONNEL_RESOURCE': ('sequence', + (['AIP', SEGMENTS['AIP'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S14_RESOURCES': ('sequence', + (['RGS', SEGMENTS['RGS'], (1, 1), 'SEG'], + ['SIU_S14_SERVICE', None, (0, -1), 'GRP'], + ['SIU_S14_GENERAL_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S14_LOCATION_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S14_PERSONNEL_RESOURCE', None, (0, -1), 'GRP'],)), + 'SIU_S14_SERVICE': ('sequence', + (['AIS', SEGMENTS['AIS'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S15_GENERAL_RESOURCE': ('sequence', + (['AIG', SEGMENTS['AIG'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S15_LOCATION_RESOURCE': ('sequence', + (['AIL', SEGMENTS['AIL'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S15_PATIENT': ('sequence', + (['PID', SEGMENTS['PID'], (1, 1), 'SEG'], + ['PV1', SEGMENTS['PV1'], (0, 1), 'SEG'], + ['PV2', SEGMENTS['PV2'], (0, 1), 'SEG'], + ['OBX', SEGMENTS['OBX'], (0, -1), 'SEG'], + ['DG1', SEGMENTS['DG1'], (0, -1), 'SEG'],)), + 'SIU_S15_PERSONNEL_RESOURCE': ('sequence', + (['AIP', SEGMENTS['AIP'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S15_RESOURCES': ('sequence', + (['RGS', SEGMENTS['RGS'], (1, 1), 'SEG'], + ['SIU_S15_SERVICE', None, (0, -1), 'GRP'], + ['SIU_S15_GENERAL_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S15_LOCATION_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S15_PERSONNEL_RESOURCE', None, (0, -1), 'GRP'],)), + 'SIU_S15_SERVICE': ('sequence', + (['AIS', SEGMENTS['AIS'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S16_GENERAL_RESOURCE': ('sequence', + (['AIG', SEGMENTS['AIG'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S16_LOCATION_RESOURCE': ('sequence', + (['AIL', SEGMENTS['AIL'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S16_PATIENT': ('sequence', + (['PID', SEGMENTS['PID'], (1, 1), 'SEG'], + ['PV1', SEGMENTS['PV1'], (0, 1), 'SEG'], + ['PV2', SEGMENTS['PV2'], (0, 1), 'SEG'], + ['OBX', SEGMENTS['OBX'], (0, -1), 'SEG'], + ['DG1', SEGMENTS['DG1'], (0, -1), 'SEG'],)), + 'SIU_S16_PERSONNEL_RESOURCE': ('sequence', + (['AIP', SEGMENTS['AIP'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S16_RESOURCES': ('sequence', + (['RGS', SEGMENTS['RGS'], (1, 1), 'SEG'], + ['SIU_S16_SERVICE', None, (0, -1), 'GRP'], + ['SIU_S16_GENERAL_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S16_LOCATION_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S16_PERSONNEL_RESOURCE', None, (0, -1), 'GRP'],)), + 'SIU_S16_SERVICE': ('sequence', + (['AIS', SEGMENTS['AIS'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S17_GENERAL_RESOURCE': ('sequence', + (['AIG', SEGMENTS['AIG'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S17_LOCATION_RESOURCE': ('sequence', + (['AIL', SEGMENTS['AIL'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S17_PATIENT': ('sequence', + (['PID', SEGMENTS['PID'], (1, 1), 'SEG'], + ['PV1', SEGMENTS['PV1'], (0, 1), 'SEG'], + ['PV2', SEGMENTS['PV2'], (0, 1), 'SEG'], + ['OBX', SEGMENTS['OBX'], (0, -1), 'SEG'], + ['DG1', SEGMENTS['DG1'], (0, -1), 'SEG'],)), + 'SIU_S17_PERSONNEL_RESOURCE': ('sequence', + (['AIP', SEGMENTS['AIP'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S17_RESOURCES': ('sequence', + (['RGS', SEGMENTS['RGS'], (1, 1), 'SEG'], + ['SIU_S17_SERVICE', None, (0, -1), 'GRP'], + ['SIU_S17_GENERAL_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S17_LOCATION_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S17_PERSONNEL_RESOURCE', None, (0, -1), 'GRP'],)), + 'SIU_S17_SERVICE': ('sequence', + (['AIS', SEGMENTS['AIS'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S18_GENERAL_RESOURCE': ('sequence', + (['AIG', SEGMENTS['AIG'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S18_LOCATION_RESOURCE': ('sequence', + (['AIL', SEGMENTS['AIL'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S18_PATIENT': ('sequence', + (['PID', SEGMENTS['PID'], (1, 1), 'SEG'], + ['PV1', SEGMENTS['PV1'], (0, 1), 'SEG'], + ['PV2', SEGMENTS['PV2'], (0, 1), 'SEG'], + ['OBX', SEGMENTS['OBX'], (0, -1), 'SEG'], + ['DG1', SEGMENTS['DG1'], (0, -1), 'SEG'],)), + 'SIU_S18_PERSONNEL_RESOURCE': ('sequence', + (['AIP', SEGMENTS['AIP'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S18_RESOURCES': ('sequence', + (['RGS', SEGMENTS['RGS'], (1, 1), 'SEG'], + ['SIU_S18_SERVICE', None, (0, -1), 'GRP'], + ['SIU_S18_GENERAL_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S18_LOCATION_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S18_PERSONNEL_RESOURCE', None, (0, -1), 'GRP'],)), + 'SIU_S18_SERVICE': ('sequence', + (['AIS', SEGMENTS['AIS'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S19_GENERAL_RESOURCE': ('sequence', + (['AIG', SEGMENTS['AIG'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S19_LOCATION_RESOURCE': ('sequence', + (['AIL', SEGMENTS['AIL'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S19_PATIENT': ('sequence', + (['PID', SEGMENTS['PID'], (1, 1), 'SEG'], + ['PV1', SEGMENTS['PV1'], (0, 1), 'SEG'], + ['PV2', SEGMENTS['PV2'], (0, 1), 'SEG'], + ['OBX', SEGMENTS['OBX'], (0, -1), 'SEG'], + ['DG1', SEGMENTS['DG1'], (0, -1), 'SEG'],)), + 'SIU_S19_PERSONNEL_RESOURCE': ('sequence', + (['AIP', SEGMENTS['AIP'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S19_RESOURCES': ('sequence', + (['RGS', SEGMENTS['RGS'], (1, 1), 'SEG'], + ['SIU_S19_SERVICE', None, (0, -1), 'GRP'], + ['SIU_S19_GENERAL_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S19_LOCATION_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S19_PERSONNEL_RESOURCE', None, (0, -1), 'GRP'],)), + 'SIU_S19_SERVICE': ('sequence', + (['AIS', SEGMENTS['AIS'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S20_GENERAL_RESOURCE': ('sequence', + (['AIG', SEGMENTS['AIG'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S20_LOCATION_RESOURCE': ('sequence', + (['AIL', SEGMENTS['AIL'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S20_PATIENT': ('sequence', + (['PID', SEGMENTS['PID'], (1, 1), 'SEG'], + ['PV1', SEGMENTS['PV1'], (0, 1), 'SEG'], + ['PV2', SEGMENTS['PV2'], (0, 1), 'SEG'], + ['OBX', SEGMENTS['OBX'], (0, -1), 'SEG'], + ['DG1', SEGMENTS['DG1'], (0, -1), 'SEG'],)), + 'SIU_S20_PERSONNEL_RESOURCE': ('sequence', + (['AIP', SEGMENTS['AIP'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S20_RESOURCES': ('sequence', + (['RGS', SEGMENTS['RGS'], (1, 1), 'SEG'], + ['SIU_S20_SERVICE', None, (0, -1), 'GRP'], + ['SIU_S20_GENERAL_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S20_LOCATION_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S20_PERSONNEL_RESOURCE', None, (0, -1), 'GRP'],)), + 'SIU_S20_SERVICE': ('sequence', + (['AIS', SEGMENTS['AIS'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S21_GENERAL_RESOURCE': ('sequence', + (['AIG', SEGMENTS['AIG'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S21_LOCATION_RESOURCE': ('sequence', + (['AIL', SEGMENTS['AIL'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S21_PATIENT': ('sequence', + (['PID', SEGMENTS['PID'], (1, 1), 'SEG'], + ['PV1', SEGMENTS['PV1'], (0, 1), 'SEG'], + ['PV2', SEGMENTS['PV2'], (0, 1), 'SEG'], + ['OBX', SEGMENTS['OBX'], (0, -1), 'SEG'], + ['DG1', SEGMENTS['DG1'], (0, -1), 'SEG'],)), + 'SIU_S21_PERSONNEL_RESOURCE': ('sequence', + (['AIP', SEGMENTS['AIP'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S21_RESOURCES': ('sequence', + (['RGS', SEGMENTS['RGS'], (1, 1), 'SEG'], + ['SIU_S21_SERVICE', None, (0, -1), 'GRP'], + ['SIU_S21_GENERAL_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S21_LOCATION_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S21_PERSONNEL_RESOURCE', None, (0, -1), 'GRP'],)), + 'SIU_S21_SERVICE': ('sequence', + (['AIS', SEGMENTS['AIS'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S22_GENERAL_RESOURCE': ('sequence', + (['AIG', SEGMENTS['AIG'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S22_LOCATION_RESOURCE': ('sequence', + (['AIL', SEGMENTS['AIL'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S22_PATIENT': ('sequence', + (['PID', SEGMENTS['PID'], (1, 1), 'SEG'], + ['PV1', SEGMENTS['PV1'], (0, 1), 'SEG'], + ['PV2', SEGMENTS['PV2'], (0, 1), 'SEG'], + ['OBX', SEGMENTS['OBX'], (0, -1), 'SEG'], + ['DG1', SEGMENTS['DG1'], (0, -1), 'SEG'],)), + 'SIU_S22_PERSONNEL_RESOURCE': ('sequence', + (['AIP', SEGMENTS['AIP'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S22_RESOURCES': ('sequence', + (['RGS', SEGMENTS['RGS'], (1, 1), 'SEG'], + ['SIU_S22_SERVICE', None, (0, -1), 'GRP'], + ['SIU_S22_GENERAL_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S22_LOCATION_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S22_PERSONNEL_RESOURCE', None, (0, -1), 'GRP'],)), + 'SIU_S22_SERVICE': ('sequence', + (['AIS', SEGMENTS['AIS'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S23_GENERAL_RESOURCE': ('sequence', + (['AIG', SEGMENTS['AIG'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S23_LOCATION_RESOURCE': ('sequence', + (['AIL', SEGMENTS['AIL'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S23_PATIENT': ('sequence', + (['PID', SEGMENTS['PID'], (1, 1), 'SEG'], + ['PV1', SEGMENTS['PV1'], (0, 1), 'SEG'], + ['PV2', SEGMENTS['PV2'], (0, 1), 'SEG'], + ['OBX', SEGMENTS['OBX'], (0, -1), 'SEG'], + ['DG1', SEGMENTS['DG1'], (0, -1), 'SEG'],)), + 'SIU_S23_PERSONNEL_RESOURCE': ('sequence', + (['AIP', SEGMENTS['AIP'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S23_RESOURCES': ('sequence', + (['RGS', SEGMENTS['RGS'], (1, 1), 'SEG'], + ['SIU_S23_SERVICE', None, (0, -1), 'GRP'], + ['SIU_S23_GENERAL_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S23_LOCATION_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S23_PERSONNEL_RESOURCE', None, (0, -1), 'GRP'],)), + 'SIU_S23_SERVICE': ('sequence', + (['AIS', SEGMENTS['AIS'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S24_GENERAL_RESOURCE': ('sequence', + (['AIG', SEGMENTS['AIG'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S24_LOCATION_RESOURCE': ('sequence', + (['AIL', SEGMENTS['AIL'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S24_PATIENT': ('sequence', + (['PID', SEGMENTS['PID'], (1, 1), 'SEG'], + ['PV1', SEGMENTS['PV1'], (0, 1), 'SEG'], + ['PV2', SEGMENTS['PV2'], (0, 1), 'SEG'], + ['OBX', SEGMENTS['OBX'], (0, -1), 'SEG'], + ['DG1', SEGMENTS['DG1'], (0, -1), 'SEG'],)), + 'SIU_S24_PERSONNEL_RESOURCE': ('sequence', + (['AIP', SEGMENTS['AIP'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S24_RESOURCES': ('sequence', + (['RGS', SEGMENTS['RGS'], (1, 1), 'SEG'], + ['SIU_S24_SERVICE', None, (0, -1), 'GRP'], + ['SIU_S24_GENERAL_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S24_LOCATION_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S24_PERSONNEL_RESOURCE', None, (0, -1), 'GRP'],)), + 'SIU_S24_SERVICE': ('sequence', + (['AIS', SEGMENTS['AIS'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S26_GENERAL_RESOURCE': ('sequence', + (['AIG', SEGMENTS['AIG'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S26_LOCATION_RESOURCE': ('sequence', + (['AIL', SEGMENTS['AIL'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S26_PATIENT': ('sequence', + (['PID', SEGMENTS['PID'], (1, 1), 'SEG'], + ['PV1', SEGMENTS['PV1'], (0, 1), 'SEG'], + ['PV2', SEGMENTS['PV2'], (0, 1), 'SEG'], + ['OBX', SEGMENTS['OBX'], (0, -1), 'SEG'], + ['DG1', SEGMENTS['DG1'], (0, -1), 'SEG'],)), + 'SIU_S26_PERSONNEL_RESOURCE': ('sequence', + (['AIP', SEGMENTS['AIP'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S26_RESOURCES': ('sequence', + (['RGS', SEGMENTS['RGS'], (1, 1), 'SEG'], + ['SIU_S26_SERVICE', None, (0, -1), 'GRP'], + ['SIU_S26_GENERAL_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S26_LOCATION_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S26_PERSONNEL_RESOURCE', None, (0, -1), 'GRP'],)), + 'SIU_S26_SERVICE': ('sequence', + (['AIS', SEGMENTS['AIS'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), 'SQM_S25_GENERAL_RESOURCE': ('sequence', (['AIG', SEGMENTS['AIG'], (1, 1), 'SEG'], ['APR', SEGMENTS['APR'], (0, 1), 'SEG'],)), diff --git a/hl7apy/v2_3/messages.py b/hl7apy/v2_3/messages.py index 3848500..f10de2b 100644 --- a/hl7apy/v2_3/messages.py +++ b/hl7apy/v2_3/messages.py @@ -702,6 +702,84 @@ ('NTE', SEGMENTS['NTE'], (0, -1), 'SEG'), ('SIU_S12_PATIENT', GROUPS['SIU_S12_PATIENT'], (0, -1), 'GRP'), ('SIU_S12_RESOURCES', GROUPS['SIU_S12_RESOURCES'], (1, -1), 'GRP'),)), + 'SIU_S13': ('sequence', + (('MSH', SEGMENTS['MSH'], (1, 1), 'SEG'), + ('SCH', SEGMENTS['SCH'], (1, 1), 'SEG'), + ('NTE', SEGMENTS['NTE'], (0, -1), 'SEG'), + ('SIU_S13_PATIENT', GROUPS['SIU_S13_PATIENT'], (0, -1), 'GRP'), + ('SIU_S13_RESOURCES', GROUPS['SIU_S13_RESOURCES'], (1, -1), 'GRP'),)), + 'SIU_S14': ('sequence', + (('MSH', SEGMENTS['MSH'], (1, 1), 'SEG'), + ('SCH', SEGMENTS['SCH'], (1, 1), 'SEG'), + ('NTE', SEGMENTS['NTE'], (0, -1), 'SEG'), + ('SIU_S14_PATIENT', GROUPS['SIU_S14_PATIENT'], (0, -1), 'GRP'), + ('SIU_S14_RESOURCES', GROUPS['SIU_S14_RESOURCES'], (1, -1), 'GRP'),)), + 'SIU_S15': ('sequence', + (('MSH', SEGMENTS['MSH'], (1, 1), 'SEG'), + ('SCH', SEGMENTS['SCH'], (1, 1), 'SEG'), + ('NTE', SEGMENTS['NTE'], (0, -1), 'SEG'), + ('SIU_S15_PATIENT', GROUPS['SIU_S15_PATIENT'], (0, -1), 'GRP'), + ('SIU_S15_RESOURCES', GROUPS['SIU_S15_RESOURCES'], (1, -1), 'GRP'),)), + 'SIU_S16': ('sequence', + (('MSH', SEGMENTS['MSH'], (1, 1), 'SEG'), + ('SCH', SEGMENTS['SCH'], (1, 1), 'SEG'), + ('NTE', SEGMENTS['NTE'], (0, -1), 'SEG'), + ('SIU_S16_PATIENT', GROUPS['SIU_S16_PATIENT'], (0, -1), 'GRP'), + ('SIU_S16_RESOURCES', GROUPS['SIU_S16_RESOURCES'], (1, -1), 'GRP'),)), + 'SIU_S17': ('sequence', + (('MSH', SEGMENTS['MSH'], (1, 1), 'SEG'), + ('SCH', SEGMENTS['SCH'], (1, 1), 'SEG'), + ('NTE', SEGMENTS['NTE'], (0, -1), 'SEG'), + ('SIU_S17_PATIENT', GROUPS['SIU_S17_PATIENT'], (0, -1), 'GRP'), + ('SIU_S17_RESOURCES', GROUPS['SIU_S17_RESOURCES'], (1, -1), 'GRP'),)), + 'SIU_S18': ('sequence', + (('MSH', SEGMENTS['MSH'], (1, 1), 'SEG'), + ('SCH', SEGMENTS['SCH'], (1, 1), 'SEG'), + ('NTE', SEGMENTS['NTE'], (0, -1), 'SEG'), + ('SIU_S18_PATIENT', GROUPS['SIU_S18_PATIENT'], (0, -1), 'GRP'), + ('SIU_S18_RESOURCES', GROUPS['SIU_S18_RESOURCES'], (1, -1), 'GRP'),)), + 'SIU_S19': ('sequence', + (('MSH', SEGMENTS['MSH'], (1, 1), 'SEG'), + ('SCH', SEGMENTS['SCH'], (1, 1), 'SEG'), + ('NTE', SEGMENTS['NTE'], (0, -1), 'SEG'), + ('SIU_S19_PATIENT', GROUPS['SIU_S19_PATIENT'], (0, -1), 'GRP'), + ('SIU_S19_RESOURCES', GROUPS['SIU_S19_RESOURCES'], (1, -1), 'GRP'),)), + 'SIU_S20': ('sequence', + (('MSH', SEGMENTS['MSH'], (1, 1), 'SEG'), + ('SCH', SEGMENTS['SCH'], (1, 1), 'SEG'), + ('NTE', SEGMENTS['NTE'], (0, -1), 'SEG'), + ('SIU_S20_PATIENT', GROUPS['SIU_S20_PATIENT'], (0, -1), 'GRP'), + ('SIU_S20_RESOURCES', GROUPS['SIU_S20_RESOURCES'], (1, -1), 'GRP'),)), + 'SIU_S21': ('sequence', + (('MSH', SEGMENTS['MSH'], (1, 1), 'SEG'), + ('SCH', SEGMENTS['SCH'], (1, 1), 'SEG'), + ('NTE', SEGMENTS['NTE'], (0, -1), 'SEG'), + ('SIU_S21_PATIENT', GROUPS['SIU_S21_PATIENT'], (0, -1), 'GRP'), + ('SIU_S21_RESOURCES', GROUPS['SIU_S21_RESOURCES'], (1, -1), 'GRP'),)), + 'SIU_S22': ('sequence', + (('MSH', SEGMENTS['MSH'], (1, 1), 'SEG'), + ('SCH', SEGMENTS['SCH'], (1, 1), 'SEG'), + ('NTE', SEGMENTS['NTE'], (0, -1), 'SEG'), + ('SIU_S22_PATIENT', GROUPS['SIU_S22_PATIENT'], (0, -1), 'GRP'), + ('SIU_S22_RESOURCES', GROUPS['SIU_S22_RESOURCES'], (1, -1), 'GRP'),)), + 'SIU_S23': ('sequence', + (('MSH', SEGMENTS['MSH'], (1, 1), 'SEG'), + ('SCH', SEGMENTS['SCH'], (1, 1), 'SEG'), + ('NTE', SEGMENTS['NTE'], (0, -1), 'SEG'), + ('SIU_S23_PATIENT', GROUPS['SIU_S23_PATIENT'], (0, -1), 'GRP'), + ('SIU_S23_RESOURCES', GROUPS['SIU_S23_RESOURCES'], (1, -1), 'GRP'),)), + 'SIU_S24': ('sequence', + (('MSH', SEGMENTS['MSH'], (1, 1), 'SEG'), + ('SCH', SEGMENTS['SCH'], (1, 1), 'SEG'), + ('NTE', SEGMENTS['NTE'], (0, -1), 'SEG'), + ('SIU_S24_PATIENT', GROUPS['SIU_S24_PATIENT'], (0, -1), 'GRP'), + ('SIU_S24_RESOURCES', GROUPS['SIU_S24_RESOURCES'], (1, -1), 'GRP'),)), + 'SIU_S26': ('sequence', + (('MSH', SEGMENTS['MSH'], (1, 1), 'SEG'), + ('SCH', SEGMENTS['SCH'], (1, 1), 'SEG'), + ('NTE', SEGMENTS['NTE'], (0, -1), 'SEG'), + ('SIU_S26_PATIENT', GROUPS['SIU_S26_PATIENT'], (0, -1), 'GRP'), + ('SIU_S26_RESOURCES', GROUPS['SIU_S26_RESOURCES'], (1, -1), 'GRP'),)), 'SPQ_Q01': ('sequence', (('MSH', SEGMENTS['MSH'], (1, 1), 'SEG'), ('SPR', SEGMENTS['SPR'], (1, 1), 'SEG'), diff --git a/hl7apy/v2_3_1/groups.py b/hl7apy/v2_3_1/groups.py index a5099b8..2eacc06 100644 --- a/hl7apy/v2_3_1/groups.py +++ b/hl7apy/v2_3_1/groups.py @@ -1382,6 +1382,331 @@ 'SIU_S12_SERVICE': ('sequence', (['AIS', SEGMENTS['AIS'], (1, 1), 'SEG'], ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S13_GENERAL_RESOURCE': ('sequence', + (['AIG', SEGMENTS['AIG'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S13_LOCATION_RESOURCE': ('sequence', + (['AIL', SEGMENTS['AIL'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S13_PATIENT': ('sequence', + (['PID', SEGMENTS['PID'], (1, 1), 'SEG'], + ['PD1', SEGMENTS['PD1'], (0, 1), 'SEG'], + ['PV1', SEGMENTS['PV1'], (0, 1), 'SEG'], + ['PV2', SEGMENTS['PV2'], (0, 1), 'SEG'], + ['OBX', SEGMENTS['OBX'], (0, -1), 'SEG'], + ['DG1', SEGMENTS['DG1'], (0, -1), 'SEG'],)), + 'SIU_S13_PERSONNEL_RESOURCE': ('sequence', + (['AIP', SEGMENTS['AIP'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S13_RESOURCES': ('sequence', + (['RGS', SEGMENTS['RGS'], (1, 1), 'SEG'], + ['SIU_S13_SERVICE', None, (0, -1), 'GRP'], + ['SIU_S13_GENERAL_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S13_LOCATION_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S13_PERSONNEL_RESOURCE', None, (0, -1), 'GRP'],)), + 'SIU_S13_SERVICE': ('sequence', + (['AIS', SEGMENTS['AIS'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S14_GENERAL_RESOURCE': ('sequence', + (['AIG', SEGMENTS['AIG'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S14_LOCATION_RESOURCE': ('sequence', + (['AIL', SEGMENTS['AIL'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S14_PATIENT': ('sequence', + (['PID', SEGMENTS['PID'], (1, 1), 'SEG'], + ['PD1', SEGMENTS['PD1'], (0, 1), 'SEG'], + ['PV1', SEGMENTS['PV1'], (0, 1), 'SEG'], + ['PV2', SEGMENTS['PV2'], (0, 1), 'SEG'], + ['OBX', SEGMENTS['OBX'], (0, -1), 'SEG'], + ['DG1', SEGMENTS['DG1'], (0, -1), 'SEG'],)), + 'SIU_S14_PERSONNEL_RESOURCE': ('sequence', + (['AIP', SEGMENTS['AIP'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S14_RESOURCES': ('sequence', + (['RGS', SEGMENTS['RGS'], (1, 1), 'SEG'], + ['SIU_S14_SERVICE', None, (0, -1), 'GRP'], + ['SIU_S14_GENERAL_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S14_LOCATION_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S14_PERSONNEL_RESOURCE', None, (0, -1), 'GRP'],)), + 'SIU_S14_SERVICE': ('sequence', + (['AIS', SEGMENTS['AIS'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S15_GENERAL_RESOURCE': ('sequence', + (['AIG', SEGMENTS['AIG'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S15_LOCATION_RESOURCE': ('sequence', + (['AIL', SEGMENTS['AIL'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S15_PATIENT': ('sequence', + (['PID', SEGMENTS['PID'], (1, 1), 'SEG'], + ['PD1', SEGMENTS['PD1'], (0, 1), 'SEG'], + ['PV1', SEGMENTS['PV1'], (0, 1), 'SEG'], + ['PV2', SEGMENTS['PV2'], (0, 1), 'SEG'], + ['OBX', SEGMENTS['OBX'], (0, -1), 'SEG'], + ['DG1', SEGMENTS['DG1'], (0, -1), 'SEG'],)), + 'SIU_S15_PERSONNEL_RESOURCE': ('sequence', + (['AIP', SEGMENTS['AIP'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S15_RESOURCES': ('sequence', + (['RGS', SEGMENTS['RGS'], (1, 1), 'SEG'], + ['SIU_S15_SERVICE', None, (0, -1), 'GRP'], + ['SIU_S15_GENERAL_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S15_LOCATION_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S15_PERSONNEL_RESOURCE', None, (0, -1), 'GRP'],)), + 'SIU_S15_SERVICE': ('sequence', + (['AIS', SEGMENTS['AIS'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S16_GENERAL_RESOURCE': ('sequence', + (['AIG', SEGMENTS['AIG'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S16_LOCATION_RESOURCE': ('sequence', + (['AIL', SEGMENTS['AIL'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S16_PATIENT': ('sequence', + (['PID', SEGMENTS['PID'], (1, 1), 'SEG'], + ['PD1', SEGMENTS['PD1'], (0, 1), 'SEG'], + ['PV1', SEGMENTS['PV1'], (0, 1), 'SEG'], + ['PV2', SEGMENTS['PV2'], (0, 1), 'SEG'], + ['OBX', SEGMENTS['OBX'], (0, -1), 'SEG'], + ['DG1', SEGMENTS['DG1'], (0, -1), 'SEG'],)), + 'SIU_S16_PERSONNEL_RESOURCE': ('sequence', + (['AIP', SEGMENTS['AIP'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S16_RESOURCES': ('sequence', + (['RGS', SEGMENTS['RGS'], (1, 1), 'SEG'], + ['SIU_S16_SERVICE', None, (0, -1), 'GRP'], + ['SIU_S16_GENERAL_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S16_LOCATION_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S16_PERSONNEL_RESOURCE', None, (0, -1), 'GRP'],)), + 'SIU_S16_SERVICE': ('sequence', + (['AIS', SEGMENTS['AIS'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S17_GENERAL_RESOURCE': ('sequence', + (['AIG', SEGMENTS['AIG'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S17_LOCATION_RESOURCE': ('sequence', + (['AIL', SEGMENTS['AIL'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S17_PATIENT': ('sequence', + (['PID', SEGMENTS['PID'], (1, 1), 'SEG'], + ['PD1', SEGMENTS['PD1'], (0, 1), 'SEG'], + ['PV1', SEGMENTS['PV1'], (0, 1), 'SEG'], + ['PV2', SEGMENTS['PV2'], (0, 1), 'SEG'], + ['OBX', SEGMENTS['OBX'], (0, -1), 'SEG'], + ['DG1', SEGMENTS['DG1'], (0, -1), 'SEG'],)), + 'SIU_S17_PERSONNEL_RESOURCE': ('sequence', + (['AIP', SEGMENTS['AIP'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S17_RESOURCES': ('sequence', + (['RGS', SEGMENTS['RGS'], (1, 1), 'SEG'], + ['SIU_S17_SERVICE', None, (0, -1), 'GRP'], + ['SIU_S17_GENERAL_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S17_LOCATION_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S17_PERSONNEL_RESOURCE', None, (0, -1), 'GRP'],)), + 'SIU_S17_SERVICE': ('sequence', + (['AIS', SEGMENTS['AIS'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S18_GENERAL_RESOURCE': ('sequence', + (['AIG', SEGMENTS['AIG'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S18_LOCATION_RESOURCE': ('sequence', + (['AIL', SEGMENTS['AIL'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S18_PATIENT': ('sequence', + (['PID', SEGMENTS['PID'], (1, 1), 'SEG'], + ['PD1', SEGMENTS['PD1'], (0, 1), 'SEG'], + ['PV1', SEGMENTS['PV1'], (0, 1), 'SEG'], + ['PV2', SEGMENTS['PV2'], (0, 1), 'SEG'], + ['OBX', SEGMENTS['OBX'], (0, -1), 'SEG'], + ['DG1', SEGMENTS['DG1'], (0, -1), 'SEG'],)), + 'SIU_S18_PERSONNEL_RESOURCE': ('sequence', + (['AIP', SEGMENTS['AIP'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S18_RESOURCES': ('sequence', + (['RGS', SEGMENTS['RGS'], (1, 1), 'SEG'], + ['SIU_S18_SERVICE', None, (0, -1), 'GRP'], + ['SIU_S18_GENERAL_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S18_LOCATION_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S18_PERSONNEL_RESOURCE', None, (0, -1), 'GRP'],)), + 'SIU_S18_SERVICE': ('sequence', + (['AIS', SEGMENTS['AIS'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S19_GENERAL_RESOURCE': ('sequence', + (['AIG', SEGMENTS['AIG'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S19_LOCATION_RESOURCE': ('sequence', + (['AIL', SEGMENTS['AIL'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S19_PATIENT': ('sequence', + (['PID', SEGMENTS['PID'], (1, 1), 'SEG'], + ['PD1', SEGMENTS['PD1'], (0, 1), 'SEG'], + ['PV1', SEGMENTS['PV1'], (0, 1), 'SEG'], + ['PV2', SEGMENTS['PV2'], (0, 1), 'SEG'], + ['OBX', SEGMENTS['OBX'], (0, -1), 'SEG'], + ['DG1', SEGMENTS['DG1'], (0, -1), 'SEG'],)), + 'SIU_S19_PERSONNEL_RESOURCE': ('sequence', + (['AIP', SEGMENTS['AIP'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S19_RESOURCES': ('sequence', + (['RGS', SEGMENTS['RGS'], (1, 1), 'SEG'], + ['SIU_S19_SERVICE', None, (0, -1), 'GRP'], + ['SIU_S19_GENERAL_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S19_LOCATION_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S19_PERSONNEL_RESOURCE', None, (0, -1), 'GRP'],)), + 'SIU_S19_SERVICE': ('sequence', + (['AIS', SEGMENTS['AIS'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S20_GENERAL_RESOURCE': ('sequence', + (['AIG', SEGMENTS['AIG'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S20_LOCATION_RESOURCE': ('sequence', + (['AIL', SEGMENTS['AIL'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S20_PATIENT': ('sequence', + (['PID', SEGMENTS['PID'], (1, 1), 'SEG'], + ['PD1', SEGMENTS['PD1'], (0, 1), 'SEG'], + ['PV1', SEGMENTS['PV1'], (0, 1), 'SEG'], + ['PV2', SEGMENTS['PV2'], (0, 1), 'SEG'], + ['OBX', SEGMENTS['OBX'], (0, -1), 'SEG'], + ['DG1', SEGMENTS['DG1'], (0, -1), 'SEG'],)), + 'SIU_S20_PERSONNEL_RESOURCE': ('sequence', + (['AIP', SEGMENTS['AIP'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S20_RESOURCES': ('sequence', + (['RGS', SEGMENTS['RGS'], (1, 1), 'SEG'], + ['SIU_S20_SERVICE', None, (0, -1), 'GRP'], + ['SIU_S20_GENERAL_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S20_LOCATION_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S20_PERSONNEL_RESOURCE', None, (0, -1), 'GRP'],)), + 'SIU_S20_SERVICE': ('sequence', + (['AIS', SEGMENTS['AIS'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S21_GENERAL_RESOURCE': ('sequence', + (['AIG', SEGMENTS['AIG'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S21_LOCATION_RESOURCE': ('sequence', + (['AIL', SEGMENTS['AIL'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S21_PATIENT': ('sequence', + (['PID', SEGMENTS['PID'], (1, 1), 'SEG'], + ['PD1', SEGMENTS['PD1'], (0, 1), 'SEG'], + ['PV1', SEGMENTS['PV1'], (0, 1), 'SEG'], + ['PV2', SEGMENTS['PV2'], (0, 1), 'SEG'], + ['OBX', SEGMENTS['OBX'], (0, -1), 'SEG'], + ['DG1', SEGMENTS['DG1'], (0, -1), 'SEG'],)), + 'SIU_S21_PERSONNEL_RESOURCE': ('sequence', + (['AIP', SEGMENTS['AIP'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S21_RESOURCES': ('sequence', + (['RGS', SEGMENTS['RGS'], (1, 1), 'SEG'], + ['SIU_S21_SERVICE', None, (0, -1), 'GRP'], + ['SIU_S21_GENERAL_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S21_LOCATION_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S21_PERSONNEL_RESOURCE', None, (0, -1), 'GRP'],)), + 'SIU_S21_SERVICE': ('sequence', + (['AIS', SEGMENTS['AIS'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S22_GENERAL_RESOURCE': ('sequence', + (['AIG', SEGMENTS['AIG'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S22_LOCATION_RESOURCE': ('sequence', + (['AIL', SEGMENTS['AIL'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S22_PATIENT': ('sequence', + (['PID', SEGMENTS['PID'], (1, 1), 'SEG'], + ['PD1', SEGMENTS['PD1'], (0, 1), 'SEG'], + ['PV1', SEGMENTS['PV1'], (0, 1), 'SEG'], + ['PV2', SEGMENTS['PV2'], (0, 1), 'SEG'], + ['OBX', SEGMENTS['OBX'], (0, -1), 'SEG'], + ['DG1', SEGMENTS['DG1'], (0, -1), 'SEG'],)), + 'SIU_S22_PERSONNEL_RESOURCE': ('sequence', + (['AIP', SEGMENTS['AIP'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S22_RESOURCES': ('sequence', + (['RGS', SEGMENTS['RGS'], (1, 1), 'SEG'], + ['SIU_S22_SERVICE', None, (0, -1), 'GRP'], + ['SIU_S22_GENERAL_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S22_LOCATION_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S22_PERSONNEL_RESOURCE', None, (0, -1), 'GRP'],)), + 'SIU_S22_SERVICE': ('sequence', + (['AIS', SEGMENTS['AIS'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S23_GENERAL_RESOURCE': ('sequence', + (['AIG', SEGMENTS['AIG'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S23_LOCATION_RESOURCE': ('sequence', + (['AIL', SEGMENTS['AIL'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S23_PATIENT': ('sequence', + (['PID', SEGMENTS['PID'], (1, 1), 'SEG'], + ['PD1', SEGMENTS['PD1'], (0, 1), 'SEG'], + ['PV1', SEGMENTS['PV1'], (0, 1), 'SEG'], + ['PV2', SEGMENTS['PV2'], (0, 1), 'SEG'], + ['OBX', SEGMENTS['OBX'], (0, -1), 'SEG'], + ['DG1', SEGMENTS['DG1'], (0, -1), 'SEG'],)), + 'SIU_S23_PERSONNEL_RESOURCE': ('sequence', + (['AIP', SEGMENTS['AIP'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S23_RESOURCES': ('sequence', + (['RGS', SEGMENTS['RGS'], (1, 1), 'SEG'], + ['SIU_S23_SERVICE', None, (0, -1), 'GRP'], + ['SIU_S23_GENERAL_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S23_LOCATION_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S23_PERSONNEL_RESOURCE', None, (0, -1), 'GRP'],)), + 'SIU_S23_SERVICE': ('sequence', + (['AIS', SEGMENTS['AIS'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S24_GENERAL_RESOURCE': ('sequence', + (['AIG', SEGMENTS['AIG'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S24_LOCATION_RESOURCE': ('sequence', + (['AIL', SEGMENTS['AIL'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S24_PATIENT': ('sequence', + (['PID', SEGMENTS['PID'], (1, 1), 'SEG'], + ['PD1', SEGMENTS['PD1'], (0, 1), 'SEG'], + ['PV1', SEGMENTS['PV1'], (0, 1), 'SEG'], + ['PV2', SEGMENTS['PV2'], (0, 1), 'SEG'], + ['OBX', SEGMENTS['OBX'], (0, -1), 'SEG'], + ['DG1', SEGMENTS['DG1'], (0, -1), 'SEG'],)), + 'SIU_S24_PERSONNEL_RESOURCE': ('sequence', + (['AIP', SEGMENTS['AIP'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S24_RESOURCES': ('sequence', + (['RGS', SEGMENTS['RGS'], (1, 1), 'SEG'], + ['SIU_S24_SERVICE', None, (0, -1), 'GRP'], + ['SIU_S24_GENERAL_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S24_LOCATION_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S24_PERSONNEL_RESOURCE', None, (0, -1), 'GRP'],)), + 'SIU_S24_SERVICE': ('sequence', + (['AIS', SEGMENTS['AIS'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S26_GENERAL_RESOURCE': ('sequence', + (['AIG', SEGMENTS['AIG'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S26_LOCATION_RESOURCE': ('sequence', + (['AIL', SEGMENTS['AIL'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S26_PATIENT': ('sequence', + (['PID', SEGMENTS['PID'], (1, 1), 'SEG'], + ['PD1', SEGMENTS['PD1'], (0, 1), 'SEG'], + ['PV1', SEGMENTS['PV1'], (0, 1), 'SEG'], + ['PV2', SEGMENTS['PV2'], (0, 1), 'SEG'], + ['OBX', SEGMENTS['OBX'], (0, -1), 'SEG'], + ['DG1', SEGMENTS['DG1'], (0, -1), 'SEG'],)), + 'SIU_S26_PERSONNEL_RESOURCE': ('sequence', + (['AIP', SEGMENTS['AIP'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), + 'SIU_S26_RESOURCES': ('sequence', + (['RGS', SEGMENTS['RGS'], (1, 1), 'SEG'], + ['SIU_S26_SERVICE', None, (0, -1), 'GRP'], + ['SIU_S26_GENERAL_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S26_LOCATION_RESOURCE', None, (0, -1), 'GRP'], + ['SIU_S26_PERSONNEL_RESOURCE', None, (0, -1), 'GRP'],)), + 'SIU_S26_SERVICE': ('sequence', + (['AIS', SEGMENTS['AIS'], (1, 1), 'SEG'], + ['NTE', SEGMENTS['NTE'], (0, -1), 'SEG'],)), 'SQM_S25_GENERAL_RESOURCE': ('sequence', (['AIG', SEGMENTS['AIG'], (1, 1), 'SEG'], ['APR', SEGMENTS['APR'], (0, 1), 'SEG'],)), diff --git a/hl7apy/v2_3_1/messages.py b/hl7apy/v2_3_1/messages.py index e961998..457bff7 100644 --- a/hl7apy/v2_3_1/messages.py +++ b/hl7apy/v2_3_1/messages.py @@ -732,6 +732,84 @@ ('NTE', SEGMENTS['NTE'], (0, -1), 'SEG'), ('SIU_S12_PATIENT', GROUPS['SIU_S12_PATIENT'], (0, -1), 'GRP'), ('SIU_S12_RESOURCES', GROUPS['SIU_S12_RESOURCES'], (1, -1), 'GRP'),)), + 'SIU_S13': ('sequence', + (('MSH', SEGMENTS['MSH'], (1, 1), 'SEG'), + ('SCH', SEGMENTS['SCH'], (1, 1), 'SEG'), + ('NTE', SEGMENTS['NTE'], (0, -1), 'SEG'), + ('SIU_S13_PATIENT', GROUPS['SIU_S13_PATIENT'], (0, -1), 'GRP'), + ('SIU_S13_RESOURCES', GROUPS['SIU_S13_RESOURCES'], (1, -1), 'GRP'),)), + 'SIU_S14': ('sequence', + (('MSH', SEGMENTS['MSH'], (1, 1), 'SEG'), + ('SCH', SEGMENTS['SCH'], (1, 1), 'SEG'), + ('NTE', SEGMENTS['NTE'], (0, -1), 'SEG'), + ('SIU_S14_PATIENT', GROUPS['SIU_S14_PATIENT'], (0, -1), 'GRP'), + ('SIU_S14_RESOURCES', GROUPS['SIU_S14_RESOURCES'], (1, -1), 'GRP'),)), + 'SIU_S15': ('sequence', + (('MSH', SEGMENTS['MSH'], (1, 1), 'SEG'), + ('SCH', SEGMENTS['SCH'], (1, 1), 'SEG'), + ('NTE', SEGMENTS['NTE'], (0, -1), 'SEG'), + ('SIU_S15_PATIENT', GROUPS['SIU_S15_PATIENT'], (0, -1), 'GRP'), + ('SIU_S15_RESOURCES', GROUPS['SIU_S15_RESOURCES'], (1, -1), 'GRP'),)), + 'SIU_S16': ('sequence', + (('MSH', SEGMENTS['MSH'], (1, 1), 'SEG'), + ('SCH', SEGMENTS['SCH'], (1, 1), 'SEG'), + ('NTE', SEGMENTS['NTE'], (0, -1), 'SEG'), + ('SIU_S16_PATIENT', GROUPS['SIU_S16_PATIENT'], (0, -1), 'GRP'), + ('SIU_S16_RESOURCES', GROUPS['SIU_S16_RESOURCES'], (1, -1), 'GRP'),)), + 'SIU_S17': ('sequence', + (('MSH', SEGMENTS['MSH'], (1, 1), 'SEG'), + ('SCH', SEGMENTS['SCH'], (1, 1), 'SEG'), + ('NTE', SEGMENTS['NTE'], (0, -1), 'SEG'), + ('SIU_S17_PATIENT', GROUPS['SIU_S17_PATIENT'], (0, -1), 'GRP'), + ('SIU_S17_RESOURCES', GROUPS['SIU_S17_RESOURCES'], (1, -1), 'GRP'),)), + 'SIU_S18': ('sequence', + (('MSH', SEGMENTS['MSH'], (1, 1), 'SEG'), + ('SCH', SEGMENTS['SCH'], (1, 1), 'SEG'), + ('NTE', SEGMENTS['NTE'], (0, -1), 'SEG'), + ('SIU_S18_PATIENT', GROUPS['SIU_S18_PATIENT'], (0, -1), 'GRP'), + ('SIU_S18_RESOURCES', GROUPS['SIU_S18_RESOURCES'], (1, -1), 'GRP'),)), + 'SIU_S19': ('sequence', + (('MSH', SEGMENTS['MSH'], (1, 1), 'SEG'), + ('SCH', SEGMENTS['SCH'], (1, 1), 'SEG'), + ('NTE', SEGMENTS['NTE'], (0, -1), 'SEG'), + ('SIU_S19_PATIENT', GROUPS['SIU_S19_PATIENT'], (0, -1), 'GRP'), + ('SIU_S19_RESOURCES', GROUPS['SIU_S19_RESOURCES'], (1, -1), 'GRP'),)), + 'SIU_S20': ('sequence', + (('MSH', SEGMENTS['MSH'], (1, 1), 'SEG'), + ('SCH', SEGMENTS['SCH'], (1, 1), 'SEG'), + ('NTE', SEGMENTS['NTE'], (0, -1), 'SEG'), + ('SIU_S20_PATIENT', GROUPS['SIU_S20_PATIENT'], (0, -1), 'GRP'), + ('SIU_S20_RESOURCES', GROUPS['SIU_S20_RESOURCES'], (1, -1), 'GRP'),)), + 'SIU_S21': ('sequence', + (('MSH', SEGMENTS['MSH'], (1, 1), 'SEG'), + ('SCH', SEGMENTS['SCH'], (1, 1), 'SEG'), + ('NTE', SEGMENTS['NTE'], (0, -1), 'SEG'), + ('SIU_S21_PATIENT', GROUPS['SIU_S21_PATIENT'], (0, -1), 'GRP'), + ('SIU_S21_RESOURCES', GROUPS['SIU_S21_RESOURCES'], (1, -1), 'GRP'),)), + 'SIU_S22': ('sequence', + (('MSH', SEGMENTS['MSH'], (1, 1), 'SEG'), + ('SCH', SEGMENTS['SCH'], (1, 1), 'SEG'), + ('NTE', SEGMENTS['NTE'], (0, -1), 'SEG'), + ('SIU_S22_PATIENT', GROUPS['SIU_S22_PATIENT'], (0, -1), 'GRP'), + ('SIU_S22_RESOURCES', GROUPS['SIU_S22_RESOURCES'], (1, -1), 'GRP'),)), + 'SIU_S23': ('sequence', + (('MSH', SEGMENTS['MSH'], (1, 1), 'SEG'), + ('SCH', SEGMENTS['SCH'], (1, 1), 'SEG'), + ('NTE', SEGMENTS['NTE'], (0, -1), 'SEG'), + ('SIU_S23_PATIENT', GROUPS['SIU_S23_PATIENT'], (0, -1), 'GRP'), + ('SIU_S23_RESOURCES', GROUPS['SIU_S23_RESOURCES'], (1, -1), 'GRP'),)), + 'SIU_S24': ('sequence', + (('MSH', SEGMENTS['MSH'], (1, 1), 'SEG'), + ('SCH', SEGMENTS['SCH'], (1, 1), 'SEG'), + ('NTE', SEGMENTS['NTE'], (0, -1), 'SEG'), + ('SIU_S24_PATIENT', GROUPS['SIU_S24_PATIENT'], (0, -1), 'GRP'), + ('SIU_S24_RESOURCES', GROUPS['SIU_S24_RESOURCES'], (1, -1), 'GRP'),)), + 'SIU_S26': ('sequence', + (('MSH', SEGMENTS['MSH'], (1, 1), 'SEG'), + ('SCH', SEGMENTS['SCH'], (1, 1), 'SEG'), + ('NTE', SEGMENTS['NTE'], (0, -1), 'SEG'), + ('SIU_S26_PATIENT', GROUPS['SIU_S26_PATIENT'], (0, -1), 'GRP'), + ('SIU_S26_RESOURCES', GROUPS['SIU_S26_RESOURCES'], (1, -1), 'GRP'),)), 'SPQ_Q08': ('sequence', (('MSH', SEGMENTS['MSH'], (1, 1), 'SEG'), ('SPR', SEGMENTS['SPR'], (1, 1), 'SEG'),