瀏覽代碼

driver questionnaire and questionnaire meta format

* questionnaire format from hl7.org (CC0), a potential standard
  for questionnaire format
abetusk 5 年之前
父節點
當前提交
1b364ffc51

+ 157 - 0
data/hl7.org/questionnaire-example.json

@@ -0,0 +1,157 @@
+{
+  "resourceType": "Questionnaire",
+  "id": "3141",
+  "text": {
+    "status": "generated",
+    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n      <pre>\n            1.Comorbidity?\n              1.1 Cardial Comorbidity\n                1.1.1 Angina?\n                1.1.2 MI?\n              1.2 Vascular Comorbidity?\n              ...\n            Histopathology\n              Abdominal\n                pT category?\n              ...\n          </pre>\n    </div>"
+  },
+  "url": "http://hl7.org/fhir/Questionnaire/3141",
+  "title": "Cancer Quality Forum Questionnaire 2012",
+  "status": "draft",
+  "subjectType": [
+    "Patient"
+  ],
+  "date": "2012-01",
+  "item": [
+    {
+      "linkId": "1",
+      "code": [
+        {
+          "system": "http://example.org/system/code/sections",
+          "code": "COMORBIDITY"
+        }
+      ],
+      "type": "group",
+      "item": [
+        {
+          "linkId": "1.1",
+          "code": [
+            {
+              "system": "http://example.org/system/code/questions",
+              "code": "COMORB"
+            }
+          ],
+          "prefix": "1",
+          "type": "choice",
+          "answerValueSet": "http://hl7.org/fhir/ValueSet/yesnodontknow",
+          "item": [
+            {
+              "linkId": "1.1.1",
+              "code": [
+                {
+                  "system": "http://example.org/system/code/sections",
+                  "code": "CARDIAL"
+                }
+              ],
+              "type": "group",
+              "enableWhen": [
+                {
+                  "question": "1.1",
+                  "operator": "=",
+                  "answerCoding": {
+                    "system": "http://terminology.hl7.org/CodeSystem/v2-0136",
+                    "code": "Y"
+                  }
+                }
+              ],
+              "item": [
+                {
+                  "linkId": "1.1.1.1",
+                  "code": [
+                    {
+                      "system": "http://example.org/system/code/questions",
+                      "code": "COMORBCAR"
+                    }
+                  ],
+                  "prefix": "1.1",
+                  "type": "choice",
+                  "answerValueSet": "http://hl7.org/fhir/ValueSet/yesnodontknow",
+                  "item": [
+                    {
+                      "linkId": "1.1.1.1.1",
+                      "code": [
+                        {
+                          "system": "http://example.org/system/code/questions",
+                          "code": "COMCAR00",
+                          "display": "Angina Pectoris"
+                        },
+                        {
+                          "system": "http://snomed.info/sct",
+                          "code": "194828000",
+                          "display": "Angina (disorder)"
+                        }
+                      ],
+                      "prefix": "1.1.1",
+                      "type": "choice",
+                      "answerValueSet": "http://hl7.org/fhir/ValueSet/yesnodontknow"
+                    },
+                    {
+                      "linkId": "1.1.1.1.2",
+                      "code": [
+                        {
+                          "system": "http://snomed.info/sct",
+                          "code": "22298006",
+                          "display": "Myocardial infarction (disorder)"
+                        }
+                      ],
+                      "prefix": "1.1.2",
+                      "type": "choice",
+                      "answerValueSet": "http://hl7.org/fhir/ValueSet/yesnodontknow"
+                    }
+                  ]
+                },
+                {
+                  "linkId": "1.1.1.2",
+                  "code": [
+                    {
+                      "system": "http://example.org/system/code/questions",
+                      "code": "COMORBVAS"
+                    }
+                  ],
+                  "prefix": "1.2",
+                  "type": "choice",
+                  "answerValueSet": "http://hl7.org/fhir/ValueSet/yesnodontknow"
+                }
+              ]
+            }
+          ]
+        }
+      ]
+    },
+    {
+      "linkId": "2",
+      "code": [
+        {
+          "system": "http://example.org/system/code/sections",
+          "code": "HISTOPATHOLOGY"
+        }
+      ],
+      "type": "group",
+      "item": [
+        {
+          "linkId": "2.1",
+          "code": [
+            {
+              "system": "http://example.org/system/code/sections",
+              "code": "ABDOMINAL"
+            }
+          ],
+          "type": "group",
+          "item": [
+            {
+              "linkId": "2.1.2",
+              "code": [
+                {
+                  "system": "http://example.org/system/code/questions",
+                  "code": "STADPT",
+                  "display": "pT category"
+                }
+              ],
+              "type": "choice"
+            }
+          ]
+        }
+      ]
+    }
+  ]
+}

+ 81 - 0
data/hl7.org/questionnaire-json-description

@@ -0,0 +1,81 @@
+{
+  "resourceType" : "Questionnaire",
+  // from Resource: id, meta, implicitRules, and language
+  // from DomainResource: text, contained, extension, and modifierExtension
+  "url" : "<uri>", // Canonical identifier for this questionnaire, represented as a URI (globally unique)
+  "identifier" : [{ Identifier }], // Additional identifier for the questionnaire
+  "version" : "<string>", // Business version of the questionnaire
+  "name" : "<string>", // C? Name for this questionnaire (computer friendly)
+  "title" : "<string>", // Name for this questionnaire (human friendly)
+  "derivedFrom" : [{ canonical(Questionnaire) }], // Instantiates protocol or definition
+  "status" : "<code>", // R!  draft | active | retired | unknown
+  "experimental" : <boolean>, // For testing purposes, not real usage
+  "subjectType" : ["<code>"], // Resource that can be subject of QuestionnaireResponse
+  "date" : "<dateTime>", // Date last changed
+  "publisher" : "<string>", // Name of the publisher (organization or individual)
+  "contact" : [{ ContactDetail }], // Contact details for the publisher
+  "description" : "<markdown>", // Natural language description of the questionnaire
+  "useContext" : [{ UsageContext }], // The context that the content is intended to support
+  "jurisdiction" : [{ CodeableConcept }], // Intended jurisdiction for questionnaire (if applicable)
+  "purpose" : "<markdown>", // Why this questionnaire is defined
+  "copyright" : "<markdown>", // Use and/or publishing restrictions
+  "approvalDate" : "<date>", // When the questionnaire was approved by publisher
+  "lastReviewDate" : "<date>", // When the questionnaire was last reviewed
+  "effectivePeriod" : { Period }, // When the questionnaire is expected to be used
+  "code" : [{ Coding }], // Concept that represents the overall questionnaire
+  "item" : [{ // C? Questions and sections within the Questionnaire
+    "linkId" : "<string>", // R!  Unique id for item in questionnaire
+    "definition" : "<uri>", // ElementDefinition - details for the item
+    "code" : [{ Coding }], // C? Corresponding concept for this item in a terminology
+    "prefix" : "<string>", // E.g. "1(a)", "2.5.3"
+    "text" : "<string>", // Primary text for the item
+    "type" : "<code>", // R!  group | display | boolean | decimal | integer | date | dateTime +
+    "enableWhen" : [{ // Only allow data when
+      "question" : "<string>", // R!  Question that determines whether item is enabled
+      "operator" : "<code>", // R!  exists | = | != | > | < | >= | <=
+      // answer[x]: Value for question comparison based on operator. One of these 10:
+      "answerBoolean" : <boolean>
+      "answerDecimal" : <decimal>
+      "answerInteger" : <integer>
+      "answerDate" : "<date>"
+      "answerDateTime" : "<dateTime>"
+      "answerTime" : "<time>"
+      "answerString" : "<string>"
+      "answerCoding" : { Coding }
+      "answerQuantity" : { Quantity }
+      "answerReference" : { Reference(Any) }
+    }],
+    "enableBehavior" : "<code>", // C? all | any
+    "required" : <boolean>, // C? Whether the item must be included in data results
+    "repeats" : <boolean>, // C? Whether the item may repeat
+    "readOnly" : <boolean>, // C? Don't allow human editing
+    "maxLength" : <integer>, // C? No more than this many characters
+    "answerValueSet" : { canonical(ValueSet) }, // C? Valueset containing permitted answers
+    "answerOption" : [{ // C? Permitted answer
+      // value[x]: Answer value. One of these 6:
+      "valueInteger" : <integer>,
+      "valueDate" : "<date>",
+      "valueTime" : "<time>",
+      "valueString" : "<string>",
+      "valueCoding" : { Coding },
+      "valueReference" : { Reference(Any) },
+      "initialSelected" : <boolean> // Whether option is selected by default
+    }],
+    "initial" : [{ // C? Initial value(s) when item is first rendered
+      // value[x]: Actual value for initializing the question. One of these 12:
+      "valueBoolean" : <boolean>
+      "valueDecimal" : <decimal>
+      "valueInteger" : <integer>
+      "valueDate" : "<date>"
+      "valueDateTime" : "<dateTime>"
+      "valueTime" : "<time>"
+      "valueString" : "<string>"
+      "valueUri" : "<uri>"
+      "valueAttachment" : { Attachment }
+      "valueCoding" : { Coding }
+      "valueQuantity" : { Quantity }
+      "valueReference" : { Reference(Any) }
+    }],
+    "item" : [{ Content as for Questionnaire.item }] // C? Nested questionnaire items
+  }]
+}

+ 85 - 0
questionnaires/DIU-Driver-Questionnaire.json

@@ -0,0 +1,85 @@
+{
+  "resourceType":"Questionnaire",
+  "title": "Driver Interface Unit (DIU) Driver Usage Questionnaire",
+  "subjectType" : [ "Driver" ],
+  "description":"A questionnaire for drivers meant to get feedback on usage of the DIU",
+  "item": [
+
+    {
+      "type": "group",
+      "question":"Overall, how would you rate your experience when using the Driver Interface Unit (DIU)?",
+      "groupItem": [ "Horrible", "Bad", "Adequate", "Good", "Excellent" ]
+    },
+
+    {
+      "type": "group",
+      "question":"Overall, how would you compare the prototype DIU to the previous system?",
+      "groupItem": [ "Worse", "Same", "Better" ]
+    },
+
+    {
+      "type": "group",
+      "question":"How would you rate the responsiveness of the Driver Interface Unit (DIU)?",
+      "groupItem": [ "Horrible", "Bad", "Adequate", "Good", "Excellent" ]
+    },
+
+    {
+      "type": "group",
+      "question":"How would you rate the sound level of the Driver Interface Unit (DIU)?",
+      "groupItem": [ "Bad", "Adequate", "Good" ]
+    },
+
+    {
+      "type": "text",
+      "question":"Was there anything that you found overly frustrating about using the device?"
+    },
+
+    {
+      "type": "text",
+      "question":"Are there any features that you would like to be removed?"
+    },
+
+    {
+      "type": "text",
+      "question":"Are there any features that you would like to see added?"
+    },
+
+    {
+      "type": "text",
+      "question":"Was it clear what 'DIM' feature was and how to use it?"
+    },
+
+    {
+      "type": "boolean",
+      "question":"Did you use the 'DIM' feature?"
+    },
+
+    {
+      "type": "text",
+      "question":"Was it clear that there was an option to change screen brightness?"
+    },
+
+    {
+      "type": "boolean",
+      "question":"Did you adjust the screen brightness?"
+    },
+
+    {
+      "type": "text",
+      "question":"Is there anything you would like to say about the unit and it's usage, good or bad?"
+    },
+
+    {
+      "type": "text",
+      "question":"Is there any question on this survey that should have been asked but wasn't?"
+    },
+
+    {
+      "type": "text",
+      "required":false,
+      "question":"If you would like to be contacted in the future with updates or follow up questions, please leave your email address?"
+    }
+  ]
+}
+
+