formbuilder-lhcforms icon indicating copy to clipboard operation
formbuilder-lhcforms copied to clipboard

suppression of unit in the UI impact on json not correct

Open Rosnyni opened this issue 1 year ago • 1 comments

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.

Rosnyni avatar Sep 28 '23 12:09 Rosnyni

Confirmed. Thanks for this report.

plynchnlm avatar Oct 03 '23 16:10 plynchnlm