I am testing the latest dev branch. I have been able to successfully build and run the server. The http://localhost:8080/ehrbase/rest/openehr/v1/ehr works fine from the integrated swagger UI.
However when i am testing this from postman, I get the following error
> {
"error": "Message at /archetype_node_id (/other_details/archetype_node_id): Attribute archetype_node_id of class ITEM_TREE does not match existence 1..1\nMessage at /name (/other_details/name): Attribute name of class ITEM_TREE does not match existence 1..1\nMessage at /archetype_node_id (/archetype_node_id): Attribute archetype_node_id of class EHR_STATUS does not match existence 1..1\nMessage at /name (/name): Attribute name of class EHR_STATUS does not match existence 1..1\n", "status": "Bad Request" }
Any idea what could be happening?
If I change the subject.id.type to PersonID (from the default GENERIC_ID) I get the following error
{
âerrorâ: âCould not resolve type id âPersonIDâ as a subtype of com.nedap.archie.base.OpenEHRBase
: no such class found\n at [Source: (String)"{"_type":"EHR_STATUS","subject":{"external_ref":{"id":{"_type":"PersonID","value":"ins01","scheme":"id_scheme"},"namespace":"ehr_craft","type":"PERSON"}},"other_details":{"_type":"ITEM_TREE","items":},"is_modifiable":"true","is_queryable":"true"}"; line: 1, column: 153] (through reference chain: com.nedap.archie.rm.ehr.EhrStatus["subject"]->com.nedap.archie.rm.generic.PartySelf["external_ref"]->com.nedap.archie.rm.support.identification.PartyRef["id"])â,
âstatusâ: âBad Requestâ
}
Are there specific values allowed for subject.id.type? (and the other input fields?)
regards