Receive Message

API URL

{{url}}/fhir-adapter-service/message/receive-message

Method

POST

Description

Receives and processes a message, creating mapping data.

Input

Field Name

Type

Example

message

String

Healthcare

Sample Input:

{
    "type": "Assessment_Data",
    "bpLog": {
        "createdBy": 2,
        "id": 54,
        "updatedBy": 2,
        "createdAt": "2024-03-27T09:57:08+00:00",
        "updatedAt": "2024-03-27T09:57:08+00:00",
        "tenantId": 3,
        "avgSystolic": 136,
        "avgDiastolic": 101,
        "height": 100.0,
        "weight": 58.0,
        "bmi": 58.0,
        "cvdRiskLevel": "Low risk",
        "cvdRiskScore": 2,
        "isRegularSmoker": false,
        "type": "assessment",
        "patientTrackId": 20,
        "bpLogDetails": [
            {
                "systolic": 150,
                "diastolic": 112
            },
            {
                "systolic": 105,
                "diastolic": 80
            },
            {
                "systolic": 153,
                "diastolic": 112
            }
        ],
        "bpTakenOn": 1711533428304,
        "assessmentTenantId": 3,
        "latest": true,
        "redRiskPatient": false,
        "oldRecord": false,
        "updatedFromEnrollment": false,
        "active": true,
        "deleted": false
    },
    "glucoseLog": {
        "createdBy": 2,
        "id": null,
        "updatedBy": 2,
        "createdAt": null,
        "updatedAt": null,
        "tenantId": 3,
        "hba1c": null,
        "glucoseType": null,
        "glucoseValue": null,
        "lastMealTime": null,
        "glucoseDateTime": null,
        "glucoseUnit": "mmol/L",
        "hba1cUnit": "mmol/L",
        "type": "assessment",
        "patientTrackId": 20,
        "screeningId": null,
        "assessmentTenantId": null,
        "bgTakenOn": null,
        "isBeforeDiabetesDiagnosis": null,
        "glucoseLogId": null,
        "riskLevel": null,
        "latest": true,
        "oldRecord": false,
        "updatedFromEnrollment": false,
        "active": true,
        "deleted": false
    },
    "mentalHealth": null,
    "patientSymptomList": null,
    "patientPregnancyDetails": null,
    "redRiskNotification": null,
    "patientMedicalComplianceList": null,
    "patientAssessment": {
        "createdBy": 2,
        "id": 78,
        "updatedBy": 2,
        "createdAt": "2024-03-27T09:57:08+00:00",
        "updatedAt": "2024-03-27T09:57:08+00:00",
        "tenantId": 3,
        "bpLogId": 54,
        "glucoseLogId": null,
        "type": "assessment",
        "patientTrackId": 20,
        "active": true,
        "deleted": false
    },
    "patientTracker": {
        "createdBy": 2,
        "id": 20,
        "updatedBy": 2,
        "createdAt": "2024-03-27T09:55:17+00:00",
        "updatedAt": "2024-03-27T09:55:57+00:00",
        "tenantId": 3,
        "nationalId": "VEDHA123",
        "firstName": "VEDHA",
        "lastName": "A",
        "dateOfBirth": null,
        "age": 26,
        "gender": "Female",
        "phoneNumber": "788946264",
        "height": 100.0,
        "weight": 58.0,
        "bmi": 58.0,
        "isRegularSmoker": false,
        "countryId": 1,
        "siteId": 1,
        "operatingUnitId": 1,
        "accountId": 1,
        "programId": 17,
        "avgSystolic": 136,
        "avgDiastolic": 101,
        "avgPulse": null,
        "glucoseUnit": "mmol/L",
        "glucoseType": "fbs",
        "glucoseValue": 5.0,
        "cvdRiskLevel": "Low risk",
        "cvdRiskScore": 2,
        "screeningLogId": null,
        "nextMedicalReviewDate": 1714211717659,
        "nextBpAssessmentDate": 1719482228326,
        "nextBgAssessmentDate": null,
        "patientId": 21,
        "patientStatus": "ENROLLED",
        "isObservation": null,
        "isScreening": false,
        "screeningReferral": null,
        "enrollmentAt": 1711533317652,
        "lastReviewDate": null,
        "lastAssessmentDate": 1711533428323,
        "isConfirmDiagnosis": false,
        "diagnosisComments": null,
        "confirmDiagnosis": null,
        "provisionalDiagnosis": [
            "HTN"
        ],
        "phq4Score": 6,
        "phq4RiskLevel": "Moderate",
        "phq4FirstScore": 1,
        "phq4SecondScore": 5,
        "phq9Score": null,
        "phq9RiskLevel": null,
        "gad7Score": null,
        "gad7RiskLevel": null,
        "riskLevel": null,
        "lastMenstrualPeriodDate": null,
        "isPregnant": false,
        "estimatedDeliveryDate": null,
        "lastMedicationPrescribedDate": null,
        "isHtnDiagnosis": false,
        "isDiabetesDiagnosis": false,
        "lastLabtestReferredDate": null,
        "totalCount": 0,
        "deleteReason": null,
        "deleteOtherReason": null,
        "initialReview": false,
        "medicationPrescribed": false,
        "redRiskPatient": false,
        "labtestReferred": false,
        "active": true,
        "deleted": false
    },
    "createdBy": 2,
    "updatedBy": 2,
    "patientTrackId": 20
}

Sample Output:

"message": "Message successfully saved in HAPI FHIR. "

Last updated

@2024 Medtronic LABS