Skip to content

Instantly share code, notes, and snippets.

@litlfred
Created July 8, 2016 16:56
Show Gist options
  • Save litlfred/23ac03dd24b8922f9db1147acb3e7bf5 to your computer and use it in GitHub Desktop.
Save litlfred/23ac03dd24b8922f9db1147acb3e7bf5 to your computer and use it in GitHub Desktop.
Questionnaire Example
[
{
"resourceType": "Questionnaire",
"id": "74b73680-ace3-4010-a96f-05d6f0138881",
"meta": {
"lastUpdated": "2016-04-30T09:13:21.864239Z",
"versionId": 10
},
"date": "2016-04-30T09:13:21.864239Z",
"status": "published",
"group": {
"linkId": "root",
"title": "Risk Factors for Health Workers (CDC)",
"question": [
{
"linkId": "4030a643-92e0-4585-a0a6-5d861998bd4d.raw",
"type": "string",
"text": "Contact (Raw Response)"
},
{
"linkId": "4030a643-92e0-4585-a0a6-5d861998bd4d.string",
"type": "string",
"text": "Contact (string)"
},
{
"linkId": "4030a643-92e0-4585-a0a6-5d861998bd4d.choice",
"type": "choice",
"options": {
"reference": "#optionsSet-4030a643-92e0-4585-a0a6-5d861998bd4d"
},
"text": "Contact ( choice )"
},
{
"linkId": "fe410e89-13a2-4b46-8e5a-37875d0fcdca.raw",
"type": "string",
"text": "Other risk factors (Raw Response)"
},
{
"linkId": "fe410e89-13a2-4b46-8e5a-37875d0fcdca.string",
"type": "string",
"text": "Other risk factors (string)"
},
{
"linkId": "d5d619d2-d8a7-40b6-afb6-b7b44ef8f328.raw",
"type": "string",
"text": "Fever (Raw Response)"
},
{
"linkId": "d5d619d2-d8a7-40b6-afb6-b7b44ef8f328.string",
"type": "string",
"text": "Fever (string)"
},
{
"linkId": "d5d619d2-d8a7-40b6-afb6-b7b44ef8f328.choice",
"type": "choice",
"options": {
"reference": "#optionsSet-d5d619d2-d8a7-40b6-afb6-b7b44ef8f328"
},
"text": "Fever ( choice )"
}
]
},
"contained": [
{
"resourceType": "ValueSet",
"id": "optionSet-4030a643-92e0-4585-a0a6-5d861998bd4d",
"codeSystem": {
"concept": [
{
"code": "Home"
},
{
"code": "Community"
}
]
}
},
{
"resourceType": "ValueSet",
"id": "optionSet-d5d619d2-d8a7-40b6-afb6-b7b44ef8f328",
"codeSystem": {
"concept": [
{
"code": "Yes"
},
{
"code": "No"
}
]
}
}
]
}
]
Questionnaire Reposne Example
{
"resourceType": "QuestionnaireResponse",
"id": 5116707,
"meta": {
"lastUpdated": "2014-10-13T19:21:16.469Z"
},
"questionnaire": {
"reference": "https://undefined/Quesionnaire/74b73680-ace3-4010-a96f-05d6f0138881"
},
"status": "final",
"source": {
"reference": "12345"
},
"group": {
"linkId": "root",
"question": [
{
"linkId": "d5d619d2-d8a7-40b6-afb6-b7b44ef8f328.raw",
"answer": [
{
"valueString": "Yes"
}
]
},
{
"linkId": "d5d619d2-d8a7-40b6-afb6-b7b44ef8f328.choice",
"answer": [
{
"valueCoding": {
"code": "Yes"
}
}
]
},
{
"linkId": "d5d619d2-d8a7-40b6-afb6-b7b44ef8f328.string",
"answer": [
{
"valueString": "Yes"
}
]
},
{
"linkId": "4030a643-92e0-4585-a0a6-5d861998bd4d.raw",
"answer": [
{
"valueString": "Yes"
}
]
},
{
"linkId": "4030a643-92e0-4585-a0a6-5d861998bd4d.choice",
"answer": [
{
"valueCoding": {
"code": "Yes"
}
}
]
},
{
"linkId": "4030a643-92e0-4585-a0a6-5d861998bd4d.string",
"answer": [
{
"valueString": "Yes"
}
]
},
{
"linkId": "fe410e89-13a2-4b46-8e5a-37875d0fcdca.raw",
"answer": [
{
"valueString": "Risky business"
}
]
},
{
"linkId": "fe410e89-13a2-4b46-8e5a-37875d0fcdca.string",
"answer": [
{
"valueString": "Risky business"
}
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment