LHNCBC / formbuilder-lhcforms

Build LHC-Forms and FHIR Questionnaires
Other
28 stars 22 forks source link

conditional display > Answer field does not work with answerValueSet #70

Closed Rosnyni closed 9 months ago

Rosnyni commented 12 months ago

Hello,

The following JSON was created using the formbuilder :

{
  "resourceType": "Questionnaire",
  "extension": [
    {
      "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-preferredTerminologyServer",
      "valueUrl": "https://hapi-fhir-server-dev-ext-k8s.eds.aphp.fr/fhir/"
    }
  ],
  "title": "New Form",
  "status": "draft",
  "item": [
    {
      "item": [
        {
          "type": "string",
          "linkId": "9191010295087",
          "text": "item that should be enabled only in certain circumstances, but it don't work so, there is no condition"
        }
      ],
      "type": "choice",
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/questionnaire-item-control",
                "code": "drop-down",
                "display": "Drop down"
              }
            ]
          }
        }
      ],
      "linkId": "2643956466117",
      "text": "choice item with answerValueSet",
      "answerValueSet": "https://aphp.fr/ig/fhir/sdc/ValueSet/aphp-sdc-aph-mat-ddg-vs"
    }
  ]
}

my apologize for using a local terminology serveur, but it works :

image

However, it is not possible to file the conditional display > answer field of the 9191010295087 item, the list is desperatly empty :

image

plynchnlm commented 12 months ago

Thanks for reporting this. This is being worked on now.

akanduru commented 9 months ago

This is fixed as of 9.2.6