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

Read-only repeating questions can be deleted #153

Open
whollervi opened this issue Sep 6, 2024 · 2 comments
Open

Read-only repeating questions can be deleted #153

whollervi opened this issue Sep 6, 2024 · 2 comments

Comments

@whollervi
Copy link

Given the following questionnaire having a read-only, repeating question

{
  "resourceType": "Questionnaire",
  "title": "Repeating Questions Test",
  "status": "draft",
  "item": [
    {
      "type": "string",
      "linkId": "4935420545186",
      "text": "Question 1",
      "required": false,
      "repeats": true,
      "readOnly": true
    }
  ],
  "id": "80874dd2-b204-4363-a1c3-386c67f720ba"
}

and a questionnaire response with two answers.

{
    "resourceType": "QuestionnaireResponse",
    "id": "a48d4385-0422-43df-8140-ff79a603a1cf",
    "meta": {
        "profile": [
            "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse|2.7"
        ],
        "tag": [
            {
                "code": "lformsVersion: 34.0.1"
            }
        ],
        "lastUpdated": "2024-09-06T17:29:10.0265231+02:00",
        "versionId": "1"
    },
    "status": "completed",
    "authored": "2024-09-06T17:29:10.011+02:00",
    "item": [
        {
            "linkId": "4935420545186",
            "text": "Question 1",
            "answer": [
                {
                    "valueString": "answer 1"
                },
                {
                    "valueString": "answer 2"
                }
            ]
        }
    ],
    "questionnaire": "80874dd2-b204-4363-a1c3-386c67f720ba"
}

Although the question is read-only one can still add additional answers and even delete existing answers which in my opinion shouldn't be possible.

image

I am wondering what the expected rendering / interaction of a read-only, repeating question is.

What are your thoughts?

Thanks,
Wolfgang

@plynchnlm
Copy link
Member

I am inclined to think you are right. This is probably just a bug, rather than something we did intentionally.

@lhcye
Copy link
Contributor

lhcye commented Oct 4, 2024

It has been fixed in v36.5.1.

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

3 participants