Patient Segmentation Process API - Implementation Template
Developer guide
This document provides information generated from the DataWeave scripts included in the project, such as function definitions, variable definitions, and data mapping tables. It can be used by developers seeking a solution to upload Patient Conditions and Immunizations data into Salesforce CDP.
Module | Description |
---|---|
map-condition | Provides mappings to transform patient conditions data from source to target data format. |
map-immunization | Provides mappings to transform patient immunizations data from source to target data format. |
map-condition
Source:
.src/main/resources/dwl/map-condition.dwl
Mapping Tables
Maps Patient Conditions CSV to JSON for CDP Bulk Upload
Patient Condition CSV Fields | CDP Condition JSON Fields | Description |
---|---|---|
PATIENT_ID | patientId | Unique Id of the patient |
PATIENT_MRN | patientMRN | Medical record number of the patient |
CONDITION_CODE | conditionCode | Identification of the condition |
CONDITION_DESCRIPTION | description | Description of patient condition |
CONDITION_STATUS | clinicalStatus | Condition clinical status |
CONDITION_SEVERITY | severity | Subjective severity of condition |
CHRONIC_FLAG | chronicFlag | Chronic flag of condition |
NOTED_DATE | recordedDate | Date of condition was first recorded |
RESOLVED_DATE | resolvedDate | Date of condition when resolved |
SOURCE_SYSTEM_ID | sourceSystemId | Id of the source system |
map-immunization
Source:
.src/main/resources/dwl/map-immunization.dwl
Mapping Tables
Maps Patient Immunizations CSV to JSON for CDP Bulk Upload
Patient Immunization CSV Fields | CDP Immunization JSON Fields | Description |
---|---|---|
PATIENT_ID | patientId | Unique Id of the patient |
PATIENT_MRN | patientMRN | Medical record number of the patient |
VACCINE_CODE | vaccineCode | Vaccine product administered |
VACCINE_DESCRIPTION | vaccineDescription | Description of vaccine |
VACCINE_GROUP | vaccineGroup | Group of vaccine |
VACCINE_STATUS | vaccineStatus | Status of vaccine |
DOSE | dose | Amount of vaccine administered |
VACCINE_DATE | vaccineDate | Date of vaccine was given |
SOURCE_SYSTEM_ID | sourceSystemId | Id of the source system |