I have this body:
{
“uid”: {
“value”: “6eb91861-faa9-4989-a811-078f674d570a”
},
“versions”: [
{
“_type”: “VERSIONED_COMPOSITION”,
“lifecycle_state”: {
“_type”: “TERMINOLOGY_CODE”,
“terminology_id”: “openehr”,
“code_string”: “532”
},
“data”: {
“_type”: “COMPOSITION”,
“name”: {
“_type”: “DV_TEXT”,
“value”: “alex”
},
“archetype_node_id”: “openEHR-EHR-COMPOSITION.encounter.v1”,
“language”: {
“_type”: “CODE_PHRASE”,
“terminology_id”: {
“_type”: “TERMINOLOGY_ID”,
“value”: “openehr”
},
“code_string”: “en”
},
“territory”: {
“_type”: “CODE_PHRASE”,
“terminology_id”: {
“_type”: “TERMINOLOGY_ID”,
“value”: “openehr”
},
“code_string”: “ES”
},
“category”: {
“_type”: “DV_CODED_TEXT”,
“value”: “animal”,
“defining_code”: {
“_type”: “CODE_PHRASE”,
“terminology_id”: {
“_type”: “TERMINOLOGY_ID”,
“value”: “openehr”
},
“code_string”: “433”
}
},
“context”: {
“start_time”: {
“_type”: “DV_DATA_TIME”,
“value”: “2023-02-16T11:14:29.007Z”
},
“setting”: {
“_type”: “DV_CODED_TEXT”,
“value”: “Primària”,
“defining_code”: {
“terminology_id”: {
“_type”: “TERMINOLOGY_ID”,
“value”: “openehr”
},
“code_string”: “228”
}
}
},
“composer”: {
“_type”: “PARTY_IDENTIFIED”,
“name”: “Joan”
},
“content”:
},
“commit_audit”: {
“_type”: “AUDIT_DETAILS”,
“change_type”: {
“_type”: “TERMINOLOGY_CODE”,
“terminology_id”: “openehr”,
“code_string”: “249”
},
“committer”: {
“_type”: “PARTY_SELF”
}
}
}
],
“audit”: {
“_type”: “AUDIT_DETAILS”,
“change_type”: {
“_type”: “TERMINOLOGY_CODE”,
“terminology_id”: “openehr”,
“code_string”: “249”
},
“committer”: {
“_type”: “PARTY_SELF”
}
}
}
Anyone can find or knows what kind of error are maybe happening?
PD: In POSTMAN this petition returns 500 Internal Server Error.
Thanks!