How to call the FHIR enpoint through the API
Syntax
- GET https://assessmentcenter.net/ac_api/2018-10/Questionnaire?_summary - returns a list of all Questionnaires.
- GET https://assessmentcenter.net/ac_api/2018-10/Questionnaire/{id} - returns the specified questionnaire.
- POST https://assessmentcenter.net/ac_api/2018-10/Questionnaire/{id}/next-q - Administer item(s).
Remarks
raw JSON of "resourceType":"QuestionnaireResponse is POSTED to the Questionnaire endpoint when using next-q. The "contained" array includes "item" array with items presented.Initially this item array will not be present because no items have been presented yet. (see Questionnaire/{id}/next-q - first question) The "item" array of the QuestionnaireResponse contains an array of responses . (see Questionnaire/{id}/next-q with answered question(s)) The "answer" array has a valueString which maps to the "modifierExtension" "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionScore" API Home Try it!
Sample code for https://assessmentcenter.net/ac_api/2018-10/Questionnaire
- Questionnaire?_summary
- Questionnaire/{id}
- Questionnaire/{id}/next-q - first question
- Questionnaire/{id}/next-q with answered question(s)
Request: GET https://assessmentcenter.net/ac_api/2018-10/Questionnaire?_summary
Response:
Response:
{ "resourceType": "Bundle", "id": "BA7DA138-3C38-47E7-AE2D-59EB1BD5FEF8", "meta": { "lastUpdated": "2019-10-01T16:09:49-05:00" }, "type": "searchset", "total": 703, "link": [ { "relation": "self", "url": "https://assessmentcenter.net/ac_api/2018-10/Questionnaire" } ], "entry": [ { "fullUrl": "/2018-10/Questionnaire/B0A92730-0F5F-4E88-9471-7C0FB37CF5D3", "resource": { "resourceType": "Questionnaire", "id": "B0A92730-0F5F-4E88-9471-7C0FB37CF5D3", "meta": { "versionId": "1", "lastUpdated": "2018-01-23T10:47:42-06:00" }, "url": "https://assessmentcenter.net/ac_api/2018-10/Questionnaire/B0A92730-0F5F-4E88-9471-7C0FB37CF5D3", "title": "SCI-FI v1.0 Ambulation - Core Items CAT", "status": "active", "date": "2018-01-23T10:47:42-06:00", "subjectType": [ "Patient" ], "search": { "mode": "match" } } }, ... ] }
Request: GET https://assessmentcenter.net/ac_api/2018-10/Questionnaire/96FE494D-F176-4EFB-A473-2AB406610626
Response:
Response:
{ "resourceType": "Questionnaire", "id": "96fe494d-f176-4efb-a473-2ab406610626", "meta": { "lastUpdated": "2014-11-14T10:03:29-06:00" }, "url": "https://assessmentcenter.net/ac_api/2018-10/Questionnaire/96fe494d-f176-4efb-a473-2ab406610626", "title": "PROMIS Bank v1.0 - Depression", "status": "active", "date": "2019-11-12T15:39:34-06:00", "subjectType": [ "Patient" ], "item": [ { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 1 } ], "id": "EDDEP04", "linkId": "20023145-A4E1-4347-8128-BE19F6E8A739", "code": [ { "system": "http://loinc.org", "code": "61953-6", "display": "In the past 7 daysI felt worthless" } ], "type": "group", "item": [ { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 1 } ], "linkId": "20023145-A4E1-4347-8128-BE19F6E8A739/8AB8BA58-3BB0-40B6-B656-C24F1169069B", "text": "In the past 7 days", "type": "display" }, { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 2 } ], "linkId": "20023145-A4E1-4347-8128-BE19F6E8A739/A045BC31-F983-441A-BAF6-9929BE1D9DCB", "text": "I felt worthless", "type": "choice", "answerOption": [ { "id": "A07357E9-4A7D-4292-985A-8ADF2AA6CCA3", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 1 } ], "modifierExtension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionScore", "valueString": "1" } ], "valueCoding": { "system": "http://loinc.org", "code": "LA6270-8", "display": "Never" } }, { "id": "E38D4348-A7CA-4506-847F-F6919DBEF206", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 2 } ], "modifierExtension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionScore", "valueString": "2" } ], "valueCoding": { "system": "http://loinc.org", "code": "LA10066-1", "display": "Rarely" } }, { "id": "A8B946F2-5485-4789-9CA3-6BF3EE790752", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 3 } ], "modifierExtension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionScore", "valueString": "3" } ], "valueCoding": { "system": "http://loinc.org", "code": "LA10082-8", "display": "Sometimes" } }, { "id": "8EE5E4F3-E2C8-4759-A3AC-2CBFE28F60D0", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 4 } ], "modifierExtension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionScore", "valueString": "4" } ], "valueCoding": { "system": "http://loinc.org", "code": "LA10044-8", "display": "Often" } }, { "id": "8ED14715-5A33-47FF-AEC2-8DAAEA20571E", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 5 } ], "modifierExtension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionScore", "valueString": "5" } ], "valueCoding": { "system": "http://loinc.org", "code": "LA9933-8", "display": "Always" } } ] } ] }, ... ] }
Request: POST https://assessmentcenter.net/ac_api/2018-10/Questionnaire/96FE494D-F176-4EFB-A473-2AB406610626/next-q
Raw JSON POSTED:
Raw JSON POSTED:
{ "resourceType":"QuestionnaireResponse", "id":"test", "meta": {"profile": ["http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse-adapt"]}, "extension": [ {"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-expirationTime", "valueDate": "2019-10-05T16:46:48-05:00"}, {"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-finishedTime","valueDate": ""} ], "contained": [ { "resourceType": "Questionnaire", "id": "96FE494D-F176-4EFB-A473-2AB406610626", "meta": {"versionId": "1","lastUpdated": "2014-11-14T10:03:25","profile": ["http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-adapt"]}, "url":"https://assessmentcenter.net/ac_api/2018-10/Questionnaire/96FE494D-F176-4EFB-A473-2AB406610626", "title":"PROMIS Bank v1.0 - Depression", "status": "active", "date": "2019-10-01T16:46:48-05:00", "subjectType": ["Patient"] } ], "questionnaire": "http://hl7.org/fhir/us/sdc/StructureDefinition/sdc-questionnaire-dynamic", "status": "in-progress", "subject": "Patient/123", "authored": "2019-10-01T16:46:48-05:00" }Response:
{ "resourceType": "QuestionnaireResponse", "id": "96FE494D-F176-4EFB-A473-2AB406610626", "meta": { "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse-adapt" ] }, "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-expirationTime", "valueDate": "2019-11-15T15:48:05" }, { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-finishedTime", "valueDate": "2019-11-12T15:48:05" }, { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-scores", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-scores/theta", "valueDecimal": 0 }, { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-scores/standarderror", "valueDecimal": 9.9 } ] } ], "contained": [ { "resourceType": "Questionnaire", "id": "96FE494D-F176-4EFB-A473-2AB406610626", "meta": { "versionId": "1", "lastUpdated": "2019-11-12T15:48:05-06:00", "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-adapt" ] }, "url": "https://assessmentcenter.net/ac_api/2018-10/Questionnaire/96FE494D-F176-4EFB-A473-2AB406610626", "title": "PROMIS Bank v1.0 - Depression", "status": "active", "date": "2019-10-01T16:46:48-05:00", "subjectType": [ "Patient" ], "item": [ { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 1 } ], "id": "EDDEP29", "linkId": "DEE2D9CA-0094-492A-AA25-D4D53D426976", "code": [ { "system": "http://loinc.org", "code": "61967-6", "display": "In the past 7 daysI felt depressed" } ], "type": "group", "item": [ { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 1 } ], "linkId": "DEE2D9CA-0094-492A-AA25-D4D53D426976/8AB8BA58-3BB0-40B6-B656-C24F1169069B", "text": "In the past 7 days", "type": "display" }, { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 2 } ], "linkId": "DEE2D9CA-0094-492A-AA25-D4D53D426976/C24FEEED-B48C-4BD4-972B-5AB30A5A6353", "text": "I felt depressed", "type": "choice", "answerOption": [ { "id": "BF2FFE4B-53FA-45B7-8464-58A1E84B49DD", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 1 } ], "modifierExtension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionScore", "valueString": "1" } ], "valueCoding": { "system": "http://loinc.org", "code": "LA6270-8", "display": "Never" } }, { "id": "D96D8FBD-C726-4D34-8C3C-2B4377C0438B", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 2 } ], "modifierExtension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionScore", "valueString": "2" } ], "valueCoding": { "system": "http://loinc.org", "code": "LA10066-1", "display": "Rarely" } }, { "id": "23EC60A7-53E7-4BE2-BCDB-2D70365D0EF7", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 3 } ], "modifierExtension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionScore", "valueString": "3" } ], "valueCoding": { "system": "http://loinc.org", "code": "LA10082-8", "display": "Sometimes" } }, { "id": "67032EB7-497B-4021-91CB-4DBB5C995FED", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 4 } ], "modifierExtension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionScore", "valueString": "4" } ], "valueCoding": { "system": "http://loinc.org", "code": "LA10044-8", "display": "Often" } }, { "id": "B85C15C3-C28F-4C5D-8869-C09C3254D562", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 5 } ], "modifierExtension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionScore", "valueString": "5" } ], "valueCoding": { "system": "http://loinc.org", "code": "LA9933-8", "display": "Always" } } ] } ] } ] } ], "questionnaire": "http://hl7.org/fhir/us/sdc/StructureDefinition/sdc-questionnaire-dynamic", "status": "in-progress", "subject": "Patient", "authored": "2019-11-12T15:48:05", "item": [] }
Request: POST https://assessmentcenter.net/ac_api/2018-10/Questionnaire/96FE494D-F176-4EFB-A473-2AB406610626/next-q
Raw JSON POSTED:
Raw JSON POSTED:
{ "resourceType":"QuestionnaireResponse", "id":"test", "meta": {"profile": ["http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse-adapt"]}, "extension": [ {"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-expirationTime", "valueDate": "2019-10-05T16:46:48-05:00"}, {"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-finishedTime","valueDate": ""} ], "contained": [ { "resourceType": "Questionnaire", "id": "96FE494D-F176-4EFB-A473-2AB406610626", "meta": {"versionId": "1","lastUpdated": "2014-11-14T10:03:25","profile": ["http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-adapt"]}, "url":"https://assessmentcenter.net/ac_api/2018-10/Questionnaire/96FE494D-F176-4EFB-A473-2AB406610626", "title":"PROMIS Bank v1.0 - Depression", "status": "active", "date": "2019-10-01T16:46:48-05:00", "subjectType": ["Patient"], "item":[ { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 1 } ], "id": "EDDEP29", "linkId": "DEE2D9CA-0094-492A-AA25-D4D53D426976", "code": [ { "system": "http://loinc.org", "code": "61967-6", "display": "In the past 7 daysI felt depressed" } ], "type": "group", "item": [ { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 1 } ], "linkId": "DEE2D9CA-0094-492A-AA25-D4D53D426976/8AB8BA58-3BB0-40B6-B656-C24F1169069B", "text": "In the past 7 days", "type": "display" }, { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 2 } ], "linkId": "DEE2D9CA-0094-492A-AA25-D4D53D426976/C24FEEED-B48C-4BD4-972B-5AB30A5A6353", "text": "I felt depressed", "type": "choice", "answerOption": [ { "id": "BF2FFE4B-53FA-45B7-8464-58A1E84B49DD", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 1 } ], "modifierExtension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionScore", "valueString": "1" } ], "valueCoding": { "system": "http://loinc.org", "code": "LA6270-8", "display": "Never" } }, { "id": "D96D8FBD-C726-4D34-8C3C-2B4377C0438B", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 2 } ], "modifierExtension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionScore", "valueString": "2" } ], "valueCoding": { "system": "http://loinc.org", "code": "LA10066-1", "display": "Rarely" } }, { "id": "23EC60A7-53E7-4BE2-BCDB-2D70365D0EF7", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 3 } ], "modifierExtension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionScore", "valueString": "3" } ], "valueCoding": { "system": "http://loinc.org", "code": "LA10082-8", "display": "Sometimes" } }, { "id": "67032EB7-497B-4021-91CB-4DBB5C995FED", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 4 } ], "modifierExtension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionScore", "valueString": "4" } ], "valueCoding": { "system": "http://loinc.org", "code": "LA10044-8", "display": "Often" } }, { "id": "B85C15C3-C28F-4C5D-8869-C09C3254D562", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 5 } ], "modifierExtension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionScore", "valueString": "5" } ], "valueCoding": { "system": "http://loinc.org", "code": "LA9933-8", "display": "Always" } } ] } ] } ] } ], "questionnaire": "http://hl7.org/fhir/us/sdc/StructureDefinition/sdc-questionnaire-dynamic", "status": "in-progress", "subject": "Patient/123", "authored": "2019-10-01T16:46:48-05:00", "item":[ { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 1 } ], "linkId": "DEE2D9CA-0094-492A-AA25-D4D53D426976", "item": [{ "linkId": "DEE2D9CA-0094-492A-AA25-D4D53D426976/C24FEEED-B48C-4BD4-972B-5AB30A5A6353", "text": "I felt depressed", "answer": [ { "valueCoding": { "system": "http://loinc.org", "code": "LA10082-8", "display": "Sometimes" } } ]} ] } ] }Response:
{ "resourceType": "QuestionnaireResponse", "id": "96FE494D-F176-4EFB-A473-2AB406610626", "meta": { "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse-adapt" ] }, "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-expirationTime", "valueDate": "2019-11-15T15:56:55" }, { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-finishedTime", "valueDate": "2019-11-12T15:56:55" }, { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-scores", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-scores/theta", "valueDecimal": 0.8 }, { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-scores/standarderror", "valueDecimal": 0.4 } ] } ], "contained": [ { "resourceType": "Questionnaire", "id": "96FE494D-F176-4EFB-A473-2AB406610626", "meta": { "versionId": "1", "lastUpdated": "2019-11-12T15:56:55-06:00", "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-adapt" ] }, "url": "https://assessmentcenter.net/ac_api/2018-10/Questionnaire/96FE494D-F176-4EFB-A473-2AB406610626", "title": "PROMIS Bank v1.0 - Depression", "status": "active", "date": "2019-10-01T16:46:48-05:00", "subjectType": [ "Patient" ], "item": [ { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 2 } ], "id": "EDDEP41", "linkId": "F1BBB664-7C68-49EC-AB50-767CDFD947BA", "code": [ { "system": "http://loinc.org", "code": "61973-4", "display": "In the past 7 daysI felt hopeless" } ], "type": "group", "item": [ { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 1 } ], "linkId": "F1BBB664-7C68-49EC-AB50-767CDFD947BA/8AB8BA58-3BB0-40B6-B656-C24F1169069B", "text": "In the past 7 days", "type": "display" }, { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 2 } ], "linkId": "F1BBB664-7C68-49EC-AB50-767CDFD947BA/D8D3DC16-AA2B-4B59-B216-EAD42223E476", "text": "I felt hopeless", "type": "choice", "answerOption": [ { "id": "CAC523E3-B5BC-4F97-97B8-275ECAD15856", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 1 } ], "modifierExtension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionScore", "valueString": "1" } ], "valueCoding": { "system": "http://loinc.org", "code": "LA6270-8", "display": "Never" } }, { "id": "0B55633D-A218-4A8A-B149-983218FA7E14", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 2 } ], "modifierExtension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionScore", "valueString": "2" } ], "valueCoding": { "system": "http://loinc.org", "code": "LA10066-1", "display": "Rarely" } }, { "id": "BB3E3949-94BF-4D49-A3AB-416605DE9AF1", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 3 } ], "modifierExtension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionScore", "valueString": "3" } ], "valueCoding": { "system": "http://loinc.org", "code": "LA10082-8", "display": "Sometimes" } }, { "id": "A8CE7010-2E45-4DEC-A6BC-5F997CA202CF", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 4 } ], "modifierExtension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionScore", "valueString": "4" } ], "valueCoding": { "system": "http://loinc.org", "code": "LA10044-8", "display": "Often" } }, { "id": "F5B508F6-36EF-44FB-80F4-E975B3905A1B", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 5 } ], "modifierExtension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionScore", "valueString": "5" } ], "valueCoding": { "system": "http://loinc.org", "code": "LA9933-8", "display": "Always" } } ] } ] }, { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 1 } ], "id": "EDDEP29", "linkId": "DEE2D9CA-0094-492A-AA25-D4D53D426976", "code": [ { "system": "http://loinc.org", "code": "61967-6", "display": "In the past 7 daysI felt depressed" } ], "type": "group", "item": [ { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 1 } ], "linkId": "DEE2D9CA-0094-492A-AA25-D4D53D426976/8AB8BA58-3BB0-40B6-B656-C24F1169069B", "text": "In the past 7 days", "type": "display" }, { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 2 } ], "linkId": "DEE2D9CA-0094-492A-AA25-D4D53D426976/C24FEEED-B48C-4BD4-972B-5AB30A5A6353", "text": "I felt depressed", "type": "choice", "answerOption": [ { "id": "BF2FFE4B-53FA-45B7-8464-58A1E84B49DD", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 1 } ], "modifierExtension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionScore", "valueString": "" } ], "valueCoding": { "system": "http://loinc.org", "code": "LA6270-8", "display": "Never" } }, { "id": "D96D8FBD-C726-4D34-8C3C-2B4377C0438B", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 2 } ], "modifierExtension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionScore", "valueString": "" } ], "valueCoding": { "system": "http://loinc.org", "code": "LA10066-1", "display": "Rarely" } }, { "id": "23EC60A7-53E7-4BE2-BCDB-2D70365D0EF7", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 3 } ], "modifierExtension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionScore", "valueString": "" } ], "valueCoding": { "system": "http://loinc.org", "code": "LA10082-8", "display": "Sometimes" } }, { "id": "67032EB7-497B-4021-91CB-4DBB5C995FED", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 4 } ], "modifierExtension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionScore", "valueString": "" } ], "valueCoding": { "system": "http://loinc.org", "code": "LA10044-8", "display": "Often" } }, { "id": "B85C15C3-C28F-4C5D-8869-C09C3254D562", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 5 } ], "modifierExtension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionScore", "valueString": "" } ], "valueCoding": { "system": "http://loinc.org", "code": "LA9933-8", "display": "Always" } } ] } ] } ] } ], "questionnaire": "http://hl7.org/fhir/us/sdc/StructureDefinition/sdc-questionnaire-dynamic", "status": "in-progress", "subject": "Patient", "authored": "2019-11-12T15:56:55", "item": [ { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayOrder", "valueInteger": 1 } ], "linkId": "DEE2D9CA-0094-492A-AA25-D4D53D426976", "item": [ { "linkId": "DEE2D9CA-0094-492A-AA25-D4D53D426976/C24FEEED-B48C-4BD4-972B-5AB30A5A6353", "text": "I felt depressed", "answer": [ { "valueCoding": { "system": "http://loinc.org", "code": "LA10082-8", "display": "Sometimes" } } ] } ] } ] }