{
  "resourceType": "CapabilityStatement",
  "id": "digidot-capabilitystatement",
  "url": "https://novari.no/fhir/digidot/CapabilityStatement/digidot",
  "version": "0.1.2-test",
  "name": "DigiDOTCapabilityStatement",
  "title": "DigiDOT capability statement",
  "status": "draft",
  "date": "2026-09-03",
  "publisher": "Novari AS - DigiDOT",
  "description": "Draft capability statement for the DigiDOT test package. It documents the intended server-facing resource surface for local dental planning, scheduling, contacts, clinical history and patient-context retrieval. It is not a production procurement or certification statement.",
  "kind": "requirements",
  "fhirVersion": "4.0.1",
  "format": [
    "json"
  ],
  "implementationGuide": [
    "https://novari.no/fhir/digidot/ImplementationGuide/digidot.no.ig"
  ],
  "rest": [
    {
      "mode": "server",
      "documentation": "The server is authoritative for DigiDOT-owned dental data. External national sources remain authoritative for their own data and may be represented as source-aware cached FHIR resources.",
      "resource": [
        {
          "type": "ServiceRequest",
          "profile": "https://novari.no/fhir/digidot/StructureDefinition/digidot-ServiceRequest-no",
          "interaction": [
            {
              "code": "read"
            },
            {
              "code": "search-type"
            },
            {
              "code": "create"
            },
            {
              "code": "update"
            }
          ],
          "searchParam": [
            {
              "name": "subject",
              "type": "reference",
              "documentation": "Search planned/requested dental work by patient."
            },
            {
              "name": "encounter",
              "type": "reference",
              "documentation": "Search requests created in or associated with a contact."
            }
          ]
        },
        {
          "type": "Encounter",
          "profile": "https://novari.no/fhir/digidot/StructureDefinition/digidot-Encounter-no",
          "interaction": [
            {
              "code": "read"
            },
            {
              "code": "search-type"
            },
            {
              "code": "create"
            },
            {
              "code": "update"
            }
          ],
          "searchParam": [
            {
              "name": "subject",
              "type": "reference"
            },
            {
              "name": "date",
              "type": "date"
            }
          ]
        },
        {
          "type": "Condition",
          "profile": "https://novari.no/fhir/digidot/StructureDefinition/digidot-Condition-no",
          "referencePolicy": [
            "literal",
            "logical"
          ],
          "interaction": [
            {
              "code": "read"
            },
            {
              "code": "search-type"
            },
            {
              "code": "create"
            },
            {
              "code": "update"
            }
          ]
        },
        {
          "type": "Observation",
          "profile": "https://novari.no/fhir/digidot/StructureDefinition/digidot-Observation-no",
          "referencePolicy": [
            "literal",
            "logical"
          ],
          "interaction": [
            {
              "code": "read"
            },
            {
              "code": "search-type"
            },
            {
              "code": "create"
            },
            {
              "code": "update"
            }
          ]
        },
        {
          "type": "Procedure",
          "profile": "https://novari.no/fhir/digidot/StructureDefinition/digidot-Procedure-no",
          "referencePolicy": [
            "literal",
            "logical"
          ],
          "interaction": [
            {
              "code": "read"
            },
            {
              "code": "search-type"
            },
            {
              "code": "create"
            },
            {
              "code": "update"
            }
          ]
        },
        {
          "type": "BodyStructure",
          "profile": "https://novari.no/fhir/digidot/StructureDefinition/digidot-DentalBodyStructure-no",
          "interaction": [
            {
              "code": "read"
            },
            {
              "code": "search-type"
            },
            {
              "code": "create"
            },
            {
              "code": "update"
            }
          ],
          "searchParam": [
            {
              "name": "patient",
              "type": "reference",
              "documentation": "Search patient-specific dental anatomy by patient."
            }
          ]
        },
        {
          "type": "ChargeItem",
          "profile": "https://novari.no/fhir/digidot/StructureDefinition/digidot-ChargeItem-no",
          "interaction": [
            {
              "code": "read"
            },
            {
              "code": "search-type"
            },
            {
              "code": "create"
            },
            {
              "code": "update"
            }
          ]
        },
        {
          "type": "EpisodeOfCare",
          "profile": "https://novari.no/fhir/digidot/StructureDefinition/digidot-EpisodeOfCare-no",
          "interaction": [
            {
              "code": "read"
            },
            {
              "code": "search-type"
            },
            {
              "code": "create"
            },
            {
              "code": "update"
            }
          ],
          "searchParam": [
            {
              "name": "patient",
              "type": "reference",
              "documentation": "Search a dental episode by patient."
            }
          ]
        },
        {
          "type": "Appointment",
          "profile": "http://hl7.no/fhir/StructureDefinition/no-basis-Appointment",
          "interaction": [
            {
              "code": "read"
            },
            {
              "code": "search-type"
            },
            {
              "code": "create"
            },
            {
              "code": "update"
            }
          ],
          "searchParam": [
            {
              "name": "patient",
              "type": "reference",
              "documentation": "Search scheduled dental appointments by patient."
            },
            {
              "name": "based-on",
              "type": "reference",
              "documentation": "Search appointments allocated to a planned dental ServiceRequest."
            },
            {
              "name": "date",
              "type": "date",
              "documentation": "Search appointments by scheduled date."
            }
          ]
        },
        {
          "type": "Patient",
          "profile": "http://hl7.no/fhir/StructureDefinition/no-basis-Patient",
          "interaction": [
            {
              "code": "read"
            },
            {
              "code": "search-type"
            }
          ],
          "operation": [
            {
              "name": "digidot-context",
              "definition": "https://novari.no/fhir/digidot/OperationDefinition/digidot-context",
              "documentation": "Returns local DigiDOT dental history plus selected source-aware external context for patient opening."
            }
          ]
        }
      ],
      "operation": [
        {
          "name": "digidot-context",
          "definition": "https://novari.no/fhir/digidot/OperationDefinition/digidot-context",
          "documentation": "Patient-context operation used by the dental user interface."
        }
      ]
    }
  ]
}