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

suppression of unit in the UI impact on json not correct #69

Open
Rosnyni opened this issue Sep 28, 2023 · 1 comment
Open

suppression of unit in the UI impact on json not correct #69

Rosnyni opened this issue Sep 28, 2023 · 1 comment

Comments

@Rosnyni
Copy link

Rosnyni commented Sep 28, 2023

filling the unit field of an integer item

image

leads to the following json :

{
  "item": [
    {
      "type": "integer",
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-unit",
          "valueCoding": {
            "system": "http://unitsofmeasure.org",
            "code": "g/L",
            "display": "gram per liter"
          }
        }
      ],
      "linkId": "2603837273225",
      "text": "New item 1"
    }
  ],
  "resourceType": "Questionnaire",
  "title": "New Form",
  "status": "draft"
}

And it is good.

However, deleting the content of the units field :

image

leads to the following json :

{
  "item": [
    {
      "type": "integer",
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-unit",
          "valueCoding": {
            "system": "http://unitsofmeasure.org",
            "code": "g/L",
            "display": "gram per liter"
          }
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-unit"
        }
      ],
      "linkId": "2603837273225",
      "text": "New item 1"
    }
  ],
  "resourceType": "Questionnaire",
  "title": "New Form",
  "status": "draft"
}

Which is not good I think.

@plynchnlm
Copy link
Member

Confirmed. Thanks for this report.

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

2 participants