HFE: Conditions should have a pointer for the form_field it was created through

Maybe out of context :pray: , this reminded me that some work needs to be done on WS/REST module to support those fields ie. formFieldNamespace and formFieldPath.

Such a payload would fail with an NPE, this is because the WS module tries to dynamically load getters and setters for those props using reflection yet support was added by an interface and not a pure POJO

Has anyone tried this out? @dkayiwa @ibacher

  "person": "68ed6d7f-7f58-416d-b51b-c45490dd03bc",
  "obsDatetime": "2021-09-09T21:06:05.999Z",
  "concept": "159427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
  "location": {
    "uuid": "ba685651-ed3b-4e63-9b35-78893060758a",
    "display": "Inpatient Ward"
  },
  "order": null,
  "groupMembers": [],
  "voided": false,
  "formFieldNamespace": "ohri-forms",
  "formFieldPath": "some-path",
  "value": "664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
}

Error log: <!doctype html><html lang="en"><head> <title>HTTP Status 500 – Internal - Pastebin.com