Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting observations on a DiagnosticReport just puts a null value in the observation array #323

Open
eedrummer opened this issue Jan 20, 2023 · 0 comments

Comments

@eedrummer
Copy link
Contributor

Steps to reproduce:

  1. Create a new module
  2. Create a new DiagnosticReport state
  3. Add two observations
  4. Remove the first observation
  5. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant