Coder Social home page Coder Social logo

Comments (4)

GitHubUNCStudent avatar GitHubUNCStudent commented on June 14, 2024

{
"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.

plynchnlm avatar plynchnlm commented on June 14, 2024

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.

GitHubUNCStudent avatar GitHubUNCStudent commented on June 14, 2024

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.

plynchnlm avatar plynchnlm commented on June 14, 2024

You are welcome-- glad to help.

from lforms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.