Comments (4)
{
"name": "Test Questionnaire Repeating Elements",
"title": "Repeating Elements",
"id": "355758",
"status": "active",
"version": "1",
"experimental": true,
"meta": {
"versionId": "1",
"lastUpdated": "2019-11-21T04:25:04.000Z",
"profile": [
"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire|2.7"
]
},
"items": [
{
"question": "Risks",
"questionCodeSystem": "Custom",
"questionCode": "1",
"questionCardinality": {
"min": "1",
"max": ""
},
"header": true,
"editable": "1",
"answerCardinality": {
"min": "0",
"max": "1"
},
"codeList": [
{
"system": "Custom",
"code": "1",
"display": "Risks"
}
],
"linkId": "/1",
"items": [
{
"question": "What type of risk is this?",
"questionCodeSystem": "Custom",
"questionCode": "1.1",
"questionCardinality": {
"min": "1",
"max": "1"
},
"header": false,
"editable": "1",
"answerCardinality": {
"min": "1",
"max": "1"
},
"dataType": "CNE",
"answers": [
{
"text": "Psychological or Emotional",
"code": "A",
"label": "",
"score": null
},
{
"text": "Physical",
"code": "B",
"label": "",
"score": null
},
{
"text": "Financial",
"code": "C",
"label": "",
"score": null
}
],
"displayControl": {
"answerLayout": {
"type": "COMBO_BOX"
}
},
"codeList": [
{
"system": "Custom",
"code": "1.1",
"display": "What type of risk is this?"
}
],
"linkId": "/1/1.1"
},
{
"question": "Describe the risk in detail",
"questionCodeSystem": "Custom",
"questionCode": "1.2",
"questionCardinality": {
"min": "1",
"max": "1"
},
"header": false,
"editable": "1",
"answerCardinality": {
"min": "1",
"max": "1"
},
"dataType": "TX",
"codeList": [
{
"system": "Custom",
"code": "1.2",
"display": "Describe the risk in detail"
}
],
"linkId": "/1/1.2"
},
{
"question": "What is the timeline when this risk will happen?",
"questionCodeSystem": "Custom",
"questionCode": "1.3",
"questionCardinality": {
"min": "1",
"max": "1"
},
"header": false,
"editable": "1",
"answerCardinality": {
"min": "1",
"max": "1"
},
"dataType": "CNE",
"answers": [
{
"text": "Effects will become apparent during the study",
"code": "A",
"label": "",
"score": null
},
{
"text": "Effects may become apparent many years after the study",
"code": "B",
"label": "",
"score": null
}
],
"displayControl": {
"answerLayout": {
"type": "COMBO_BOX"
}
},
"codeList": [
{
"system": "Custom",
"code": "1.3",
"display": "What is the timeline when this risk will happen?"
}
],
"linkId": "/1/1.3"
},
{
"question": "Is there a risk of death?",
"questionCodeSystem": "Custom",
"questionCode": "1.4",
"questionCardinality": {
"min": "1",
"max": "1"
},
"header": false,
"editable": "1",
"answerCardinality": {
"min": "1",
"max": "1"
},
"dataType": "CNE",
"answers": [
{
"text": "Yes",
"code": "Yes",
"label": "",
"score": null
},
{
"text": "No",
"code": "No",
"label": "",
"score": null
},
{
"text": "Unknown or N/A",
"code": "Unknown or N/A",
"label": "",
"score": null
}
],
"displayControl": {
"answerLayout": {
"type": "COMBO_BOX"
}
},
"codeList": [
{
"system": "Custom",
"code": "1.4",
"display": "Is there a risk of death?"
}
],
"linkId": "/1/1.4"
}
]
},
{
"question": "Procedures",
"questionCodeSystem": "Custom",
"questionCode": "2",
"questionCardinality": {
"min": "1",
"max": ""
},
"header": true,
"editable": "1",
"answerCardinality": {
"min": "0",
"max": "1"
},
"codeList": [
{
"system": "Custom",
"code": "2",
"display": "Procedures"
}
],
"linkId": "/2",
"items": [
{
"question": "Select the type of procedure",
"questionCodeSystem": "Custom",
"questionCode": "2.1",
"questionCardinality": {
"min": "1",
"max": "1"
},
"header": false,
"editable": "1",
"answerCardinality": {
"min": "1",
"max": "1"
},
"dataType": "CNE",
"answers": [
{
"text": "Blood draw",
"code": "A",
"label": "",
"score": null
},
{
"text": "Xray or CT scan",
"code": "B",
"label": "",
"score": null
},
{
"text": "MRI",
"code": "C",
"label": "",
"score": null
},
{
"text": "Ultrasound",
"code": "D",
"label": "",
"score": null
},
{
"text": "Other lab procedure",
"code": "E",
"label": "",
"score": null
},
{
"text": "Injections",
"code": "F",
"label": "",
"score": null
},
{
"text": "Administering pills or liquid medication",
"code": "G",
"label": "",
"score": null
},
{
"text": "Surgery",
"code": "H",
"label": "",
"score": null
},
{
"text": "Usage of a medical device",
"code": "I",
"label": "",
"score": null
},
{
"text": "Other",
"code": "J",
"label": "",
"score": null
}
],
"displayControl": {
"answerLayout": {
"type": "COMBO_BOX"
}
},
"codeList": [
{
"system": "Custom",
"code": "2.1",
"display": "Select the type of procedure"
}
],
"linkId": "/2/2.1"
},
{
"question": "How often will this procedure be done?",
"questionCodeSystem": "Custom",
"questionCode": "2.2",
"questionCardinality": {
"min": "1",
"max": "1"
},
"header": false,
"editable": "1",
"answerCardinality": {
"min": "0",
"max": "1"
},
"dataType": "CNE",
"answers": [
{
"text": "Yearly",
"code": "A",
"label": "",
"score": null
},
{
"text": "Several times per year",
"code": "B",
"label": "",
"score": null
},
{
"text": "Monthly",
"code": "C",
"label": "",
"score": null
},
{
"text": "2-3 times per month",
"code": "D",
"label": "",
"score": null
},
{
"text": "Weekly",
"code": "E",
"label": "",
"score": null
},
{
"text": "Daily",
"code": "F",
"label": "",
"score": null
},
{
"text": "Multiple times per day",
"code": "G",
"label": "",
"score": null
}
],
"displayControl": {
"answerLayout": {
"type": "COMBO_BOX"
}
},
"codeList": [
{
"system": "Custom",
"code": "2.2",
"display": "How often will this procedure be done?"
}
],
"linkId": "/2/2.2"
}
]
}
]
}
from lforms.
In the FHIR Questionnaire specification, the field "linkId" is defined as being unique to the item definition in the Questionnaire resource. Therefore, if the item is a repeating group, you can expect the linkId (and the child item linkIds) to be repeated in the QuestionnaireResponse. The structure of the group and its children are preserved, so that the each repetition's responses are grouped together in the JSON. It is still not difficult to process. You can see the grouping in the JSON structure of the QuestionnaireResponse link you sent: https://lforms-fhir.nlm.nih.gov/baseR4/QuestionnaireResponse/355762/_history/1
As a side note, please make sure you have your own copies of any resources you put on lforms-fhir.nlm.nih.gov. We reset that database typically weekly, and sometimes more often.
from lforms.
Thank you for explaining how the standard LHC functionality aligns to FHIR specs. I can work with the child items now that the team understands that this is how they are. Thanks for the warning about the resources. I have made copies of the resources. I know that the database is refreshed often. You can close this issue.
from lforms.
You are welcome-- glad to help.
from lforms.
Related Issues (20)
- Pagination HOT 1
- Lform is not validating fields when using time as datatype HOT 1
- ReferenceError: jQuery is not defined while running a jest unit test cases. HOT 1
- Questionnaire R4 population of copyright value HOT 1
- maxValue for type date HOT 2
- 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
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.