|
Using Python to Copy the Patient IDAs you saw in the previous section, the PID field of the PatientObservation table is not mapped to a field in the OBR segment. This is because this field will contain the patient ID specified in the PID segment. Because this patient ID is also specified in the Patient table, your database will be able to use the patient ID as the key that associates the PatientObservation entries with the Patient to which they belong. To assign the patient ID to the PID field, you need to create the following Python scripts:
To create the Segment Inbound script:
![]() PID Segment Definition Window
Next, create the Table Inbound script:
This assigns the Patient ID to the PID field in the PatientObservation table. |