{
  "resourceType": "CapabilityStatement",
  "id": "ca-on-ps-profile-CapabilityStatement-Repository",
  "url": "http://ontariohealth.ca/fhir/CapabilityStatement/ca-on-ps-profile-CapabilityStatement-Repository",
  "version": "0.10.0",
  "name": "PSONRepositoryFHIRCapabilityStatement",
  "title": "Ontario Patient Summary Repository FHIR Capability Statement",
  "status": "active",
  "experimental": false,
  "date": "2022-10-15T12:00:00+00:00",
  "publisher": "Ontario Health",
  "contact": [
    {
      "name": "Ontario Health",
      "telecom": [
        {
          "system": "email",
          "value": "oh-ds_architecture@ontariohealth.ca"
        }
      ]
    }
  ],
  "description": "This is the FHIR capability statement for the Ontario Patient Summary Repository server",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "urn:iso:std:iso:3166",
          "code": "CA",
          "display": "Canada"
        }
      ]
    }
  ],
  "purpose": "Main EHR capability statement, published for contracting and operational support",
  "copyright": "Copyright © Ontario Health",
  "kind": "requirements",
  "fhirVersion": "4.0.1",
  "format": [
    "json",
    "xml"
  ],
  "rest": [
    {
      "mode": "server",
      "documentation": "Support the submission, search, and retrieval of Patient Summaries",
      "resource": [
        {
          "type": "Bundle",
          "profile": "http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ps-profile-bundle",
          "documentation": "Submit a patient summary bundle to be published in the repository, search for and retrieve patient summaries already published",
          "interaction": [
            {
              "code": "create"
            },
            {
              "code": "update"
            },
            {
              "code": "read"
            },
            {
              "code": "vread"
            },
            {
              "code": "search-type"
            }
          ],
          "versioning": "versioned",
          "readHistory": true,
          "conditionalRead": "not-supported",
          "searchParam": [
            {
              "name": "composition.patient.identifier",
              "definition": "http://ehealthontario.ca/fhir/SearchParameter/Bundle-composition-patient-identifier",
              "type": "token"
            },
            {
              "name": "composition.type",
              "definition": "http://ehealthontario.ca/fhir/SearchParameter/Bundle-composition-type",
              "type": "token"
            },
            {
              "name": "composition.status",
              "definition": "http://ehealthontario.ca/fhir/SearchParameter/Bundle-composition-status",
              "type": "token"
            },
            {
              "name": "timestamp",
              "definition": "http://ehealthontario.ca/fhir/SearchParameter/Bundle-timestamp",
              "type": "date"
            },
            {
              "name": "_lastUpdated",
              "definition": "http://hl7.org/fhir/SearchParameter/Resource-lastUpdated",
              "type": "date"
            },
            {
              "name": "_count",
              "type": "number"
            },
            {
              "name": "_sort=timestamp",
              "type": "token"
            }
          ]
        }
      ]
    }
  ],
  "document": [
    {
      "mode": "consumer",
      "documentation": "The repository is a document consumer in the sense that it receives and stores documents generated from source systems.",
      "profile": "http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ps-profile-bundle"
    },
    {
      "mode": "producer",
      "documentation": "The repository is a document producer in the sense that it serves stored documents for retrieval by other systems, but it does not itself produce documents per se.",
      "profile": "http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ps-profile-bundle"
    }
  ]
}