{
  "resourceType": "StructureDefinition",
  "id": "va-pghd-questionnaire-base-v1.0",
  "url": "https://veteran.apps.va.gov/smart-pgd-fhir/v2/StructureDefinition/va-pghd-questionnaire-base-v1.0",
  "version": "1.0",
  "name": "VAPghdQuestionnaireProfileBase",
  "title": "VA PGHD Questionnaire Base Profile for Mobile App Data",
  "status": "active",
  "date": "2022-09-01",
  "description": "VA PGHD Questionnaire base profile defining the common constraints for all PGHD questionnaires. It should have a meta tag with system = 'https://wiki.mobilehealth.va.gov/x/Onc1C', a code, and a display value.",
  "purpose": "This is the PGHD questionnaire base profile defining the common constraints for all VA PGHD questionnaire profiles. Other PGHD questionnaire profiles should derive from this base profile.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Questionnaire",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Questionnaire",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Questionnaire",
        "path": "Questionnaire",
        "short": "PGHD Governance Rules for Questionnaires",
        "constraint": [
          {
            "key": "pghd-meta-tag-1",
            "severity": "error",
            "human": "A Questionnaire must have exactly one meta tag, with system = 'https://wiki.mobilehealth.va.gov/x/Onc1C', a code, and a display value",
            "expression": "meta.tag.count() = 1 and meta.tag.exists(system = 'https://wiki.mobilehealth.va.gov/x/Onc1C' and code.exists() and display.exists())"
          }
        ]
      }
    ]
  }
}