{
  "resourceType": "CapabilityStatement",
  "id": "e5c9aeab-d212-48c4-832f-b9e84e0c4fbb",
  "name": "USCoreServerCapabilityStatement",
  "status": "active",
  "date": "2022-11-16",
  "publisher": "CGM eMDs",
  "kind": "instance",
  "instantiates": [
    "http://hl7.org/fhir/us/core/CapabilityStatement/us-core-server",
    "http://hl7.org/fhir/uv/bulkdata/CapabilityStatement/bulk-data"
  ],
  "software": {
    "name": "CGM eMDs FHIR Server",
    "version": "v1.0"
  },
  "implementation": {
    "description": "CGM FHIR Server Endpoint",
    "url": "https://fhir.emdscloud.com/"
  },
  "fhirVersion": "4.0.1",
  "format": [
    "application/fhir+json",
    "json"
  ],
  "patchFormat": [
    "application/fhir+json",
    "application/json-patch+json"
  ],
  "rest": [
    {
      "mode": "server",
      "documentation": "CGM eMDs FHIR Server Implementation",
      "security": {
        "cors": "true",
        "service": [
          {
            "coding": [
              {
                "system": "http://hl7.org/fhir/restful-security-service",
                "code": "SMART-on-FHIR"
              }
            ]
          }
        ],
        "extension": [
          {
            "url": "http://fhir-registry.smarthealthit.org/StructureDefinition/oauth-uris",
            "extension": [
              {
                "url": "authorize",
                "valueUri": "https://identity.emdscloud.com/connect/authorize"
              },
              {
                "url": "token",
                "valueUri": "https://identity.emdscloud.com/connect/token"
              },
              {
                "url": "introspect",
                "valueUri": "https://identity.emdscloud.com/connect/authorize"
              },
              {
                "url": "revoke",
                "valueUri": "https://identity.emdscloud.com/connect/authorize"
              }
            ]
          }
        ],
        "description": "See Smart on FHIR documentation"
      },
      "resource": [
        {
          "type": "CapabilityStatement",
          "interaction": [
            {
              "code": "read"
            }
          ]
        },
        {
          "type": "AllergyIntolerance",
          "supportedProfile": [
            "http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance"
          ],
          "interaction": [
            {
              "code": "read"
            },
            {
              "code": "search-type"
            }
          ],
          "searchRevInclude": [
            "Provenance:target"
          ],
          "searchParam": [
            {
              "name": "patient",
              "definition": "http://hl7.org/fhir/SearchParameter/clinical-patient",
              "type": "reference",
              "documentation": "Who the allergy or intolerance applies to"
            }
          ]
        },
        {
          "type": "Binary",
          "interaction": [
            {
              "code": "read"
            }
          ]
        },
        {
          "type": "CarePlan",
          "supportedProfile": [
            "http://hl7.org/fhir/us/core/StructureDefinition/us-core-careplan"
          ],
          "interaction": [
            {
              "code": "read"
            },
            {
              "code": "search-type"
            }
          ],
          "searchRevInclude": [
            "Provenance:target"
          ],
          "searchParam": [
            {
              "name": "patient",
              "definition": "http://hl7.org/fhir/SearchParameter/clinical-patient",
              "type": "reference",
              "documentation": "Who the care plan is for"
            },
            {
              "name": "category",
              "definition": "http://hl7.org/fhir/SearchParameter/CareTeam-category",
              "type": "token",
              "documentation": "Category of care plan"
            }
          ]
        },
        {
          "type": "CareTeam",
          "supportedProfile": [
            "http://hl7.org/fhir/us/core/StructureDefinition/us-core-careteam"
          ],
          "interaction": [
            {
              "code": "read"
            },
            {
              "code": "search-type"
            }
          ],
          "searchRevInclude": [
            "Provenance:target"
          ],
          "searchParam": [
            {
              "name": "patient",
              "definition": "http://hl7.org/fhir/SearchParameter/clinical-patient",
              "type": "reference",
              "documentation": "Who care team is for"
            },
            {
              "name": "status",
              "definition": "http://hl7.org/fhir/SearchParameter/CareTeam-status",
              "type": "token",
              "documentation": "proposed | active | suspended | inactive | entered-in-error"
            }
          ]
        },
        {
          "type": "Condition",
          "supportedProfile": [
            "http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition"
          ],
          "interaction": [
            {
              "code": "read"
            },
            {
              "code": "search-type"
            }
          ],
          "searchRevInclude": [
            "Provenance:target"
          ],
          "searchParam": [
            {
              "name": "patient",
              "definition": "http://hl7.org/fhir/SearchParameter/clinical-patient",
              "type": "reference",
              "documentation": "Who has the condition?"
            }
          ]
        },
        {
          "type": "Device",
          "supportedProfile": [
            "http://hl7.org/fhir/us/core/StructureDefinition/us-core-implantable-device"
          ],
          "interaction": [
            {
              "code": "read"
            },
            {
              "code": "search-type"
            }
          ],
          "searchRevInclude": [
            "Provenance:target"
          ],
          "searchParam": [
            {
              "name": "patient",
              "definition": "http://hl7.org/fhir/SearchParameter/Device-patient",
              "type": "reference",
              "documentation": "Patient information, if the resource is affixed to a person"
            }
          ]
        },
        {
          "type": "DiagnosticReport",
          "supportedProfile": [
            "http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab",
            "http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-note"
          ],
          "interaction": [
            {
              "code": "read"
            },
            {
              "code": "search-type"
            }
          ],
          "searchRevInclude": [
            "Provenance:target"
          ],
          "searchParam": [
            {
              "name": "patient",
              "definition": "http://hl7.org/fhir/SearchParameter/clinical-patient",
              "type": "reference",
              "documentation": "The subject of the report if a patient"
            },
            {
              "name": "date",
              "definition": "http://hl7.org/fhir/SearchParameter/clinical-date",
              "type": "date",
              "documentation": "The clinically relevant time of the report"
            },
            {
              "name": "code",
              "definition": "http://hl7.org/fhir/SearchParameter/clinical-code",
              "type": "token",
              "documentation": "The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result"
            },
            {
              "name": "category",
              "definition": "http://hl7.org/fhir/SearchParameter/DiagnosticReport-category",
              "type": "token",
              "documentation": "Which diagnostic discipline/department created the report"
            }
          ]
        },
        {
          "type": "DocumentReference",
          "supportedProfile": [
            "http://hl7.org/fhir/us/core/StructureDefinition/us-core-documentreference"
          ],
          "interaction": [
            {
              "code": "read"
            },
            {
              "code": "search-type"
            }
          ],
          "searchRevInclude": [
            "Provenance:target"
          ],
          "searchParam": [
            {
              "name": "date",
              "definition": "http://hl7.org/fhir/SearchParameter/DocumentReference-date",
              "type": "date",
              "documentation": "When this document reference was created"
            },
            {
              "name": "patient",
              "definition": "http://hl7.org/fhir/SearchParameter/clinical-patient",
              "type": "reference",
              "documentation": "Who is the subject of the document"
            },
            {
              "name": "_id",
              "definition": "http://hl7.org/fhir/SearchParameter/Resource-id",
              "type": "token",
              "documentation": "Logical id of this artifact"
            },
            {
              "name": "category",
              "definition": "http://hl7.org/fhir/SearchParameter/DocumentReference-category",
              "type": "token",
              "documentation": "Categorization of document"
            }
          ],
          "operation": [
            {
              "name": "USCoreFetchDocumentReferences",
              "definition": "http://hl7.org/fhir/us/core/OperationDefinition/docref",
              "documentation": "US Core Fetch DocumentReferences"
            }
          ]
        },
        {
          "type": "Encounter",
          "supportedProfile": [
            "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter"
          ],
          "interaction": [
            {
              "code": "read"
            },
            {
              "code": "search-type"
            }
          ],
          "searchRevInclude": [
            "Provenance:target"
          ],
          "searchParam": [
            {
              "name": "date",
              "definition": "http://hl7.org/fhir/SearchParameter/clinical-date",
              "type": "date",
              "documentation": "Date of the Encounter"
            },
            {
              "name": "patient",
              "definition": "http://hl7.org/fhir/SearchParameter/clinical-patient",
              "type": "reference",
              "documentation": "The patient present at the encounter"
            },
            {
              "name": "_id",
              "definition": "http://hl7.org/fhir/SearchParameter/Resource-id",
              "type": "token",
              "documentation": "Logical id of this artifact"
            }
          ]
        },
        {
          "type": "Goal",
          "supportedProfile": [
            "http://hl7.org/fhir/us/core/StructureDefinition/us-core-goal"
          ],
          "interaction": [
            {
              "code": "read"
            },
            {
              "code": "search-type"
            }
          ],
          "searchRevInclude": [
            "Provenance:target"
          ],
          "searchParam": [
            {
              "name": "patient",
              "definition": "http://hl7.org/fhir/SearchParameter/clinical-patient",
              "type": "reference",
              "documentation": "Who this goal is intended for"
            }
          ]
        },
        {
          "type": "Group",
          "operation": [
            {
              "name": "export",
              "definition": "http://hl7.org/fhir/uv/bulkdata/OperationDefinition/group-export",
              "documentation": "FHIR Operation to obtain a detailed set of FHIR resources for all patients specified in Group."
            }
          ]
        },
        {
          "type": "Immunization",
          "supportedProfile": [
            "http://hl7.org/fhir/us/core/StructureDefinition/us-core-immunization"
          ],
          "interaction": [
            {
              "code": "read"
            },
            {
              "code": "search-type"
            }
          ],
          "searchRevInclude": [
            "Provenance:target"
          ],
          "searchParam": [
            {
              "name": "patient",
              "definition": "http://hl7.org/fhir/SearchParameter/clinical-patient",
              "type": "reference",
              "documentation": "The patient for the vaccination record"
            }
          ]
        },
        {
          "type": "Location",
          "supportedProfile": [
            "http://hl7.org/fhir/us/core/StructureDefinition/us-core-location"
          ],
          "interaction": [
            {
              "code": "read"
            },
            {
              "code": "search-type"
            }
          ],
          "searchRevInclude": [
            "Provenance:target"
          ],
          "searchParam": [
            {
              "name": "address",
              "definition": "http://hl7.org/fhir/SearchParameter/Location-address",
              "type": "string",
              "documentation": "A (part of the) address of the location"
            },
            {
              "name": "name",
              "definition": "http://hl7.org/fhir/SearchParameter/Location-name",
              "type": "string",
              "documentation": "A portion of the location's name or alias"
            }
          ]
        },
        {
          "type": "MedicationRequest",
          "supportedProfile": [
            "http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest"
          ],
          "interaction": [
            {
              "code": "read"
            },
            {
              "code": "search-type"
            }
          ],
          "searchRevInclude": [
            "Provenance:target"
          ],
          "searchParam": [
            {
              "name": "intent",
              "definition": "http://hl7.org/fhir/SearchParameter/MedicationRequest-intent",
              "type": "token",
              "documentation": "Returns prescriptions with different intents"
            },
            {
              "name": "patient",
              "definition": "http://hl7.org/fhir/SearchParameter/clinical-patient",
              "type": "reference",
              "documentation": "Returns prescriptions for a specific patient"
            },
            {
              "name": "status",
              "definition": "http://hl7.org/fhir/SearchParameter/medications-status",
              "type": "token",
              "documentation": "Status of the prescription"
            }
          ]
        },
        {
          "type": "Observation",
          "supportedProfile": [
            "http://hl7.org/fhir/us/core/StructureDefinition/us-core-blood-pressure",
            "http://hl7.org/fhir/us/core/StructureDefinition/us-core-bmi",
            "http://hl7.org/fhir/us/core/StructureDefinition/us-core-body-height",
            "http://hl7.org/fhir/us/core/StructureDefinition/us-core-body-temperature",
            "http://hl7.org/fhir/us/core/StructureDefinition/us-core-body-weight",
            "http://hl7.org/fhir/us/core/StructureDefinition/us-core-head-circumference",
            "http://hl7.org/fhir/us/core/StructureDefinition/us-core-heart-rate",
            "http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab",
            "http://hl7.org/fhir/us/core/StructureDefinition/us-core-pulse-oximetry",
            "http://hl7.org/fhir/us/core/StructureDefinition/us-core-respiratory-rate",
            "http://hl7.org/fhir/us/core/StructureDefinition/us-core-smokingstatus",
            "http://hl7.org/fhir/us/core/StructureDefinition/pediatric-bmi-for-age",
            "http://hl7.org/fhir/us/core/StructureDefinition/head-occipital-frontal-circumference-percentile",
            "http://hl7.org/fhir/us/core/StructureDefinition/pediatric-weight-for-height",
            "http://hl7.org/fhir/us/core/StructureDefinition/us-core-vital-signs"
          ],
          "interaction": [
            {
              "code": "read"
            },
            {
              "code": "search-type"
            }
          ],
          "searchRevInclude": [
            "Provenance:target"
          ],
          "searchParam": [
            {
              "name": "date",
              "definition": "http://hl7.org/fhir/SearchParameter/clinical-date",
              "type": "date",
              "documentation": "Date first version of the resource instance was recorded"
            },
            {
              "name": "code",
              "definition": "http://hl7.org/fhir/SearchParameter/clinical-code",
              "type": "token",
              "documentation": "Code that identifies the Observation"
            },
            {
              "name": "patient",
              "definition": "http://hl7.org/fhir/SearchParameter/clinical-patient",
              "type": "reference",
              "documentation": "The subject that the Observation is about"
            },
            {
              "name": "category",
              "definition": "http://hl7.org/fhir/SearchParameter/Observation-category",
              "type": "token",
              "documentation": "The classification of the type of Observation"
            }
          ]
        },
        {
          "type": "Organization",
          "supportedProfile": [
            "http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization"
          ],
          "interaction": [
            {
              "code": "read"
            },
            {
              "code": "search-type"
            }
          ],
          "searchRevInclude": [
            "Provenance:target"
          ],
          "searchParam": [
            {
              "name": "address",
              "definition": "http://hl7.org/fhir/SearchParameter/Organization-address",
              "type": "string",
              "documentation": "A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text"
            },
            {
              "name": "name",
              "definition": "http://hl7.org/fhir/SearchParameter/Organization-name",
              "type": "string",
              "documentation": "A portion of the organization's name or alias"
            }
          ]
        },
        {
          "type": "Patient",
          "supportedProfile": [
            "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient"
          ],
          "interaction": [
            {
              "code": "read"
            },
            {
              "code": "search-type"
            }
          ],
          "searchRevInclude": [
            "Provenance:target"
          ],
          "searchParam": [
            {
              "name": "birthdate",
              "definition": "http://hl7.org/fhir/SearchParameter/individual-birthdate",
              "type": "date",
              "documentation": "The patient's date of birth"
            },
            {
              "name": "gender",
              "definition": "http://hl7.org/fhir/SearchParameter/individual-gender",
              "type": "token",
              "documentation": "Gender of the patient"
            },
            {
              "name": "identifier",
              "definition": "http://hl7.org/fhir/SearchParameter/Patient-identifier",
              "type": "token",
              "documentation": "A patient identifier"
            },
            {
              "name": "name",
              "definition": "http://hl7.org/fhir/SearchParameter/Patient-name",
              "type": "string",
              "documentation": "A server defined search that may match any of the string fields in the HumanName, including family, give, prefix, suffix, suffix, and/or text"
            },
            {
              "name": "_id",
              "definition": "http://hl7.org/fhir/SearchParameter/Resource-id",
              "type": "token",
              "documentation": "Logical id of this artifact"
            }
          ]
        },
        {
          "type": "Practitioner",
          "supportedProfile": [
            "http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner"
          ],
          "interaction": [
            {
              "code": "read"
            },
            {
              "code": "search-type"
            }
          ],
          "searchRevInclude": [
            "Provenance:target"
          ],
          "searchParam": [
            {
              "name": "identifier",
              "definition": "http://hl7.org/fhir/SearchParameter/Practitioner-identifier",
              "type": "token",
              "documentation": "A practitioner's Identifier"
            },
            {
              "name": "name",
              "definition": "http://hl7.org/fhir/SearchParameter/Practitioner-name",
              "type": "string",
              "documentation": "A server defined search that may match any of the string fields in the HumanName, including family, give, prefix, suffix, suffix, and/or text"
            }
          ]
        },
        {
          "type": "PractitionerRole",
          "supportedProfile": [
            "http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitionerrole"
          ],
          "searchRevInclude": [
            "Provenance:target"
          ],
          "searchParam": [
            {
              "name": "specialty",
              "definition": "http://hl7.org/fhir/SearchParameter/PractitionerRole-specialty",
              "type": "token",
              "documentation": "The practitioner has this specialty at an organization"
            },
            {
              "name": "practitioner",
              "definition": "http://hl7.org/fhir/SearchParameter/PractitionerRole-practitioner",
              "type": "reference",
              "documentation": "Practitioner that is able to provide the defined services for the organization"
            }
          ]
        },
        {
          "type": "Procedure",
          "supportedProfile": [
            "http://hl7.org/fhir/us/core/StructureDefinition/us-core-procedure"
          ],
          "interaction": [
            {
              "code": "read"
            },
            {
              "code": "search-type"
            }
          ],
          "searchRevInclude": [
            "Provenance:target"
          ],
          "searchParam": [
            {
              "name": "date",
              "definition": "http://hl7.org/fhir/SearchParameter/clinical-date",
              "type": "date",
              "documentation": "When the procedure was performed"
            },
            {
              "name": "patient",
              "definition": "http://hl7.org/fhir/SearchParameter/clinical-patient",
              "type": "reference",
              "documentation": "Patient the procedure was performed on"
            }
          ]
        },
        {
          "type": "Provenance",
          "supportedProfile": [
            "http://hl7.org/fhir/us/core/StructureDefinition/us-core-provenance"
          ],
          "interaction": [
            {
              "code": "read"
            },
            {
              "code": "search-type"
            }
          ],
          "searchRevInclude": [
            "Provenance:target"
          ],
          "searchParam": [
            {
              "name": "_id",
              "definition": "http://hl7.org/fhir/SearchParameter/Resource-id",
              "type": "token",
              "documentation": "Logical id of this artifact"
            },
            {
              "name": "patient",
              "definition": "http://hl7.org/fhir/SearchParameter/Provenance-patient",
              "type": "reference",
              "documentation": "Target Reference(s) (usually version specific)"
            }
          ]
        }
      ]
    }
  ]
}
