Skip to content

Questionnaire

Usage

Questionnaire

Examples

Pre-sampling questionnaire
{
  "resourceType": "Questionnaire",
  "id": "652",
  "title": "Check-up", // shown as main title
  "status": "active",
  "item": [
    {
      "linkId": "a03d6a9b-e9d2-48f1-b410-e60df940ba95", // random UUID
      "code": [
        {
          "system": "https://samplify.org/fhir/Questionnarie/item/coding#stage",
          "code": "sampling-started" // "sampling-started" | "sampling-finished"
        }
      ],
      "prefix": "Fasting", // shown as subtitle
      "text": "12h after the last meal",
      "type": "boolean",
      "required": true
    },
    {
      "linkId": "54c3ba8f-e18a-465c-abf0-8a7fb104fe7a",
      "code": [
        {
          "system": "https://samplify.org/fhir/Questionnarie/item/coding#stage",
          "code": "sampling-started"
        }
      ],
      "prefix": "Alcohol free",
      "text": "Patient refrain from alcohol for 24h",
      "type": "boolean",
      "required": true
    },
    {
      "linkId": "03068c08-0df1-4905-b01f-d7048b9db4a9",
      "code": [
        {
          "system": "https://samplify.org/fhir/Questionnarie/item/coding#stage",
          "code": "sampling-started"
        }
      ],
      "prefix": "Physical Inactivity",
      "text": "Patient avoided physical activity for 24h",
      "type": "boolean",
      "required": true
    }
  ]
}
After sampling questionnaire
{
  "resourceType": "Questionnaire",
  "id": "760",
  "title": "Sampling",
  "status": "active",
  "item": [
    {
      "linkId": "3408a36e-1510-452e-ad79-ec475002ef37",
      "code": [
        {
          "system": "https://samplify.org/fhir/Questionnarie/item/coding#stage",
          "code": "sampling-finished"
        }
      ],
      "text": "Dispose of the needle\nBandage the puncture site\nInvert all tubes at least 4 more times", // every newline is displayed as a separate paragraph
      "type": "boolean",
      "required": true
    }
  ]
}