|
Setting the Grammar Root and Mapping the DataThe grammar root for the Patient table is going to be the message and the mappings will be the same as the previous steps. To set up the grammar root and mappings for the Patient table:
![]() PatientTable Already Mapped For the PatientObservation table, you want to map out data from the repeating OBR segment. To set the grammar root and mappings for the PatientObservation table:
![]() Mapping the PatientObservation Table Note that the PID field in the PatientObservation table is unmapped. Since you will want to map the ID from the PID segment into multiple rows of the PatientObservation table, you will simply store the PID information in a global Python variable. You will then use this value to populate the PatientObservation table's PID field. This is explained in the next step. |