Skip to main content
Skip table of contents

Updating a pregnancy

Overview

To update a pregnancy, a Spine Client System makes a request to the Update Pregnancy endpoint, passing a FHIR Bundle resource within the body of the request in JSON format. When updating a pregnancy, the Logical ID of the pregnancy must be included as a URL parameter to uniquely identify the record to be updated. The bundle in the request may contain any valid combination of resources relating to the pregnancy.

If the pregnancy is updated successfully, a response with status code 204 -- No Content is returned.


Request

POST [baseUrl]/Patient/{logical-id}/$update-pregnancy

Parameters

Name

Type

Description

logical-id

String (path)

The logical ID of the Pregnancy record to update

Request Flow

Request Flow - Update a pregnancy

Response

Possible response codes

Code

Description

204

Updated

See response headers:
X-Logical-Id to obtain the ID of the created record
Location to obtain the full Url to read the pregnancy

404

Not Found

422

Unprocessable Entity

Example

Request body

JSON
{
    "resourceType": "Bundle",
    "type": "collection",
    "entry": [
        {
            "resource": {
                "resourceType": "Patient",                
                "name": [
                    {
                        "use": "official",
                        "family": "Different Surname"
                    }
                ]
            }
        }
    ]
}

Response

The response’s body does not contain any information on a successful result.

Header Code

Description

204

Pregnancy has been successfully updated


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.