... | ... | @@ -47,6 +47,10 @@ When a Medication resource is read in, the job first checks whether this Medicat |
|
|
|
|
|
### MedicationAdministration
|
|
|
|
|
|
When a MedicationAdministration resource is read in, the job first checks whether the referenced Medication resource already exists in OMOP CDM. This is done in the FHIR_ID_TO_OMOP_ID_MAP table using the logical_id and/or the identifier. If the referenced Medication resource already exists in OMOP CDM, the ATC-code in omop_table is used for further processing of the MedicationAdministration resource.
|
|
|
|
|
|
Due to the fact that the resource types are read in random order, it may happen that the referenced Medication resource is not yet available in OMOP CDM. In this case, the Medication reference of the MedicationAdministration resource is set as drug_source_value in DRUG_EXPOSURE. After all resources have been processed, post-processing takes place. During post processing, the referenced medication is searched in the FHIR_ID_TO_OMOP_ID_MAP table using the medication reference in drug_source_value. If this medication exists in OMOP CDM, an update in DRUG_EXPOSURE takes place.
|
|
|
|
|
|

|
|
|
|
|
|
</details>
|
... | ... | |