CDM Table name: STEM
Reading from OPTUM_EHR.Patient_Reported_Medications
| Destination Field | Source Field | Logic | Comment |
|---|---|---|---|
| id | autogenerate | ||
| domain_id | This should be the domain_id of the standard concept in the CONCEPT_ID field. If a source code is mapped to CONCEPT_ID 0, put the domain_id as Observation. | ||
| person_id | ptid | ||
| visit_occurrence_id | |||
| visit_detail_id | |||
| provider_id | provid | Lookup the PROVIDER_ID in the PROVIDER table using provid | If provid is blank then leave PROVIDER_ID blank. |
| start_date | reported_date | ||
| end_date | reported_date | ||
| start_datetime | reported_date | Set time to midnight | |
| end_datetime | reported_date | Set time to midnight | |
| concept_id | ndc | Use the SOURCE_TO_STANDARD query to map the code to standard concept(s) with the following filters: Where source_vocabulary_id = ‘NDC’ and Target_standard_concept = ‘S’ and target_invalid_reason is NULL and admin_date between valid_start_date and valid_end_date If there is no mapping available, set concept_id to zero. | |
| source_value | ndc | ||
| source_concept_id | ndc | Use the SOURCE_TO_SOURCE query to map the code to standard concept(s) with the following filters: Where source_vocabulary_id = ‘NDC’ If there is no mapping available, set concept_id to zero. | |
| type_concept_id | 32865 | Patient Self-Report | |
| operator_concept_id | 0 | ||
| unit_concept_id | |||
| unit_source_value | |||
| range_high | |||
| range_low | |||
| value_as_number | |||
| value_as_string | |||
| value_as_concept_id | |||
| value_source_value | |||
| verbatim_end_date | |||
| days_supply | |||
| dose_unit_source_value | strength_unit | ||
| lot_number | |||
| modifier_concept_id | |||
| modifier_concept_id | |||
| modifier_source_value | |||
| quantity | |||
| refills | |||
| route_concept_id | route | Use the SOURCE_TO_STANDARD query to map the code to standard concept(s) with the following filters: Where source_vocabulary_id = ‘JNJ_OPTUM_EHR_ROUTE’ and Target_standard_concept = ‘S’ and target_invalid_reason is NULL If there is no mapping available, set concept_id to zero. | |
| route_source_value | route | ||
| sig | |||
| stop_reason | |||
| unique_device_id | |||
| anatomic_site_concept_id | |||
| disease_status_concept_id | |||
| specimen_source_id | |||
| anatomic_site_source_value | |||
| disease_status_source_value | |||
| condition_status_concept_id | |||
| condition_status_source_value |