Hi,
I’m using SENAITE health.
I would ask you. How to create patient with API?
Thank You,
Did you ever get any info on this? trying to do the same
The logic is the same as for other content types. See the documentation: CRUD — senaite.jsonapi 1.2.5 documentation
For instance, the following should work:
POST
: http://localhost:8080/senaite/@@API/senaite/v1/create
PAYLOAD
(application/json)
:
{
"portal_type": "Patient",
"firstname": "John",
"lastname": "Doe",
"sex": "m",
"birthdate": "1978-03-15",
"parent_path": "/senaite/patients"
}