# Pregnancy Update

| **API URL**     | {{url}}/spice-service/patient/pregnancy-details/update |
| --------------- | ------------------------------------------------------ |
| **Method**      | POST                                                   |
| **Description** | Patient Pregnancy details update                       |

#### **Input:** <a href="#pregnancyupdate-input" id="pregnancyupdate-input"></a>

| **Field Name**        | **Type** | **Mandatory** | **Example**                                                                                                                                     |
| --------------------- | -------- | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| Authorization(Header) | String   | Yes           | Bearer eyJlbmMiOiJBMTI4R0NNIiwiYWxnIjoiUlNBLU9BRVAtMjU2In0.MCm0mJDfpfjlr10Uok79-kTF7fv9Tn7cI5m2WsRDGUd9VS7iRmfbszjuc1-w5D-PYt9CdVxRMGBQlzYauhnI |

#### **Input:** <a href="#pregnancyupdate-input-.1" id="pregnancyupdate-input-.1"></a>

| **Field Name**          | **Type**  | **Mandatory** | **Example**               |
| ----------------------- | --------- | ------------- | ------------------------- |
| diagnosis               | String    | Yes           | Eclampsia                 |
| gravida                 | Integer   | No            | 1                         |
| isOnTreatment           | Boolean   | No            | Yes                       |
| parity                  | Integer   | No            | 1                         |
| temperature             | Integer   | No            | 37                        |
| pregnancyFetusesNumber  | Integer   | No            | 2                         |
| lastMenstrualPeriodDate | Timestamp | No            | 2023-01-16T00:00:00+00:00 |
| estimatedDeliveryDate   | Timestamp | No            | 2023-03-13T00:00:00+00:00 |

#### **Sample Input:** <a href="#pregnancyupdate-sampleinput" id="pregnancyupdate-sampleinput"></a>

#### { <a href="#pregnancyupdate" id="pregnancyupdate"></a>

&#x20; "diagnosis": \[

&#x20;   "Eclampsia"

&#x20; ],

&#x20; "diagnosisTime": "2023-05-10T00:00:00+00:00",

&#x20; "estimatedDeliveryDate": "2023-03-13T00:00:00+00:00",

&#x20; "gravida": 2,

&#x20; "isOnTreatment": true,

&#x20; "lastMenstrualPeriodDate": "2023-01-16T00:00:00+00:00",

&#x20; "parity": 3,

&#x20; "patientPregnancyId": 3,

&#x20; "patientTrackId": 25,

&#x20; "pregnancyFetusesNumber": 3,

&#x20; "temperature": 78,

&#x20; "tenantId": 4,

&#x20; "unitMeasurement": "metric"

}

#### **Output:** <a href="#pregnancyupdate-output" id="pregnancyupdate-output"></a>

| **Field Name**            | **Type**  | **Comments**      |
| ------------------------- | --------- | ----------------- |
| `diagnosis`               | String    | Confirm Diagnosis |
| `estimatedDeliveryDate`   | String    | Pregnancy Details |
| `gravida`                 | Timestamp | Pregnancy Details |
| `isOnTreatment`           | Boolean   | Pregnancy Details |
| `parity`                  | Timestamp | Pregnancy Details |
| `lastMenstrualPeriodDate` | String    | Pregnancy Details |
| `temperature`             | Timestamp | Pregnancy Details |
| `pregnancyFetusesNumber`  | Timestamp | Pregnancy Details |

#### **Sample Output:** <a href="#pregnancyupdate-sampleoutput" id="pregnancyupdate-sampleoutput"></a>

```
  {
  "message": "Patient Pregnancy details updated successfully.",
  "entity": {
    "createdBy": 5,
    "id": 3,
    "updatedBy": 5,
    "createdAt": null,
    "updatedAt": "2023-05-26T11:53:23+00:00",
    "tenantId": 4,
    "pregnancyFetusesNumber": 3,
    "gravida": 2,
    "parity": 3,
    "temperature": 78,
    "lastMenstrualPeriodDate": "2023-01-16T05:30:00+05:30",
    "estimatedDeliveryDate": "2023-03-13T05:30:00+05:30",
    "isOnTreatment": true,
    "diagnosisTime": "2023-05-10T05:30:00+05:30",
    "diagnosis": [
      "Eclampsia"
    ],
    "patientTrackId": 25,
    "active": true,
    "deleted": false
  },
  "status": true,
  "entityList": null,
  "responseCode": 200,
  "totalCount": null
}
```
