PUT pregnancy Report operation
This page will in details explain the PUT pregnancy Report operation.
The Pregnancy Report API Entity Set
The pregnancy report API only has one operation which PUT new pregnancy report resource into a storage account which is then handled by the cryos customer care team. On the developer portal we have added the request body with the needed data you need to provide in order to get a 200 success HTTP code in return.
General use
In order to make a succesfull put request - there are some fields that are required and mandatory in order to make a pregnancy report
Report field may have one of the following field values
Pregnancy - If a succesfull pregnancy has been reported
Miscarriage - if the pregnancy resulted in failure
Completed - the pregnancy is completed with baby.
The following fields are mandatory and needs to be filed in order to create and send a pregnancy report to Cryos.
Timestamp may not be blankTissueEstablismentName may not be blankTissueEstablismentNumber may not be blankPatientsBirthday may not be blankPatientInitials may not be blankPatientCountryCode may not be blankReference may not be blankDetails may not be blankIsSibling my not be blankExpectedBirths must be bigger than zero
HTTP Request Example
You as the developer need to know the data that should be put in, but to give a short example of how this could look please use the example below as a form of guideline.
Please note that this a simplified example and you have to enter the correct Donor ID, TE-Number, TEName, reference and details yourself. Always if in doubt contact the clinic for these kinds of information,
since they know exactly what the data means regarding these fields. The report field can have one of three values – these are pregnancy, miscarriage or completed. The exact documentation can be found on the developer portal and have description for each field as well as the JSON file formatting.
