formbuilder-lhcforms
formbuilder-lhcforms copied to clipboard
suppression of unit in the UI impact on json not correct
filling the unit field of an integer item
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 :
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.
Confirmed. Thanks for this report.