Lifestyle Create

API URL

{{url}}/spice-service/patient-lifestyle/create

Method

POST

Description

Patient Lifestyle Create

Input:

Field Name

Type

Mandatory

Example

Authorization(Header)

String

Yes

Bearer eyJlbmMiOiJBMTI4R0NNIiwiYWxnIjoiUlNBLU9BRVAtMjU2In0.MCm0mJDfpfjlr10Uok79-kTF7fv9Tn7cI5m2WsRDGUd9VS7iRmfbszjuc1-w5D-PYt9CdVxRMGBQlzYauhnI

Input:

Field Name

Type

Mandatory

Example

clinicianNote

String

No

notes

cultureValue

String

No

Nutrition, Hypertension Education

referredFor

String

No

Nutrition, Hypertension Education

referredByDisplay

String

No

KavyaProvider

Sample Input:

{

"clinicianNote": "notes",

"cultureValue": "Nutrition, Hypertension Education",

"isExpanded": false,

"lifestyle": [

1,

2

],

"nutritionist": false,

"patientTrackId": 25,

"patientVisitId": 33,

"referredBy": 5,

"referredByDisplay": "KavyaProvider",

"referredDate": "2023-05-26T17:25:49+05:30",

"referredFor": "Nutrition, Hypertension Education",

"roleName": "PROVIDER"

}

Output:

Field Name

Type

Comments

id

Integer

User ID

name

String

Lifestyle name

displayOrder

Integer

Lifestyle display order

referredBy

Integer

Lifestyle Referred User

referredDate

Timestamp

Lifestyle Referred Date

clinicianNote

String

Lifestyle Clinician Notes

otherNote

String

Lifestyle Other Notes

assessedBy

Integer

Lifestyle Assessed User

Sample Output:

 {
  "message": "Patient Nutrition Lifestyle created successfully.",
  "entity": {
    "createdBy": 5,
    "id": 6,
    "updatedBy": 5,
    "createdAt": "2023-05-26T11:56:02+00:00",
    "updatedAt": "2023-05-26T11:56:02+00:00",
    "tenantId": 4,
    "lifestyles": [
      {
        "createdBy": 1,
        "id": 1,
        "updatedBy": 1,
        "createdAt": "2023-05-23T12:15:19+00:00",
        "updatedAt": "2023-05-23T12:15:19+00:00",
        "name": "Nutrition",
        "displayOrder": 1,
        "cultureValue": null,
        "active": true,
        "deleted": false
      },
      {
        "createdBy": 1,
        "id": 2,
        "updatedBy": 1,
        "createdAt": "2023-05-23T12:15:19+00:00",
        "updatedAt": "2023-05-23T12:15:19+00:00",
        "name": "Hypertension Education",
        "displayOrder": 3,
        "cultureValue": null,
        "active": true,
        "deleted": false
      }
    ],
    "lifestyleAssessment": null,
    "patientTrackId": 25,
    "patientVisitId": 33,
    "referredBy": 5,
    "referredDate": "2023-05-26T17:25:49+05:30",
    "assessedBy": null,
    "assessedDate": null,
    "clinicianNote": "notes",
    "otherNote": null,
    "viewed": false,
    "active": true,
    "deleted": false
  },
  "status": true,
  "entityList": null,
  "responseCode": 201,
  "totalCount": null
}

@2024 Medtronic LABS