Binary

GET

{domain}/neo-atlas/fhir/Binary/{id}

Route that fetch requested binary. It returns one entity.

  • The logical identifier {id} of the FHIR binary must be added as a path parameter.

  • Responses

    • OK (200)
      • The binary entity is in the response body.
    • BadRequest (400)
      • The parameter {id} is null, empty or consists of white-space characters.
    • Forbidden (403)
      • Insufficient rights to the resource.
    • NotFound (404)
      • The binary wasn't found.
    • InternalServerError (500)
      • An unexpected error has occured.

DocumentReference

GET

{domain}/neo-atlas/fhir/DocumentReference

Route that searches for one or multiple DocumentReference. It will return a Bundle containing DocumentReference(s).

  • Search any DocumentReference with corresponding context.related.reference.identifier of ServiceRequest type.

  • Type specified with context.related.reference.type query parameter.

  • Responses

    • OK (200)
      • The DocumentReference entities is in the response body.
    • Forbidden (403)
      • Insufficient rights to the ressource.
    • NotFound (404)
      • The DocumentReferences wasn't found.
    • InternalServerError (500)
      • An unexpected error has occured.

Organization

HTTP verbs supported

akinox-fhir-organization-swagger

GET

{domain}/neo-atlas/fhir/Organization/{id}

Route that helps retreive different establishments and departments. It will return one entity.

  • Fetch an establishments or departments we have in our database with his logical identifier {id}.
    • Fetch an establishment by passing a GUID.
      • The logical identifier from the establishment can be found here {domain}/neo-atlas/fhir/Organization
    • Fetch a department by passing a short.
      • The logical identifier from the department can be found here {domain}/neo-atlas/fhir/Organization

For different get examples click here

  • Responses
    • OK (200)
      • The organization entity is in the response body.
    • BadRequest (400)
      • The parameter {id} is null, empty or consists of white-space characters.
    • Forbidden (403)
      • Insufficient rights to the ressource.
    • NotFound (404)
      • The department or the establishment wasn't found.
    • Gone (410)
      • The department or the establishment is inactive.
    • InternalServerError (500)
      • An unexpected error has occured.

{domain}/neo-atlas/fhir/Organization

Route that searches different establishment and department. It will return a Bundle containing hospitals and/or departments.

  • Search any establishment with a specific code regarding his identifier.
  • Search any department with a specific parent organization MsssCode identifier.

Here are different search examples here

  • Reponses
    • OK (200)
      • The Bundle is in the response body.
    • BadRequest (400)
      • There was an error binding the search parameters.
    • Forbidden (403)
      • Insufficient rights to the ressource.
    • InternalServerError (500)
      • An unexpected error has occured.

Location

HTTP verbs supported

akinox-fhir-location-swagger

GET

{domain}/neo-atlas/fhir/Location/{id}

Route that helps retreive different establishments and departments. It will return one entity.

  • Fetch an departments we have in our database with his logical identifier {id}.

    • Fetch a department by passing a short.
  • Responses

    • OK (200)
      • The location entity is in the response body.
    • BadRequest (400)
      • The parameter {id} is null, empty or consists of white-space characters.
    • Forbidden (403)
      • Insufficient rights to the ressource.
    • NotFound (404)
      • The department wasn't found.

Patient

HTTP verbs supported

akinox-fhir-patient-swagger

GET

{domain}/neo-atlas/fhir/Patient/{id}

Route that fetch requested patient. It returns one entity.

  • The logical identifier {id} of the FHIR patient must be added as a path parameter.

Here are different get examples here

  • Responses
    • OK (200)
      • The patient entity is in the response body.
    • BadRequest (400)
      • The parameter {id} is null, empty or consists of white-space characters.
    • Forbidden (403)
      • Insufficient rights to the ressource.
    • NotFound (404)
      • The patient wasn't found.
    • Gone (410)
      • The patient is inactive.
    • Unprocessable Entity (422)
      • The patient entity does not fit our FHIR business rules.
    • InternalServerError (500)
      • An unexpected error has occured.

{domain}/neo-atlas/fhir/Patient

Route that searches for Patients. It will return a Bundle containing a list of Patient.

  • Search any Patient using his business identifier (PCI - Patient Composed Identifier or JHN - Jurisdictional health number).

Here are different search examples here

  • Reponses
    • OK (200)
      • The Bundle is in the response body.
    • BadRequest (400)
      • There was an error binding the search parameters.
    • Forbidden (403)
      • Insufficient rights to the ressource.
    • InternalServerError (500)
      • An unexpected error has occured.

POST

{domain}/neo-atlas/fhir/Patient

Route that allows the patient entity to be created.

  • The JSON of the FHIR patient must be in the request body.

Here are different post examples here

  • Reponses
    • Created (201)
      • The patient was created and returned as a FHIR patient in the response body with the id assigned and the meta updated.
      • The logical identifier from the creation will be situated in the response headers under the location property.
        • For example
          • location: patient/bb1682da-b744-4fa6-b8a5-d00f0eaa88a9
    • BadRequest (400)
      • The JSON that was passed in the request body is not FHIR valid, it will return a BadRequest with the operation outcome. See here for operation outcome information.
      • JSON format is invalid.
    • Forbidden (403)
      • Insufficient rights to the ressource.
    • Unprocessable Entity (422)
      • The FHIR patient entity does not fit our business rules.
    • InternalServerError (500)
      • An unexpected error has occured.

PUT

{domain}/neo-atlas/fhir/Patient/{id}

Route that allows the patient entity to be update.

  • The JSON representing the FHIR Patient must be in the request body.
  • The logical identifier {id} of the FHIR Patient must be added as a path parameter.

Here are different put examples here

  • Reponses
    • OK (200)
      • The patient was updated and returned as a FHIR patient in the response body with the meta updated.
    • BadRequest (400)
      • The logical identifier {id} in the query string doesn't match the logical identifier in the JSON located in the request body.
      • The JSON that was passed in the request body is not FHIR valid, it will return a BadRequest with the operation outcome. See here for operation outcome information.
    • Forbidden (403)
      • Insufficient rights to the ressource.
    • MethodNotAllowed (405)
      • The FHIR patient entity wasn't found in our database.
    • Gone (410)
      • The FHIR patient entity is inactive.
    • Unprocessable Entity (422)
      • The FHIR patient entity does not fit our business rules.
    • InternalServerError (500)
      • An unexpected error has occured.

DELETE

{domain}/neo-atlas/fhir/Patient/{id}

Route that allows the patient entity to be deleted.

  • The logical identifier {id} of the FHIR patient must be added as a path parameter.

Here are different put examples here

  • Responses
    • NoContent (204)
      • The patient entity was deleted.
      • The patient wasn't found.
    • BadRequest (400)
      • The parameter {id} is null, empty or consists of white-space characters.
    • Forbidden (403)
      • Insufficient rights to the ressource.
    • InternalServerError (500)
      • An unexpected error has occured.

Practitioner

HTTP verbs supported

Akinox-FHIR-Practitioner-Swagger

GET

{domain}/neo-atlas/fhir/Practitioner/{id}

Route that helps fetch different practitioners. It will return one entity.

  • Fetch any practitioner we have in our database with his logical identifier {id}. The logical identifier is a GUID.
    • The logical identifier can be found here {domain}/neo-atlas/fhir/Practitioner.

Here are different get examples here

  • Responses
    • OK (200)
      • The practitioner entity is in the response body.
    • BadRequest (400)
      • The parameter {id} is null, empty or consists of white-space characters.
    • Forbidden (403)
      • Insufficient rights to the ressource.
    • NotFound (404)
      • The practitioner wasn't found.
    • Gone (410)
      • The practitioner is inactive.
    • InternalServerError (500)
      • An unexpected error has occured.

{domain}/neo-atlas/fhir/Practitioner

Route that searches different practitioner. It will return a Bundle.

  • Search any practitioner using his FHIR identifier (LN - License Number).

Here are different search examples click here

  • Reponses
    • OK (200)
      • The Bundle is in the response body.
    • BadRequest (400)
      • There was an error binding the search parameters.
    • Forbidden (403)
      • Insufficient rights to the ressource.
    • InternalServerError (500)
      • An unexpected error has occured.

PUT

{domain}/neo-atlas/fhir/Practitioner/{id}

  • The JSON representing the FHIR practitioner needs to be in the request body.
  • The logical identifier {id} of the FHIR practitioner must be added as a path parameter.

Here are different put examples here

  • Reponses
    • OK (200)
      • The practitioner was updated and we return it in the response body with the meta updated.
    • BadRequest (400)
      • The logical identifier {id} in the path parameter string doesn't match the logical identifier in the JSON located in the request body.
      • The JSON that was passed in the request body is not FHIR valid, it will return a BadRequest with the operation outcome. See here for operation outcome information.
      • The FHIR practitioner entity does not fit our business rules.
    • Forbidden (403)
      • Insufficient rights to the ressource.
    • MethodNotAllowed (405)
      • The FHIR practitioner entity wasn't found.
    • Unprocessable Entity (422)
      • The FHIR practitioner doesn't fit our business rules.
    • InternalServerError (500)
      • An unexpected error has occured.

DELETE

{domain}/neo-atlas/fhir/Practitioner/{id}

Route that helps delete a practitioner.

  • Delete any practitioner we have in our database with his logical identifier {id}.

Here are different delete examples here

  • Responses
    • NoContent (204)
      • The practitioner entity was deleted.
      • The practitioner wasn't found.
    • BadRequest (400)
      • The parameter {id} is null, empty or consists of white-space characters.
    • Forbidden (403)
      • Insufficient rights to the ressource.
    • InternalServerError (500)
      • An unexpected error has occured.

PractitionerRole

HTTP verbs supported

akinox-fhir-practitionerrole-swagger

GET

{domain}/neo-atlas/fhir/PractitionerRole/{id}

Route that helps fetch different practitioner roles. It will return one entity.

  • Fetch any practitioner role we have in our database with his logical identifier {id}. The logical identifier is an integer.
    • The representation of a practitioner role consist of the link created between a practitioner and his affiliated site.
    • The logical identifier can be search here {domain}/neo-atlas/fhir/PractitionerRole.

Here are different get examples here

  • Responses
    • OK (200)
      • The practitioner role entity is in the response body.
    • BadRequest (400)
      • The parameter {id} is null, empty or consists of white-space characters.
    • Forbidden (403)
      • Insufficient rights to the ressource.
    • NotFound (404)
      • The practitioner role wasn't found.
    • InternalServerError (500)
      • An unexpected error has occured.

{domain}/neo-atlas/fhir/PractitionerRole

Route that searches for PractitionerRole. It will return a Bundle containing a list of PractitionerRole.

  • Search any PractitionerRole using his practitioner reference identifier (MD - Medical License Number).
  • Search any PractitionerRole using his organization's parent reference identifier (Msss Code).

Here are different search examples here

  • Reponses
    • OK (200)
      • The Bundle is in the response body.
    • BadRequest (400)
      • There was an error binding the search parameters.
    • Forbidden (403)
      • Insufficient rights to the ressource.
    • InternalServerError (500)
      • An unexpected error has occured.

POST

{domain}/neo-atlas/fhir/PractitionerRole

Route that allows the practitioner role entity to be created.

  • The JSON representing the FHIR practitioner role needs to be in the request body.

Here are different post examples here

  • Reponses
    • Created (201)
      • The practitioner role was created and we return the FHIR practitioner role in the response body with the id assigned.
      • The logical identifier from the creation will be situated in the response headers under the location property.
        • For example
          • location: PractitionerRole/223
    • BadRequest (400)
      • The JSON that was passed in the request body is not FHIR valid, it will return a BadRequest with the operation outcome. See here for operation outcome information.
      • JSON format is invalid.
      • The FHIR practitioner role entity is a duplicate.
      • The FHIR practitioner role entity does not fit our business rules.
    • Forbidden (403)
      • Insufficient rights to the ressource.
    • Unprocessable Entity (422)
      • The practitioner wasn't found.
      • The sites were not found.
      • The sites found are not linked together.
      • The practitioner role already exists.
    • IntervalServerError (500)
      • An unexpected error has occured.

DELETE

{domain}/neo-atlas/fhir/PractitionerRole/{id}

Route that helps delete a practitioner roles.

  • Delete any practitioner role we have in our database with his logical identifier {id}.
    • The representation of a practitioner role consist of the link created between a practitioner and his affiliated site.

Here are different get examples here

  • Responses
    • NoContent (204)
      • The practitioner role entity was deleted.
      • The practitioner role wasn't found.
    • BadRequest (400)
      • The parameter {id} is null, empty or consists of white-space characters.
    • Forbidden (403)
      • Insufficient rights to the ressource.
    • IntervalServerError (500)
      • An unexpected error has occured.

ServiceRequest

HTTP verbs supported

akinox-fhir-servicerequest-swagger

GET

{domain}/neo-atlas/fhir/ServiceRequest/{id}

Route that fetch requested ServiceRequest. It returns one entity.

  • The logical identifier {id} of the FHIR ServiceRequest must be added as a path parameter.

Here are different get examples here

  • Responses
    • OK (200)
      • The ServiceRequest entity is in the response body.
    • BadRequest (400)
      • The parameter {id} is null, empty or consists of white-space characters.
    • Forbidden (403)
      • Insufficient rights to the ressource.
    • NotFound (404)
      • The ServiceRequest wasn't found.
    • Unprocessable Entity (422)
      • The ServiceRequest entity does not fit our FHIR business rules.
        • For example : As of Version 1, we only support Dermatology clinical domain.
    • InternalServerError (500)
      • An unexpected error has occured.

{domain}/neo-atlas/fhir/ServiceRequest

Route that searches for ServiceRequest. It will return a Bundle containing a list of ServiceRequest.

  • Search any ServiceRequest using his patient reference identifier (PCI - Patient Composed Identifier).
  • Search any ServiceRequest using his requester reference identifier (MD - Medical License Number).
  • Search any ServiceRequest using his requester organization's parent reference identifier (Msss Code).

Here are different search examples here

  • Reponses
    • OK (200)
      • The Bundle is in the response body.
    • BadRequest (400)
      • There was an error binding the search parameters.
    • Forbidden (403)
      • Insufficient rights to the ressource.
    • InternalServerError (500)
      • An unexpected error has occured.

POST

{domain}/neo-atlas/fhir/ServiceRequest

Route that allows the ServiceRequest entity to be created.

  • The JSON of the FHIR ServiceRequest must be in the request body.

Here are different post examples here

  • Reponses
    • Created (201)
      • The ServiceRequest was created and returned as a FHIR ServiceRequest in the response body with the id assigned and the meta updated.
      • The logical identifier from the creation will be situated as a fhir reference in the response headers under the location property.
        • For example
          • location: ServiceRequest/bb1682da-b744-4fa6-b8a5-d00f0eaa88a9
    • BadRequest (400)
      • The JSON that was passed in the request body is not FHIR valid, it will return a BadRequest with the operation outcome. See here for operation outcome information.
      • Payload JSON format is invalid.
    • Forbidden (403)
      • Insufficient rights to the ressource.
    • Unprocessable Entity (422)
      • The FHIR ServiceRequest entity does not fit our business rules.
      • The FHIR ServiceRequest entity is a duplicate.
    • InternalServerError (500)
      • An unexpected error has occured.

DELETE

{domain}/neo-atlas/fhir/ServiceRequest/{id}

Route that allows the ServiceRequest entity to be deleted.

  • The logical identifier {id} of the FHIR ServiceRequest must be added as a path parameter.

Here are different put examples here

  • Responses
    • NoContent (204)
      • The ServiceRequest entity was deleted.
      • The ServiceRequest wasn't found.
    • BadRequest (400)
      • The parameter {id} is null, empty or consists of white-space characters.
    • Forbidden (403)
      • Insufficient rights to the ressource.
    • Unprocessable Entity (422)
      • The ServiceRequest entity does not fit our FHIR business rules.
        • For example : As of Version 1, we only support Dermatology clinical domain.
      • The ServiceRequest entity was already deleted.
    • InternalServerError (500)
      • An unexpected error has occured.

Swagger OpenAPI documentation

{
  "openapi": "3.0.1",
  "info": {
    "title": "Akinox FHIR API",
    "version": "v1"
  },
  "servers": [
    {
      "url": "/neo-atlas/"
    }
  ],
  "paths": {
    "/fhir/Location/{id}": {
      "get": {
        "tags": [
          "Location"
        ],
        "operationId": "ReadLocation",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "410": {
            "description": "Client Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error"
          }
        }
      }
    },
    "/fhir/Organization/{id}": {
      "get": {
        "tags": [
          "Organization"
        ],
        "operationId": "ReadOrganization",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "410": {
            "description": "Client Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error"
          }
        }
      }
    },
    "/fhir/Organization": {
      "get": {
        "tags": [
          "Organization"
        ],
        "operationId": "SearchOrganization",
        "parameters": [
          {
            "name": "identifier",
            "in": "query",
            "description": "Organization's MsssCode",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error"
          }
        }
      }
    },
    "/fhir/Patient/{id}": {
      "get": {
        "tags": [
          "Patient"
        ],
        "operationId": "ReadPatient",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "410": {
            "description": "Client Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Client Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error"
          }
        }
      },
      "put": {
        "tags": [
          "Patient"
        ],
        "operationId": "UpdatePatient",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "type": "object",
                "additionalProperties": { }
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": { }
              }
            },
            "text/json": {
              "schema": {
                "type": "object",
                "additionalProperties": { }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "object",
                "additionalProperties": { }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Client Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error"
          }
        }
      }
    },
    "/fhir/Patient": {
      "post": {
        "tags": [
          "Patient"
        ],
        "operationId": "CreatePatient",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "type": "object",
                "additionalProperties": { }
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": { }
              }
            },
            "text/json": {
              "schema": {
                "type": "object",
                "additionalProperties": { }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "object",
                "additionalProperties": { }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Client Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error"
          }
        }
      },
      "get": {
        "tags": [
          "Patient"
        ],
        "operationId": "SearchPatient",
        "parameters": [
          {
            "name": "identifier:of-type",
            "in": "query",
            "description": "Patient identifier",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error"
          }
        }
      }
    },
    "/fhir/Practitioner/{id}": {
      "get": {
        "tags": [
          "Practitioner"
        ],
        "operationId": "ReadPractitioner",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "410": {
            "description": "Client Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error"
          }
        }
      },
      "put": {
        "tags": [
          "Practitioner"
        ],
        "operationId": "UpdatePractitioner",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "type": "object",
                "additionalProperties": { }
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": { }
              }
            },
            "text/json": {
              "schema": {
                "type": "object",
                "additionalProperties": { }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "object",
                "additionalProperties": { }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Client Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error"
          }
        }
      },
      "delete": {
        "tags": [
          "Practitioner"
        ],
        "operationId": "DeactivatePractitioner",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error"
          }
        }
      }
    },
    "/fhir/Practitioner": {
      "get": {
        "tags": [
          "Practitioner"
        ],
        "operationId": "SearchPractitioner",
        "parameters": [
          {
            "name": "identifier",
            "in": "query",
            "description": "License Number",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error"
          }
        }
      }
    },
    "/fhir/PractitionerRole/{id}": {
      "get": {
        "tags": [
          "PractitionerRole"
        ],
        "operationId": "ReadPractitionerRole",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error"
          }
        }
      },
      "delete": {
        "tags": [
          "PractitionerRole"
        ],
        "operationId": "DeactivatePractitionerRole",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error"
          }
        }
      }
    },
    "/fhir/PractitionerRole": {
      "post": {
        "tags": [
          "PractitionerRole"
        ],
        "operationId": "CreatePractitionerRole",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "type": "object",
                "additionalProperties": { }
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": { }
              }
            },
            "text/json": {
              "schema": {
                "type": "object",
                "additionalProperties": { }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "object",
                "additionalProperties": { }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Client Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error"
          }
        }
      },
      "get": {
        "tags": [
          "PractitionerRole"
        ],
        "operationId": "SearchPractitionerRole",
        "parameters": [
          {
            "name": "practitioner.identifier",
            "in": "query",
            "description": "Practitioner's Licence Number",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "organization.identifier",
            "in": "query",
            "description": "Organization's MsssCode",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error"
          }
        }
      }
    },
    "/fhir/ServiceRequest/{id}": {
      "get": {
        "tags": [
          "ServiceRequest"
        ],
        "operationId": "ReadServiceRequest",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Client Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error"
          }
        }
      },
      "delete": {
        "tags": [
          "ServiceRequest"
        ],
        "operationId": "CancelServiceRequest",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Client Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error"
          }
        }
      }
    },
    "/fhir/ServiceRequest": {
      "post": {
        "tags": [
          "ServiceRequest"
        ],
        "operationId": "CreateServiceRequest",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "type": "object",
                "additionalProperties": { }
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": { }
              }
            },
            "text/json": {
              "schema": {
                "type": "object",
                "additionalProperties": { }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "object",
                "additionalProperties": { }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Client Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error"
          }
        }
      },
      "get": {
        "tags": [
          "ServiceRequest"
        ],
        "operationId": "SearchServiceRequest",
        "parameters": [
          {
            "name": "patient.identifier",
            "in": "query",
            "description": "Patient composed identifier",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "requester:PractitionerRole.practitioner.identifier",
            "in": "query",
            "description": "Requester logical identifier",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "requester:PractitionerRole.organization.partof.identifier",
            "in": "query",
            "description": "Requester Parent Organization's MsssCode",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Microsoft.AspNetCore.Mvc.ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": { }
      }
    }
  }
}
...