Comments (5)
That kind of loading of data would normally be done by loading data from a QuestionnaireResponse. See http://lhncbc.github.io/lforms/#merge-fhir-data.
from lforms.
from lforms.
That is true-- QuestionnaireResponses don't contain empty answers. Are you trying to pre-populate with data from the patient's record? LHC-Forms supports populating from FHIR Observations (https://build.fhir.org/ig/HL7/sdc/populate.html#obs-pop) and also from the Patient resource via the launchContext extension (https://build.fhir.org/ig/HL7/sdc/populate.html#exp-pop).
from lforms.
Thanks for pointing me to the launchContext extension, which looks promising.
For now I'll create a QuestionnaireResponse out out the original Questionnaire and prepopulate it before merging with the Questionnaire ...
Thanks for your help!
from lforms.
If you are going to do that, you could also just work with LHC-Forms' internal data structure, in which the answers and form definition are together. The call would be LForms.Util.convertFHIRQuestionnaireToLForms(fhirData, fhirVersion)
(see http://lhncbc.github.io/lforms/#convert-fhir-data), where fhirData is the Questionnaire, and the return is the internal format form definition which can have 'value' fields placed in items. The drawback is that this internal format might change some day, and the 'value' field is not documented, since we only documented the definition part of the format, and not the user data part.
from lforms.
Related Issues (20)
- 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
- A new widget 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.