Skip to content

Document Templates

Now that you have created your section template, we need to make sure that you can see your questionnaire in the frontend. Therefore we are building the document template. Let´s start by checking out the directory /1-creating-clinical-content/2-example-without-choices and opening the file document-template.json. Now, you only have to modify the highlighted lines by replacing the snippets, which are written in capital letters.

document-template.json


 
 
 
 




 











 





 
























{
    "resourceType": "PlanDefinition",
    "url": "https://dotbase.org/fhir/PlanDefinition/DOCUMENT-TEMPLATE-ID",
    "title": "DOCUMENT-TEMPLATE-TITLE",
    "id": "parkinson-plandefinition-DOCUMENT-TEMPLATE-ID",
    "description": "DOCUMENT-TEMPLATE-DESCRIPTION",
    "status": "active",
    "publisher": "Charité – Universitätsmedizin Berlin",
    "action": [
      {
        "title": "SECTION-TEMPLATE-TITLE",
        "code": [
          {
            "coding": [
              {
                "system": "https://dotbase.org/fhir/CodeSystem/section-template-type",
                "code": "questionnaire",
                "display": "Questionnaire"
              }
            ]
          }
        ],
        "definitionCanonical": "https://dotbase.org/fhir/Questionnaire/SECTION-TEMPLATE-ID",
        "_definitionCanonical": {
          "extension": [
            {
              "url": "https://dotbase.org/fhir/StructureDefinition/definition-canonical-reference",
              "valueReference": {
                "reference": "Questionnaire/SECTION-TEMPLATE-ID"
              }
            }
          ]
        }
      }
    ],
    "extension": [
      {
        "url": "https://dotbase.org/fhir/StructureDefinition/document-template-maintainer",
        "valueReference": {
          "reference": "Organization/dotbase-organization-mainorganization"
        }
      }
    ],
    "topic": {
      "coding": [
        {
          "system": "https://dotbase.org/fhir/CodeSystem/document-template-type",
          "code": "document"
        }
      ]
    }
  }