NextGen Office FHIR R4 API

HL7 FHIR R4 (4.0.1) Patient Access API for the cloud-based NextGen Office (formerly MediTouch) EHR, coded against the US Core specification and exposing read-only USCDIv1 data. A downloadable Swagger 2.0 definition (45 paths) is published, and the live R4 CapabilityStatement advertises 26 US Core resource types. Authenticated with SMART App Launch / OpenID Connect OAuth2 via Keycloak.

OpenAPI Specification

nextgen-office-fhir-r4-openapi.yaml Raw ↑
swagger: "2.0"
info:
  version: "1.0.0"
  title: "NextGen Office FHIR API"
  description: "Our API is coded against the US Core Specification (FHIR Version: 4.0.0) https://hl7.org/fhir/us/core/CapabilityStatement-server.html"
  contact:
    email: "nextgen-office-api@nextgen.com"
consumes:
  - application/json
produces:
  - application/json

externalDocs:
  description: "Find out more about NextGen Office FHIR API"
  url: "https://www.nextgen.com/products-and-services/nextgen-office"

host: "fhir.meditouchehr.com"
basePath: "/api/"

tags:
  - name: "Patient"
    description: "https://hl7.org/fhir/R4/patient.html"
  - name: "DocumentReference"
    description: "https://hl7.org/fhir/R4/documentreference.html"
  - name: "Condition"
    description: "https://hl7.org/fhir/R4/condition.html"
  - name: "Goal"
    description: "https://hl7.org/fhir/R4/goal.html"
  - name: "Observation"
    description: "https://hl7.org/fhir/R4/observation.html"
  - name: "Procedure"
    description: "https://hl7.org/fhir/R4/procedure.html"
  - name: "Immunization"
    description: "https://hl7.org/fhir/R4/immunization.html"
  - name: "AllergyIntolerance"
    description: "https://hl7.org/fhir/R4/allergyintolerance.html"
  - name: "Encounter"
    description: "https://hl7.org/fhir/R4/encounter.html"
  - name: "MedicationRequest"
    description: "https://hl7.org/fhir/R4/medicationrequest.html"
  - name: "MedicationAdministration"
    description: "https://hl7.org/fhir/R4/medicationadministration.html"
  - name: "DiagnosticReport"
    description: "https://hl7.org/fhir/R4/diagnosticreport.html"
  - name: "Device"
    description: "https://hl7.org/fhir/R4/device.html"
  - name: "CareTeam"
    description: "https://hl7.org/fhir/R4/careteam.html"
  - name: "CarePlan"
    description: "https://hl7.org/fhir/R4/careplan.html"
  - name: "Practitioner"
    description: "https://hl7.org/fhir/R4/practitioner.html"
  - name: "PractitionerRole"
    description: "https://hl7.org/fhir/R4/practitionerrole.html"
  - name: "Location"
    description: "https://hl7.org/fhir/R4/location.html"
  - name: "Organization"
    description: "https://hl7.org/fhir/R4/organization.html"
  - name: "Provenance"
    description: "https://hl7.org/fhir/R4/provenance.html"
  - name: "Specimen"
    description: "https://hl7.org/fhir/R4/specimen.html"
  - name: "RelatedPerson"
    description: "https://hl7.org/fhir/R4/relatedperson.html"
  - name: "Coverage"
    description: "https://hl7.org/fhir/R4/coverage.html"

schemes:
  - "https"
paths:
  "/fhir/r4/Patient/{id}":
    get:
      tags:
        - Patient
      description: "Fetches a single Patient by patient Id \n \n
        FHIR Resource: Patient.name.given \n
        * First Name \n
        *	Middle Name \n \n
        FHIR Resource: Patient.name.family \n
        *	Last Name \n \n
        FHIR Resource: Patient.name \n
        *	Previous Name \n \n
        FHIR Resource: Patient.name.suffix \n
        *	Suffix \n \n
        FHIR Resource: US Core Sex Extension \n
        *	Sex \n  \n
        FHIR Resource: Patient.birthDate \n
        *	Date of Birth \n  \n
        FHIR Resource: US Core Race Extension \n
        *	Race \n  \n
        FHIR Resource: US Core Ethnicity Extension \n
        *	Ethnicity \n  \n
        FHIR Resource: US Core Tribal Affiliation Extension \n
        *	Tribal Affiliation \n  \n
        FHIR Resource: US Core Gender Identity Extension \n
        *	Gender Identity \n  \n
        FHIR Resource: Patient.deceasedBoolean / Patient.deceasedDateTime \n
        *   Deceased Status / Deceased Date \n \n  
        FHIR Resource: Patient.communication \n
        *	Preferred Language \n  \n
        FHIR Resource: Patient.address \n
        *	Address \n  \n
        FHIR Resource: Patient.telecom \n
        *	Phone Number"

      parameters:
        - $ref: "#/parameters/id"
      responses:
        '200':
          description: Success
          schema:
            $ref: "#/definitions/Patient"
        '404':
          $ref: "#/responses/ResourceNotFound404"
        '401':
          $ref: "#/responses/ResourceNotAuthorized401"
  "/fhir/r4/Patient":
    get:
      tags:
        - Patient
      description: "Fetches a bundled resource containing the valid patients mentioned in the request parameters. \n \n
        FHIR Resource: Patient.name.given \n
        * First Name \n
        *	Middle Name \n \n
        FHIR Resource: Patient.name.family \n
        *	Last Name \n \n
        FHIR Resource: Patient.name \n
        *	Previous Name \n \n
        FHIR Resource: Patient.name.suffix \n
        *	Suffix \n \n
        FHIR Resource: US Core Sex Extension \n
        *   Sex \n  \n
        FHIR Resource: Patient.birthDate \n
        *	Date of Birth \n  \n
        FHIR Resource: US Core Race Extension \n
        *	Race \n  \n
        FHIR Resource: US Core Ethnicity Extension \n
        *	Ethnicity \n  \n
        FHIR Resource: US Core Tribal Affiliation Extension \n
        *	Tribal Affiliation \n  \n
        FHIR Resource: US Core Gender Identity Extension \n
        *	Gender Identity \n  \n
        FHIR Resource: Patient.deceasedBoolean / Patient.deceasedDateTime \n
        *	Deceased Status / Deceased Date \n \n
        FHIR Resource: Patient.communication \n
        *	Preferred Language \n  \n
        FHIR Resource: Patient.address \n
        *	Address \n  \n
        FHIR Resource: Patient.telecom \n
        *	Phone Number"
      parameters:
        - $ref: "#/parameters/_id"
        - $ref: "#/parameters/patient_identifier"
        - $ref: "#/parameters/patient_name"
        - $ref: "#/parameters/patient_birthdate"
        - $ref: "#/parameters/patient_gender"
      responses:
        '200':
          description: Success
          schema:
            $ref: "#/definitions/PatientBundled"
        '404':
          $ref: "#/responses/ResourceNotFound404"
        '401':
          $ref: "#/responses/ResourceNotAuthorized401"
  "/fhir/r4/DocumentReference/{id}":
    get:
      tags:
        - DocumentReference
      description: "Fetches a single Document Reference. A reference to a document of any kind for any purpose. Provides metadata about the document so that the document can be discovered and managed. \n \n
        FHIR Resource: DocumentReference \n  \n
        *	Consultation Note \n
        *	Discharge Summary Note \n
        *	History & Physical \n
        *	Progress Note \n  \n
        FHIR Resource: DocumentReference, DiagnosticReport \n
        *	Imaging Narrative \n
        *	Laboratory Report Narrative \n
        *	Pathology Report Narrative \n
        *	Procedure Note"
      parameters:
        - $ref: "#/parameters/id"
      responses:
        '200':
          description: success
          schema:
            $ref: "#/definitions/DocumentReferenceBundled"
        '404':
          $ref: "#/responses/ResourceNotFound404"
        '401':
          $ref: "#/responses/ResourceNotAuthorized401"
  "/fhir/r4/DocumentReference":
    get:
      tags:
        - DocumentReference
      description: "Fetches a bundled resource containing the valid Document References for the patient mentioned in the request. \n \n
        FHIR Resource: DocumentReference \n  \n
        *	Consultation Note \n
        *	Discharge Summary Note \n
        *	History & Physical \n
        *	Progress Note \n  \n
        FHIR Resource: DocumentReference, DiagnosticReport \n
        *	Imaging Narrative \n
        *	Laboratory Report Narrative \n
        *	Pathology Report Narrative \n
        *	Procedure Note"
      parameters:
        - $ref: "#/parameters/_id"
        - $ref: "#/parameters/patient_id"
        - $ref: "#/parameters/doc_ref_type"
        - $ref: "#/parameters/doc_ref_category"
        - $ref: "#/parameters/doc_ref_date"
        - $ref: "#/parameters/doc_ref_status"
      responses:
        '200':
          description: success
          schema:
            $ref: "#/definitions/DocumentReferenceBundled"
        '404':
          $ref: "#/responses/ResourceNotFound404"
        '401':
          $ref: "#/responses/ResourceNotAuthorized401"
  "/fhir/r4/Encounter/{id}":
    get:
      tags:
        - Encounter
      description: "Fetches a single Encounter. An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient.  \n \n
        FHIR Resource: Encounter \n
        *	Encounters \n \n
        FHIR Resource: Location \n
        * Location \n"
      parameters:
        - $ref: "#/parameters/encounter_id"
      responses:
        '200':
          description: success
          schema:
            $ref: "#/definitions/Encounter"
        '404':
          $ref: "#/responses/ResourceNotFound404"
        '401':
          $ref: "#/responses/ResourceNotAuthorized401"
  "/fhir/r4/Encounter":
    get:
      tags:
        - Encounter
      description: "Fetches a bundled resource containing encounter data based on the provided parameters.\n\n
            - If only `_id` is provided, a bundle containing a single encounter is returned.\n
            - If only `patient_id` is provided, multiple encounters for the patient may be returned.\n
            - If `patient_id` and `date` are provided, encounters matching the patient and date range are returned.\n
            - Requests containing both `_id` and `patient_id`, `_id` and `date`, only `date`, all three parameters together or providing no parameters will result in a `400 Bad Request`.\n\n
        FHIR Resource: Encounter \n
        *	Encounters \n \n
        FHIR Resource: Location \n
        * Location \n"
      parameters:
        - $ref: "#/parameters/optional_patient_id"
        - $ref: "#/parameters/date"
        - $ref: "#/parameters/_id"
      responses:
        '200':
          description: success
          schema:
            $ref: "#/definitions/EncounterBundled"
        '400':
          description: "**Invalid request:** The following conditions will result in a `400 Bad Request`:\n\n
                  - `_id` and `patient_id` cannot be provided together.\n
                  - `_id` and `date` cannot be provided together.\n
                  - Providing only `date` is not allowed.\n
                  - Providing all three parameters (`_id`, `patient_id`, and `date`) is not allowed.\n
                  - Providing none is not allowed."
        '404':
          $ref: "#/responses/ResourceNotFound404"
        '401':
          $ref: "#/responses/ResourceNotAuthorized401"
  "/fhir/r4/Procedure/{id}":
    get:
      tags:
        - Procedure
      description: "Fetches a single Procedure by id. \n \n
          FHIR Resource: Procedure \n
          *	Procedures"
      parameters:
        - $ref: "#/parameters/id"
      responses:
        '200':
          description: success
          schema:
            $ref: "#/definitions/Procedure"
        '404':
          $ref: "#/responses/ResourceNotFound404"
        '401':
          $ref: "#/responses/ResourceNotAuthorized401"
  "/fhir/r4/Procedure":
    get:
      tags:
        - Procedure
      description: "Fetches a bundled resource containing the valid procedures for the patient mentioned in the request. The procedures pertain to the encounters available for the patient. \n \n
        FHIR Resource: Procedure \n
          *	Procedures"
      parameters:
        - $ref: "#/parameters/patient_id"
        - $ref: "#/parameters/date"
      responses:
        '200':
          description: success
          schema:
            $ref: "#/definitions/ProcedureBundled"
        '404':
          $ref: "#/responses/ResourceNotFound404"
        '401':
          $ref: "#/responses/ResourceNotAuthorized401"
  "/fhir/r4/Condition/{id}":
    get:
      tags:
        - Condition
      description: "Fetches a bundled resource containing the condition/problem associated with the provided resource id.  \n \n
        FHIR Resource: Condition \n
        *	Health Concerns \n
        * Problems \n
        * Encounter Diagnosis \n"
      parameters:
        - $ref: "#/parameters/condition_id"
      responses:
        '200':
          description: Success
          schema:
            $ref: "#/definitions/Condition"
        '404':
          $ref: "#/responses/ResourceNotFound404"
        '401':
          $ref: "#/responses/ResourceNotAuthorized401"
  "/fhir/r4/Condition":
    get:
      tags:
        - Condition
      description: "Fetches a bundled resource containing the conditions/problems for the patient mentioned in the request. All conditions are mapped to SNOMED codes.  \n \n
        FHIR Resource: Condition \n
        *	Health Concerns \n
        * Problems \n
        * Encounter Diagnosis \n"
      parameters:
        - $ref: "#/parameters/patient_id"
        - $ref: "#/parameters/condition_category"
        - $ref: "#/parameters/date"
      responses:
        '200':
          description: Success
          schema:
            $ref: "#/definitions/ConditionBundled"
        '404':
          $ref: "#/responses/ResourceNotFound404"
        '401':
          $ref: "#/responses/ResourceNotAuthorized401"
  "/fhir/r4/Goal/{id}":
    get:
      tags:
        - Goal
      description: "Fetches a single Goal by id. \n \n
        FHIR Resource: Goal \n
        *	Patient Goals"
      parameters:
        - $ref: "#/parameters/id"
      responses:
        '200':
          description: Success
          schema:
            $ref: "#/definitions/Goal"
        '404':
          $ref: "#/responses/ResourceNotFound404"
        '401':
          $ref: "#/responses/ResourceNotAuthorized401"
  "/fhir/r4/Goal":
    get:
      tags:
        - Goal
      description:  "Fetches a bundled resource containing the health concern goals for the patient mentioned in the request.\n \n
          FHIR Resource: Goal \n
          *	Patient Goals"
      parameters:
        - $ref: "#/parameters/patient_id"
        - $ref: "#/parameters/date"
      responses:
        '200':
          description: Success
          schema:
            $ref: "#/definitions/GoalBundled"
        '404':
          $ref: "#/responses/ResourceNotFound404"
        '401':
          $ref: "#/responses/ResourceNotAuthorized401"
  "/fhir/r4/Observation/{id}":
    get:
      tags:
        - Observation
      description: "Fetches a single observation by id. \n \n
        FHIR Resource: Observation  \n
        *	Diastolic Blood Pressure - Blood pressure systolic and diastolic (FHIR Core Profile) \n
        *	Systolic Blood Pressure - Blood pressure systolic and diastolic (FHIR Core Profile) \n
        *	Body Height - Body height (FHIR Core Profile) \n
        *	Body Weight - Body weight (FHIR Core Profile) \n
        *	Heart Rate - Heart rate (FHIR Core Profile) \n
        *	Respiratory Rate - Body temperature (FHIR Core Profile) \n
        *	Body Temperature - Body temperature (FHIR Core Profile) \n
        *	Pulse Oximetry - US Core Pulse Oximetry Profile (Builds on FHIR Core Profile) \n
        *	Inhaled Oxygen Concentration - US Core Pulse Oximetry Profile (Builds on FHIR Core Profile) \n
        *	BMI Percentile (2-20 years old) - US Core Pediatric BMI for Age Observation Profile (Builds on FHIR Core Profile) \n
        *	Weight-for-Length Percentile (Birth-36 months) - US Core Pediatric Weight for Height Observation Profile (Builds on FHIR Core Profile) \n
        *	Occipital-frontal Head Circumference Percentile (Birth-36 months) - US Core Pediatric Head Occipital Frontal Circumference Observation Profile (Builds on FHIR Core Profile) \n
        *   Smoking Status \n
        *   Sexual Orientation \n
        *   Occupation"
      parameters:
        - $ref: "#/parameters/observation_id"
      responses:
        '200':
          description: Success
          schema:
            $ref: "#/definitions/Observation"
        '404':
          $ref: "#/responses/ResourceNotFound404"
        '401':
          $ref: "#/responses/ResourceNotAuthorized401"
  "/fhir/r4/Observation":
    get:
      tags:
        - Observation
      description: "Fetches a bundled resource containing the observations. for the patient mentioned in the request. \n \n
        FHIR Resource: Observation  \n
        *	Diastolic Blood Pressure - Blood pressure systolic and diastolic (FHIR Core Profile) \n
        *	Systolic Blood Pressure - Blood pressure systolic and diastolic (FHIR Core Profile) \n
        *	Body Height - Body height (FHIR Core Profile) \n
        *	Body Weight - Body weight (FHIR Core Profile) \n
        *	Heart Rate - Heart rate (FHIR Core Profile) \n
        *	Respiratory Rate - Body temperature (FHIR Core Profile) \n
        *	Body Temperature - Body temperature (FHIR Core Profile) \n
        *	Pulse Oximetry - US Core Pulse Oximetry Profile (Builds on FHIR Core Profile) \n
        *	Inhaled Oxygen Concentration - US Core Pulse Oximetry Profile (Builds on FHIR Core Profile) \n
        *	BMI Percentile (2-20 years old) - US Core Pediatric BMI for Age Observation Profile (Builds on FHIR Core Profile) \n
        *	Weight-for-Length Percentile (Birth-36 months) - US Core Pediatric Weight for Height Observation Profile (Builds on FHIR Core Profile) \n
        *	Occipital-frontal Head Circumference Percentile (Birth-36 months) - US Core Pediatric Head Occipital Frontal Circumference Observation Profile (Builds on FHIR Core Profile) \n
        *   Smoking Status \n
        *   Sexual Orientation \n
        *   Occupation"
      parameters:
        - $ref: "#/parameters/patient_id"
        - $ref: "#/parameters/observation_code"
        - $ref: "#/parameters/observation_category"
        - $ref: "#/parameters/date"
      responses:
        '200':
          description: Success
          schema:
            $ref: "#/definitions/ObservationBundled"
        '404':
          $ref: "#/responses/ResourceNotFound404"
        '401':
          $ref: "#/responses/ResourceNotAuthorized401"
  "/fhir/r4/Immunization/{id}":
    get:
      tags:
        - Immunization
      description: "Fetches a single immunization record by id. \n \n
        FHIR Resource: Immunization \n
        *	Immunization"
      parameters:
        - $ref: "#/parameters/id"
      responses:
        '200':
          description: success
          schema:
            $ref: "#/definitions/Immunization"
        '404':
          $ref: "#/responses/ResourceNotFound404"
        '401':
          $ref: "#/responses/ResourceNotAuthorized401"
  "/fhir/r4/Immunization":
    get:
      tags:
        - Immunization
      description:  "Fetches a bundled resource containing the immunization records for the patient mentioned in the request. All immunizations contain cvx code mapping\n \n
        FHIR Resource: Immunization \n
        *	Immunization"
      parameters:
        - $ref: "#/parameters/patient_id"
        - $ref: "#/parameters/date"
      responses:
        '200':
          description: success
          schema:
            $ref: "#/definitions/ImmunizationBundled"
        '404':
          $ref: "#/responses/ResourceNotFound404"
        '401':
          $ref: "#/responses/ResourceNotAuthorized401"
  "/fhir/r4/AllergyIntolerance/{id}":
    get:
      tags:
        - AllergyIntolerance
      description: "Fetches a single allergy/intolerance record by id. Allergy codes are mapped to RxNorm codes. \n \n
        FHIR Resource: AllergyIntolerance \n
        *	Substance (Drug Class) \n
        *	Substance (Medication) \n
        *	Reaction"
      parameters:
        - $ref: "#/parameters/id"
      responses:
        '200':
          description: success
          schema:
            $ref: "#/definitions/AllergyIntolerance"
        '404':
          $ref: "#/responses/ResourceNotFound404"
        '401':
          $ref: "#/responses/ResourceNotAuthorized401"
  "/fhir/r4/AllergyIntolerance":
    get:
      tags:
        - AllergyIntolerance
      description:  "Fetches a bundled resource containing the allergy/intolerance records for the patient mentioned in the request. Allergy codes are mapped to RxNorm codes.  \n \n
        FHIR Resource: AllergyIntolerance \n
        *	Substance (Drug Class) \n
        *	Substance (Medication) \n
        *	Reaction"
      parameters:
        - $ref: "#/parameters/patient_id"
        - $ref: "#/parameters/date"
      responses:
        '200':
          description: success
          schema:
            $ref: "#/definitions/AllergyIntoleranceBundled"
        '404':
          $ref: "#/responses/ResourceNotFound404"
        '401':
          $ref: "#/responses/ResourceNotAuthorized401"
  "/fhir/r4/MedicationRequest/{id}":
    get:
      tags:
        - MedicationRequest
      description: "Fetches a single medication prescription record by id. Medications are mapped to RxNorm codes. \n \n
        FHIR Resource: MedicationRequest \n
        *	Medications"
      parameters:
        - $ref: "#/parameters/id"
      responses:
        '200':
          description: Success
          schema:
            $ref: "#/definitions/MedicationRequest"
        '404':
          $ref: "#/responses/ResourceNotFound404"
        '401':
          $ref: "#/responses/ResourceNotAuthorized401"
  "/fhir/r4/MedicationRequest":
    get:
      tags:
        - MedicationRequest
      description:  "Fetches a bundled resource containing all the medication prescription records for the patient mentioned in the request. Medications are mapped to RxNorm codes. \n \n
        FHIR Resource: MedicationRequest \n
        *	Medications"
      parameters:
        - $ref: "#/parameters/patient_id"
        - $ref: "#/parameters/date"
        - $ref: "#/parameters/mr_intent"
        - $ref: "#/parameters/mr_status"
      responses:
        '200':
          description: Success
          schema:
            $ref: "#/definitions/MedicationRequestBundled"
        '404':
          $ref: "#/responses/ResourceNotFound404"
        '401':
          $ref: "#/responses/ResourceNotAuthorized401"
  "/fhir/r4/MedicationDispense/{id}":
    get:
      tags:
        - MedicationDispense
      description: "Fetches a single medication dispense record by id. Medications are mapped to RxNorm codes. \n \n
        FHIR Resource: MedicationDispense \n
        *	Medications"
      parameters:
        - $ref: "#/parameters/id"
      responses:
        '200':
          description: Success
          schema:
            $ref: "#/definitions/MedicationDispense"
        '404':
          $ref: "#/responses/ResourceNotFound404"
        '401':
          $ref: "#/responses/ResourceNotAuthorized401"
  "/fhir/r4/MedicationDispense":
    get:
      tags:
        - MedicationDispense
      description: "Returns a FHIR Bundle of MedicationDispense resources for the patient. Supported search parameters: patient (required), status (optional), _revinclude (optional, for Provenance:target). Parameters reflect actual implementation."
      parameters:
        - $ref: "#/parameters/patient"
        - $ref: "#/parameters/status"
      responses:
        '200':
          description: Success
          schema:
            $ref: "#/definitions/MedicationDispenseBundled"
        '404':
          $ref: "#/responses/ResourceNotFound404"
        '401':
          $ref: "#/responses/ResourceNotAuthorized401"

  "/fhir/r4/MedicationAdministration/{id}":
    get:
      tags:
        - MedicationAdministration
      description: "Fetches a single medication administration record by id. Medications are mapped to RxNorm codes. \n \n
        FHIR Resource: MedicationAdministration \n
        *	Medications"
      parameters:
        - $ref: "#/parameters/id"
      responses:
        '200':
          description: Success
          schema:
            $ref: "#/definitions/MedicationAdministration"
        '404':
          $ref: "#/responses/ResourceNotFound404"
        '401':
          $ref: "#/responses/ResourceNotAuthorized401"
  "/fhir/r4/MedicationAdministration":
    get:
      tags:
        - MedicationAdministration
      description: "Fetches a bundled resource containing all the medication administration records for the patient mentioned in the request. Medications are mapped to RxNorm codes. \n \n
        FHIR Resource: MedicationAdministration \n
        *	Medications"
      parameters:
        - $ref: "#/parameters/patient"
        - $ref: "#/parameters/ma_status"
      responses:
        '200':
          description: Success
          schema:
            $ref: "#/definitions/MedicationAdministrationBundled"
        '404':
          $ref: "#/responses/ResourceNotFound404"
        '401':
          $ref: "#/responses/ResourceNotAuthorized401"
  "/fhir/r4/DiagnosticReport/{id}":
    get:
      tags:
        - DiagnosticReport
      description: "Fetches a single lab or radiology result by id. The observations contained in the resource.  \n \n
        FHIR Resource: DocumentReference, DiagnosticReport \n
        *	Imaging Narrative \n
        *	Laboratory Report Narrative \n
        *	Pathology Report Narrative \n
        *	Procedure Note \n \n
        FHIR Resource: Observation, DiagnosticReport \n
        *	Tests \n
        *	Values/Results \n"
      parameters:
        - $ref: "#/parameters/id"
      responses:
        '200':
          description: Success
          schema:
            $ref: "#/definitions/DiagnosticReport"
        '404':
          $ref: "#/responses/ResourceNotFound404"
        '401':
          $ref: "#/responses/ResourceNotAuthorized401"
  "/fhir/r4/DiagnosticReport":
    get:
      tags:
        - DiagnosticReport
      description:  "Fetches a bundled resource containing all the lab or radiology results for the patient mentioned in the request. The observations contained in the resource.  \n \n
        FHIR Resource: DocumentReference, DiagnosticReport \n
        *	Imaging Narrative \n
        *	Laboratory Report Narrative \n
        *	Pathology Report Narrative \n
        *	Procedure Note \n \n
        FHIR Resource: Observation, DiagnosticReport \n
        *	Tests \n
        *	Values/Results \n"
      parameters:
        - $ref: "#/parameters/patient_id"
        - $ref: "#/parameters/date"
        - $ref: "#/parameters/dr_category"
        - $ref: "#/parameters/dr_code"
      responses:
        '200':
          description: Success
          schema:
            $ref: "#/definitions/DiagnosticReportBundled"
        '404':
          $ref: "#/responses/ResourceNotFound404"
        '401':
          $ref: "#/responses/ResourceNotAuthorized401"
  "/fhir/r4/Device/{id}":
    get:
      tags:
        - Device
      description:  "Fetches a single implantable device by id.  \n \n
        FHIR Resource: Device \n
        *	Unique Device Identifier(s) for Patients� Implantable Device(s) \n"
      parameters:
        - $ref: "#/parameters/id"
      responses:
        '200':
          description: Success
          schema:
            $ref: "#/definitions/Device"
        '404':
          $ref: "#/responses/ResourceNotFound404"
        '401':
          $ref: "#/responses/ResourceNotAuthorized401"
  "/fhir/r4/Device":
    get:
      tags:
        - Device
      description:  "Fetches a bundled resource containing all the implantable devices for the patient mentioned in the request.  \n \n
        FHIR Resource: Device \n
        *	Unique Device Identifier(s) for Patients� Implantable Device(s) \n"
      parameters:
        - $ref: "#/parameters/patient_id"
        - $ref: "#/parameters/date"
      responses:
        '200':
          description: Success
          schema:
            $ref: "#/definitions/DeviceBundled"
        '404':
          $ref: "#/responses/ResourceNotFound404"
        '401':
          $ref: "#/responses/ResourceNotAuthorized401"
  "/fhir/r4/CarePlan/{id}":
    get:
      tags:
        - CarePlan
      description: "Fetches a single plan of treatment(care plans, orders) and assessment note by id. \n \n
        FHIR Resource: CarePlan \n
        *	Assessment and Plan of Treatment \n"
      parameters:
        - $ref: "#/parameters/id"
      responses:
        '200':
          description: Success
          schema:
            $ref: "#/definitions/CarePlan"
        '404':
          $ref: "#/responses/ResourceNotFound404"
        '401':
          $ref: "#/responses/ResourceNotAuthorized401"
  "/fhir/r4/CarePlan":
    get:
      tags:
        - CarePlan
      description:  "Fetches a bundled resource containing plan of treatment(care plans, orders) and assessment notes for the patient mentioned in the request. \n \n
        FHIR Resource: CarePlan \n
        *	Assessment and Plan of Treatment \n"

      parameters:
        - $ref: "#/parameters/patient_id"
        - $ref: "#/parameters/date"
        - $ref: "#/parameters/cp_category"
      responses:
        '200':
          description: Success
          schema:
            $ref: "#/definitions/CarePlanBundled"
        '404':
          $ref: "#/responses/ResourceNotFound404"
        '401':
          $ref: "#/responses/ResourceNotAuthorized401"
  "/fhir/r4/CareTeam/{id}":
    get:
      tags:
        - CareTeam
      description: "Fetches a single Care Team member by id.  \n \n
        FHIR Resource: CareTeam \n
        *	Care Team \n"
      parameters:
        - $ref: "#/parameters/id"
      responses:
        '200':
          description: Success
          schema:
            $ref: "#/definitions/CareTeamBundled"
        '404':
          $ref: "#/responses/ResourceNotFound404"
        '401':
          $ref: "#/responses/ResourceNotAuthorized401"
  "/fhir/r4/CareTeam":
    get:
      tags:
        - CareTeam
      description:  "Fetches a bundled resource containing details of the Care Team members for the patient or care team ID mentioned in the request.  \n \n
        FHIR Resource: CareTeam \n \n
            - If only `patient_id` is provided, care team for the patient may be returned.\n
            - If only `_id` is provided, care team for the care team ID may be returned.\n
            - If `patient_id` and `status` are provided, care team members matching the patient and status are returned.\n
            - Requests containing both `_id` and `patient_id`, `_id` and `status`, `status` alone or all three parameters together or providing no parameters will result in a `400 Bad Request`.\n\n
        *	Care Team \n"
      parameters:
        - $ref: "#/parameters/optional_patient_id"
        - $ref: "#/parameters/ct_status"
        - $ref: "#/parameters/_id"

      responses:
        '200':
          description: Success
          schema:
            $ref: "#/definitions/CareTeamBundled"
        '400':
          description: "**Invalid request:** The following conditions will result in a `400 Bad Request`:\n\n
                          - `_id` and `patient_id` cannot be provided together.\n
                          - `_id` and `status` cannot be provided together.\n
                          - Providing only `status` is not allowed.\n
                          - Providing all three parameters (`_id`, `patient_id`, and `status`) is not allowed.\n
                          - Providing none is not allowed."
        '404':
          $ref: "#/responses/ResourceNotFound404"
        '401':
          $ref: "#/responses/ResourceNotAuthorized401"
  "/fhir/r4/Practitioner/{id}":
    get:
      tags:
        - Practitioner
      description: "Fetches a Practitioner by id. Practitioner is a person who is directly or indirectly involved in the provisioning of healthcare.  \n \n
        FHIR Resource: Practitioner \n
        *	Practitioner \n \n
        FHIR Resource: Location \n
        * Location \n"
      parameters:
        - $ref: "#/parameters/id"
      responses:
        '200':
          description: Success
          schema:
            $ref: "#/definitions/Practitioner"
        '404':
          $ref: "#/responses/ResourceNotFound404"
        '401':
          $ref: "#/responses/ResourceNotAuthorized401"
  "/fhir/r4/PractitionerRole/{id}":
    get:
      tags:
        - PractitionerRole
      description: "Fetches a Practitioner Role by id.  \n \n
        FHIR Resource: PractitionerRole \n
        *	Practitioner Role \n"
      parameters:
        - $ref: "#/parameters/id"
      responses:
        '200':
          description: Success
          schema:
            $ref: "#/definitions/PractitionerRole"
        '404':
          $ref: "#/responses/ResourceNotFound404"
        '401':
          $ref: "#/responses/ResourceNotAuthorized401"
  "/fhir/r4/PractitionerRole":
      get:
        tags:
          - PractitionerRole
        description: "Fetches a bundled resource containing practitioner role data based on the provided parameters.\n\n
              - If `practitioner_id` is provided, a bundle containing a practitioner role is returned.\n\n
          FHIR Resource: PractitionerRole \n
        *	Practitioner Role 

# --- truncated at 32 KB (156 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/nextgen-healthcare/refs/heads/main/openapi/nextgen-office-fhir-r4-openapi.yaml