Closed khyativyasargus closed 1 year ago
@khyativyasargus
Could you please remove any unnecessary characters from both the patch and attach separate questionnaire and questionnaire response files for the observed and not observed issues.
@khyativyasargus
Could you please remove any unnecessary characters from both the patch and attach separate questionnaire and questionnaire response files for the observed and not observed issues.
@khyativyasargus any updates on it? thanks!
@khyativyasargus Could you please remove any unnecessary characters from both the patch and attach separate questionnaire and questionnaire response files for the observed and not observed issues.
@khyativyasargus any updates on it? thanks!
Thanks @santosh-pingle . Apologies for the delay. Here are the Questionnaires & QR (QR is same for both questionnaires) The only difference in both questionnaires is of enableWhenExpression signs_not_showing_respiratory_rate_questionnaire.txt signs_not_showing_respiratory_rate_questionnaire_response.txt signs_showing_respiratory_rate_questionnaire.txt
Patches: not_working_signs.txt working_signs.txt
@khyativyasargus
The description mentioned that it should work for one questionnaire.json file, but I am not seeing the quantity value in either case. Can you please confirm?
@santosh-pingle Can you try applying the working_signs
patch directly? Ideally it should show this screen. Let me know if it's still not showing up.
yes, issue is observed on signs_not_showing_respiratory_rate_questionnaire.json
.
@khyativyasargus @ppanchal-argus https://hl7.org/fhir/extensions/StructureDefinition-questionnaire-unit.html This is for use on items of type integer and decimal
@khyativyasargus
Is the calculatedExpression extension truly necessary in signs_not_showing_respiratory_rate_questionnaire.json
?
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
"valueExpression": {
"language": "text/fhirpath",
"expression": "iif(%resource.repeat(item).where(linkId='Respiratory Rate profile').answer.first().exists(), %resource.repeat(item).where(linkId='Respiratory Rate profile').answer.first().value,{})"
}
}
],
"linkId": "EmCare.B22.DE01",
...
@khyativyasargus @ppanchal-argus
The questionnaire item in questionnaire.json has a calculated expression that returns an empty answer. This empty answer is then updated to the existing answer, which is why the text field shows nothing.
I don't Think so
I will remove it.
Br
@khyativyasargus @ppanchal-argus
The questionnaire item in questionnaire.json has a calculated expression that returns an empty answer. This empty answer is then updated to the existing answer, which is why the text field shows nothing.
Thanks @santosh-pingle for looking up the cause. Really helpful!
Describe the bug For nested item of group type with enable expression, in some case, answer is getting vanished for the item after packRepeatedGroups method while processing QR
Component SDC library
To Reproduce Steps to reproduce the behavior:
Expected behavior Respiratory rate item answer should be rendered if it's given in QR, while debugging through SDC methods , we found that answer object for Respiratory Rate item is being vanished after packRepeatedGroups method with the Patch signs_complete_patch.txt
Screenshots Answer no being rendered for Respiratory rate
Answer being rendered for Respiratory rate as standalone item
Smartphone (please complete the following information):
Additional context After applying patch: Questionnaire is at file: assets/new-patient-registration-paginated.json & QuestionnaireResponse is on line: 83(AddPatientFragment.kt)
@jingtang10 @santosh-pingle