post https://fhir-api.zapehr.com/r4b/CompartmentDefinition
CompartmentDefinition on the FHIR specification website.
A compartment definition that defines how resources are accessed on a server.
The body should be a valid FHIR object for CompartmentDefinition.
For example, if creating a Slot resource, here is a valid object:
{
  "resourceType": "Slot",
  "schedule": {
    "reference": "schedule/a"
  },
  "status": "free",
  "start": "2022-08-10T11:00:00Z",
  "end": "2022-08-10T12:00:00Z"
}
You can reference the FHIR documentation to determine the format for CompartmentDefinition.
