Deleting observations on a DiagnosticReport just puts a null value in the observation array
eedrummer opened this issue · 0 comments
eedrummer commented
Steps to reproduce:
- Create a new module
- Create a new DiagnosticReport state
- Add two observations
- Remove the first observation
- Look at the GMF JSON
You will see the following for the observations
property on the DiagnosticReport state:
"observations": [
null,
{
"category": "laboratory",
"unit": "",
"codes": [
{
"system": "LOINC",
"code": "1234",
"display": "LOINC Code"
}
],
"exact": {
"quantity": 1
}
}
]
The null
in the array should not be there. It should just be an array with a single value.