Comments (3)
I think you mean that the codes would appear in the (FHIR) QuestionnaireResponse. The answer for each question would appear under its own "item" in the QuestionnaireRepsonse (item.answer.valueCoding), and not listed together in the same array as you are showing. Is that okay?
from lforms.
No, my idea is that by adding the new widget.
![image](https://private-user-images.githubusercontent.com/164068691/333127191-ce36bfbb-6e18-4865-bc98-42a5fcffc2ec.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk0NjMyNzIsIm5iZiI6MTcxOTQ2Mjk3MiwicGF0aCI6Ii8xNjQwNjg2OTEvMzMzMTI3MTkxLWNlMzZiZmJiLTZlMTgtNDg2NS1iYzk4LTQyYTVmY2ZmYzJlYy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjI3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYyN1QwNDM2MTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hZTkxMTdlYmI1ZjdkZDI2OTY3OTExOGRmZmVhYThjNDM4Yjc2YWQyZmU5NDc4NGE4MmE1NmM3MzVmM2M3ODhjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.TPI74HVHEGmnq1hSRbMeI5VtHGSPrFSeY8zZVTZFeZM)
The following appears when you select a drop-down menu when you select JSON preview.
![image](https://private-user-images.githubusercontent.com/164068691/333125444-54b04c5f-c690-4844-8f82-ad2b03245831.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk0NjMyNzIsIm5iZiI6MTcxOTQ2Mjk3MiwicGF0aCI6Ii8xNjQwNjg2OTEvMzMzMTI1NDQ0LTU0YjA0YzVmLWM2OTAtNDg0NC04ZjgyLWFkMmIwMzI0NTgzMS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjI3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYyN1QwNDM2MTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lYmRkZjMzYTQyZWFjOGZhNzdhMDc4ZGJlYWNhZjg1NjYwYWQ0M2Q0Nzg2YzZjZDkwNTI0ZWMzMzRjZjgyY2IyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.9J7RZuaFYuTkRkbsTAgsUaGhFmTz_NUbP0BadgCf250)
The system, code and display had already been previously loaded in the information of the drop-down menu
from lforms.
I understand. So, in the short term you would need to modify the form builder to include your widget and set the codes on the Questionnaire it generates. Longer term, we have been thinking about adding a lookup feature to the system/code/display fields for item answerOption, and we could do the same for the Questionnaire code. That would not be quite the same thing, though, because you would just be picking one code, and it wouldn't be grouped by the type. Probably we could add support for hierarchical CodeSystems, so that if you defined type/subtype codes as a CodeSystem with hierarchy, we could display that hierarchy (at least for two levels) in single list, or perhaps with two list fields as you have in your picture. However, it seems like a special-case feature to include both the code and the sub-code in the Questionnaire, so you might be better off with your own customization.
from lforms.
Related Issues (20)
- Prepopulating forms HOT 5
- Do we have any feature for patient resource? We need to update patient resource using LHC. HOT 1
- 0 value for number types in response is ignored HOT 3
- How to pre-populate values setting lhcFormData trough LhcDataService
- Integer & date datatype field issue HOT 2
- CSS is overwriting other CSS in my application HOT 2
- Static images used by lforms cannot be found. HOT 7
- Error on library import: Uncaught TypeError: Cannot read properties of null (reading 'appendChild') HOT 2
- In repeat questions, SNOMED Answer valuesets are not rendered in the second repetition HOT 2
- How to extract the full panel structure? HOT 3
- conditionnal display not well managed HOT 4
- UI issue in dropdown options list when resizing the window HOT 2
- Error using run build HOT 32
- Validation popover addresses wrong answer in repeatable item HOT 2
- No response is created if an answer contains an invalid data type
- Preview in multiple columns HOT 3
- Use R5 of Fhir HOT 15
- CalculatedExpressions not working? HOT 1
- Prepopulate form with source data HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lforms.