EMIS Health Medical Record API

The medicalRecord API from EMIS Health — 12 operation(s) for medicalrecord.

Operations 12

GET /api/v1/medicalRecord/GetAttachments #
GET /api/v1/medicalRecord/GetAttachmentsV2 #
GET /api/v1/medicalRecord/GetBase64AttachmentData #
GET /api/v1/medicalRecord/GetBase64AttachmentDataV2 #
GET /api/v1/medicalRecord/GetCodedRecord #
GET /api/v1/medicalRecord/GetConsultation #
GET /api/v1/medicalRecord/GetEvents #
GET /api/v1/medicalRecord/GetMedicalRecord #
GET /api/v1/medicalRecord/GetMedicationIssues #
PATCH /api/v1/medicalRecord/UpdateAttachment #
PATCH /api/v1/medicalRecord/UpdateConsultationVisibility #
POST /api/v1/medicalRecord/FileRecord #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/emis-health-medicalrecord-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

emis-health-medicalrecord-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Partner Medical Record API
  version: '1.2'
tags:
- name: medicalRecord
paths:
  /api/v1/medicalRecord/GetAttachments:
    get:
      tags:
      - medicalRecord
      description: This call returns an EMIS Open medical record message containing a list of attachments to that patient’s record.  To retrieve the attachment data, call GetAttachments, parse the list of attachments for file names, and call the GetBase64AttachmentData method for each attachment you wish to retrieve.
      operationId: GetAttachments
      parameters:
      - name: patientNumber
        in: query
        description: The numeric patient identifier
        required: true
        schema:
          type: integer
          format: int32
      - name: applicationId
        in: header
        description: The applicationId (aka party key) will be provided by your assurance lead
        required: true
        schema:
          type: string
      responses:
        '500':
          description: Internal error
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '400':
          description: Bad request - adjust URL or parameters
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '401':
          description: Authentication token not valid
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '404':
          description: Not found
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '415':
          description: Media type not valid for URL
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '200':
          description: The patient's attachments
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.EmisOpen.MedicalRecord38.MedicalRecordType'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.EmisOpen.MedicalRecord38.MedicalRecordType'
      security:
      - bearer: []
      - OAuth2CodeEMIS-X-GP-PAPI:
        - papi-cr.read
  /api/v1/medicalRecord/GetAttachmentsV2:
    get:
      tags:
      - medicalRecord
      description: This call returns an EMIS Open medical record message containing a list of attachments to that patient’s record.  To retrieve the attachment data, call GetAttachments, parse the list of attachments for file names, and call the GetBase64AttachmentData method for each attachment you wish to retrieve.
      operationId: GetAttachmentsV2
      parameters:
      - name: patientNumber
        in: query
        description: The numeric patient identifier
        required: true
        schema:
          type: integer
          format: int32
      - name: applicationId
        in: header
        description: The applicationId (aka party key) will be provided by your assurance lead
        required: true
        schema:
          type: string
      responses:
        '500':
          description: Internal error
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '400':
          description: Bad request - adjust URL or parameters
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '401':
          description: Authentication token not valid
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '404':
          description: Not found
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '415':
          description: Media type not valid for URL
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '200':
          description: The patient's attachments
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.EmisOpen.MedicalRecord38.MedicalRecordType'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.EmisOpen.MedicalRecord38.MedicalRecordType'
      security:
      - bearer: []
      - OAuth2CodeEMIS-X-GP-PAPI:
        - papi-cr.read
  /api/v1/medicalRecord/GetBase64AttachmentData:
    get:
      tags:
      - medicalRecord
      description: This function accepts a DDSIdentifier argument which uniquely identifies a specific attachment, even where attachments with duplicated names occur in the database. It returns the complete attached file in the body of the XML, encoded in Base-64 to allow it to be returned in XML format. The client application must decode the attachment from Base-64 in order to use it. The specification for base-64 encoding is readily available from usual reference sources. After decoding, the client application should handle the attachment appropriately, including ensuring proper disposal of the file when it is no longer needed
      operationId: GetBase64AttachmentData
      parameters:
      - name: documentId
        in: query
        required: true
        schema:
          type: string
          format: uuid
      - name: patientNumber
        in: query
        description: The numeric patient identifier
        required: true
        schema:
          type: integer
          format: int32
      - name: applicationId
        in: header
        description: The applicationId (aka party key) will be provided by your assurance lead
        required: true
        schema:
          type: string
      responses:
        '500':
          description: Internal error
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '400':
          description: Bad request - adjust URL or parameters
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '401':
          description: Authentication token not valid
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '404':
          description: Not found
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '415':
          description: Media type not valid for URL
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '200':
          description: Retrieves base 64 attachment details
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.EmisOpen.Base64AttachmentData.root'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.EmisOpen.Base64AttachmentData.root'
      security:
      - bearer: []
      - OAuth2CodeEMIS-X-GP-PAPI:
        - papi-cr.read
  /api/v1/medicalRecord/GetBase64AttachmentDataV2:
    get:
      tags:
      - medicalRecord
      description: 'V2: This function accepts a DDSIdentifier argument which uniquely identifies a specific attachment, even where attachments with duplicated names occur in the database. It returns the complete attached file in the body of the XML, encoded in Base-64 to allow it to be returned in XML format. The client application must decode the attachment from Base-64 in order to use it. The specification for base-64 encoding is readily available from usual reference sources. After decoding, the client application should handle the attachment appropriately, including ensuring proper disposal of the file when it is no longer needed. V2 includes additional fields: PatientNHS and OrganisationNACS'
      operationId: GetBase64AttachmentDataV2
      parameters:
      - name: documentId
        in: query
        required: true
        schema:
          type: string
          format: uuid
      - name: patientNumber
        in: query
        description: The numeric patient identifier
        required: true
        schema:
          type: integer
          format: int32
      - name: applicationId
        in: header
        description: The applicationId (aka party key) will be provided by your assurance lead
        required: true
        schema:
          type: string
      responses:
        '500':
          description: Internal error
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '400':
          description: Bad request - adjust URL or parameters
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '401':
          description: Authentication token not valid
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '404':
          description: Not found
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '415':
          description: Media type not valid for URL
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '200':
          description: Retrieves base 64 attachment details (V2)
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.EmisOpen.Base64AttachmentDataV2.root'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.EmisOpen.Base64AttachmentDataV2.root'
      security:
      - bearer: []
      - OAuth2CodeEMIS-X-GP-PAPI:
        - papi-cr.read
  /api/v1/medicalRecord/GetCodedRecord:
    get:
      tags:
      - medicalRecord
      description: This call returns a subset of the medical record which comprises only of the clinically coded items. It does not return Medication or registration information.
      operationId: GetCodedRecord
      parameters:
      - name: patientNumber
        in: query
        description: The numeric patient identifier
        required: true
        schema:
          type: integer
          format: int32
      - name: applicationId
        in: header
        description: The applicationId (aka party key) will be provided by your assurance lead
        required: true
        schema:
          type: string
      responses:
        '500':
          description: Internal error
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '400':
          description: Bad request - adjust URL or parameters
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '401':
          description: Authentication token not valid
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '404':
          description: Not found
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '415':
          description: Media type not valid for URL
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '200':
          description: The patient's coded record
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.EmisOpen.MedicalRecord38.MedicalRecordType'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.EmisOpen.MedicalRecord38.MedicalRecordType'
      security:
      - bearer: []
      - OAuth2CodeEMIS-X-GP-PAPI:
        - papi-cr.read
  /api/v1/medicalRecord/GetConsultation:
    get:
      tags:
      - medicalRecord
      description: This call returns a specific consultation record and any associated information. For instance, the location and users relating to the consultation content.
      operationId: GetConsultation
      parameters:
      - name: consultationGuid
        in: query
        required: true
        schema:
          type: string
          format: uuid
      - name: patientNumber
        in: query
        description: The numeric patient identifier
        required: true
        schema:
          type: integer
          format: int32
      - name: applicationId
        in: header
        description: The applicationId (aka party key) will be provided by your assurance lead
        required: true
        schema:
          type: string
      responses:
        '500':
          description: Internal error
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '400':
          description: Bad request - adjust URL or parameters
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '401':
          description: Authentication token not valid
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '404':
          description: Not found
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '415':
          description: Media type not valid for URL
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '200':
          description: The patient's consultation
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.EmisOpen.MedicalRecord38.MedicalRecordType'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.EmisOpen.MedicalRecord38.MedicalRecordType'
      security:
      - bearer: []
      - OAuth2CodeEMIS-X-GP-PAPI:
        - papi-cr.read
  /api/v1/medicalRecord/GetEvents:
    get:
      tags:
      - medicalRecord
      description: 'This call returns a subset of the medical record which comprises only the **coded clinical events** for the patient.


        Information is returned for the specified time period counting back from the current day, in **whole days**.


        This function executes significantly faster than `getMedicalRecord`, particularly for patients with large records.


        The returned XML will contain the following elements:


        - `EventList`

        - `PeopleList`


        Note: It does **not** contain **Medication** information.


        The call effectively *looks back* the number of days specified from today.'
      operationId: GetEvents
      parameters:
      - name: noOfDays
        in: query
        required: true
        schema:
          type: integer
          format: int32
      - name: patientNumber
        in: query
        description: The numeric patient identifier
        required: true
        schema:
          type: integer
          format: int32
      - name: applicationId
        in: header
        description: The applicationId (aka party key) will be provided by your assurance lead
        required: true
        schema:
          type: string
      responses:
        '500':
          description: Internal error
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '400':
          description: Bad request - adjust URL or parameters
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '401':
          description: Authentication token not valid
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '404':
          description: Not found
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '415':
          description: Media type not valid for URL
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '200':
          description: The patient's events
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.EmisOpen.MedicalRecord38.MedicalRecordType'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.EmisOpen.MedicalRecord38.MedicalRecordType'
      security:
      - bearer: []
      - OAuth2CodeEMIS-X-GP-PAPI:
        - papi-cr.read
  /api/v1/medicalRecord/GetMedicalRecord:
    get:
      tags:
      - medicalRecord
      description: This call returns a medical record for a specific patient number. Before using this call please consider what information you require from the patient record and see if any of the other available calls can give you the same information. This call can take a while to execute and will return a lot of information (>1Mb) in some cases. If you are only concerned with clinically coded information we would recommend using GetCodedRecord as an alternative.
      operationId: GetMedicalRecord
      parameters:
      - name: patientNumber
        in: query
        description: The numeric patient identifier
        required: true
        schema:
          type: integer
          format: int32
      - name: applicationId
        in: header
        description: The applicationId (aka party key) will be provided by your assurance lead
        required: true
        schema:
          type: string
      responses:
        '500':
          description: Internal error
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '400':
          description: Bad request - adjust URL or parameters
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '401':
          description: Authentication token not valid
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '404':
          description: Not found
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '415':
          description: Media type not valid for URL
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '200':
          description: The patient's medical record
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.EmisOpen.MedicalRecord38.MedicalRecordType'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.EmisOpen.MedicalRecord38.MedicalRecordType'
      security:
      - bearer: []
      - OAuth2CodeEMIS-X-GP-PAPI:
        - papi-cr.read
  /api/v1/medicalRecord/GetMedicationIssues:
    get:
      tags:
      - medicalRecord
      description: This call returns a list of issued medication. This call will execute significantly faster than getMedicalRecord, particularly for patients with large medical records.
      operationId: GetMedicationIssues
      parameters:
      - name: noOfDays
        in: query
        required: true
        schema:
          type: integer
          format: int32
      - name: patientNumber
        in: query
        description: The numeric patient identifier
        required: true
        schema:
          type: integer
          format: int32
      - name: applicationId
        in: header
        description: The applicationId (aka party key) will be provided by your assurance lead
        required: true
        schema:
          type: string
      responses:
        '500':
          description: Internal error
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '400':
          description: Bad request - adjust URL or parameters
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '401':
          description: Authentication token not valid
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '404':
          description: Not found
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '415':
          description: Media type not valid for URL
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '200':
          description: The patient's medication issues
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.EmisOpen.MedicalRecord38.MedicalRecordType'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.EmisOpen.MedicalRecord38.MedicalRecordType'
      security:
      - bearer: []
      - OAuth2CodeEMIS-X-GP-PAPI:
        - papi-cr.read
  /api/v1/medicalRecord/UpdateAttachment:
    patch:
      tags:
      - medicalRecord
      description: This function updates the pfs visible and provisional status of a specified attachment
      operationId: UpdateAttachment
      parameters:
      - name: attachmentGuid
        in: query
        description: The Attachment Guid (aka Document Guid) Identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: pfsVisibility
        in: query
        description: The Pfs visible status of the specified attachment. -1 = No Change,  0 = Not Visible, 1 = Visible
        required: true
        schema:
          $ref: '#/components/schemas/PartnerApi.Service.Contracts.Attachment.PfsVisibilityType'
      - name: provisional
        in: query
        description: The Provisional status of the specified attachment. -1 = No Change, 0 = Not Provisional, 1 = Provisional
        required: true
        schema:
          $ref: '#/components/schemas/PartnerApi.Service.Contracts.Attachment.ProvisionalType'
      - name: patientNumber
        in: query
        description: The numeric patient identifier
        required: true
        schema:
          type: integer
          format: int32
      - name: applicationId
        in: header
        description: The applicationId (aka party key) will be provided by your assurance lead
        required: true
        schema:
          type: string
      responses:
        '500':
          description: Internal error
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '400':
          description: Bad request - adjust URL or parameters
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '401':
          description: Authentication token not valid
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '404':
          description: Not found
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '415':
          description: Media type not valid for URL
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApi.Service.Model.ErrorResponse'
        '204':
          description: Updates the pfs vis

# --- truncated at 32 KB (137 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/emis-health/refs/heads/main/openapi/emis-health-medicalrecord-api-openapi.yml