Microsoft Azure Prescriptions API

The Prescriptions API from Microsoft Azure, for prescriptions.

GitHub OpenAPI

Operations 8

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /parties/{partyId}/prescriptions List a party's prescriptions · Microsoft Azure Get Parties Partyid Prescriptions #
Ask an LLM
“Which prescriptions belong to a specific farmer or party in Azure Data Manager for Agriculture?”
“Can I filter a party's prescriptions by product name or status?”
Tell an agent
List prescriptions for party {party}.
Show party {party}'s prescriptions for product {product} with status {status}.
GET /parties/{partyId}/prescriptions/{prescriptionId} Get a party's prescription · Microsoft Azure Get Parties Partyid Prescriptions Prescriptionid #
Ask an LLM
“What are the details of one prescription for a party?”
“Can I see a prescription's product and measurements?”
Tell an agent
Get prescription {prescription} for party {party}.
Show the product and measurements of prescription {prescription} under party {party}.
PATCH /parties/{partyId}/prescriptions/{prescriptionId} Create or update a prescription · Microsoft Azure Patch Parties Partyid Prescriptions Prescriptionid #
Ask an LLM
“How do I record a new fertilizer or seed prescription for a party?”
“Can I change the product on an existing prescription?”
Tell an agent
Create prescription {prescription} for party {party} with product {product}.
Update prescription {prescription} under party {party} to status {status}.
DELETE /parties/{partyId}/prescriptions/{prescriptionId} Delete a party's prescription · Microsoft Azure Delete Parties Partyid Prescriptions Prescriptionid #
Ask an LLM
“Can I delete a single prescription under a party?”
“How do I remove one prescription without a cascade job?”
Tell an agent destructive · confirm first
Delete prescription {prescription} for party {party}.
Remove party {party}'s prescription {prescription}.
GET /prescriptions List prescriptions across all parties · Microsoft Azure Get Prescriptions #
Ask an LLM
“Can I see every prescription across all parties at once?”
“Which prescriptions were created in a date range, regardless of party?”
Tell an agent
List prescriptions across all parties.
Show all parties' prescriptions created after {min}.
GET /prescriptions/cascade-delete/{jobId} Get a prescription cascade delete job · Microsoft Azure Get Prescriptions Cascade Delete Jobid #
Ask an LLM
“Has my prescription cascade delete job finished?”
“How do I check on a cascade delete of a prescription?”
Tell an agent
Get prescription cascade delete job {job}.
Show the status of prescription deletion job {job}.
PUT /prescriptions/cascade-delete/{jobId} Cascade delete a prescription · Microsoft Azure Put Prescriptions Cascade Delete Jobid #
Ask an LLM
“How do I delete a prescription and everything that depends on it?”
“Can I run a cascade delete for one party's prescription as a job?”
Tell an agent destructive · confirm first
Start cascade delete job {job} for prescription {prescription} of party {party}.
Cascade delete prescription {prescription} under party {party} as job {job}.
POST /prescription:search Search prescriptions by geometry · Microsoft Azure Post Prescription:search #
Ask an LLM
“Which prescriptions intersect a particular field boundary?”
“Can I search prescriptions by a GeoJSON area?”
Tell an agent
Search prescriptions intersecting geometry {geometry}.
Find party {party}'s prescriptions that overlap {geometry}.

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/microsoft-azure:microsoft-azure-prescriptions-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

microsoft-azure-prescriptions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure Azure AgFoodPlatform Data Plane Service…
  description: APIs documentation for Azure AgPlatform DataPlane Service.
  version: 2022-11-01-preview
security:
- Bearer: []
tags:
- name: Prescriptions
paths:
  /parties/{partyId}/prescriptions:
    get:
      tags:
      - Prescriptions
      description: Returns a paginated list of prescription resources under a particular party.
      operationId: microsoftAzurePrescriptionsListbypartyid
      parameters:
      - in: path
        name: partyId
        description: Id of the associated party.
        required: true
        schema:
          type: string
      - in: query
        name: prescriptionMapIds
        description: Prescription Map Ids of the resource.
        style: form
        explode: true
        schema:
          type: array
          items:
            type: string
      - in: query
        name: types
        description: Types of the resource.
        style: form
        explode: true
        schema:
          type: array
          items:
            type: string
      - in: query
        name: productCodes
        description: Product Codes of the resource.
        style: form
        explode: true
        schema:
          type: array
          items:
            type: string
      - in: query
        name: productNames
        description: Product Names of the resource.
        style: form
        explode: true
        schema:
          type: array
          items:
            type: string
      - in: query
        name: sources
        description: Sources for the resource.
        style: form
        explode: true
        schema:
          type: array
          items:
            type: string
      - in: query
        name: ids
        description: Ids of the resource.
        style: form
        explode: true
        schema:
          type: array
          items:
            type: string
      - in: query
        name: names
        description: Names of the resource.
        style: form
        explode: true
        schema:
          type: array
          items:
            type: string
      - in: query
        name: propertyFilters
        description: 'Filters on key-value pairs within the Properties object.

          eg. "{testKey} eq {testValue}".'
        style: form
        explode: true
        schema:
          type: array
          items:
            type: string
      - in: query
        name: statuses
        description: Statuses of the resource.
        style: form
        explode: true
        schema:
          type: array
          items:
            type: string
      - in: query
        name: minCreatedDateTime
        description: Minimum creation date of resource (inclusive).
        schema:
          type: string
          format: date-time
      - in: query
        name: maxCreatedDateTime
        description: Maximum creation date of resource (inclusive).
        schema:
          type: string
          format: date-time
      - in: query
        name: minLastModifiedDateTime
        description: Minimum last modified date of resource (inclusive).
        schema:
          type: string
          format: date-time
      - in: query
        name: maxLastModifiedDateTime
        description: Maximum last modified date of resource (inclusive).
        schema:
          type: string
          format: date-time
      - in: query
        name: maxPageSize
        description: 'Maximum number of items needed (inclusive).

          Minimum = 10, Maximum = 1000, Default value = 50.'
        schema:
          type: integer
          format: int32
          default: 50
          maximum: 1000
          minimum: 10
      - in: query
        name: skipToken
        description: Skip token for getting next set of results.
        schema:
          type: string
      - in: query
        name: api-version
        description: The requested API version
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PrescriptionListResponse'
        default:
          description: Error
          headers:
            x-ms-error-code:
              x-ms-client-name: ErrorCode
              schema:
                type: string
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
      x-ms-examples:
        Prescriptions_ListByPartyId:
          $ref: ./examples/Prescriptions_ListByPartyId.json
      summary: Microsoft Azure Get Parties Partyid Prescriptions
  /parties/{partyId}/prescriptions/{prescriptionId}:
    get:
      tags:
      - Prescriptions
      description: Gets a specified prescription resource under a particular party.
      operationId: microsoftAzurePrescriptionsGet
      parameters:
      - in: path
        name: partyId
        description: Id of the associated party.
        required: true
        schema:
          type: string
      - in: path
        name: prescriptionId
        description: Id of the prescription.
        required: true
        schema:
          type: string
      - in: query
        name: api-version
        description: The requested API version
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Prescription'
        default:
          description: Error
          headers:
            x-ms-error-code:
              x-ms-client-name: ErrorCode
              schema:
                type: string
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-examples:
        Prescriptions_Get:
          $ref: ./examples/Prescriptions_Get.json
      summary: Microsoft Azure Get Parties Partyid Prescriptions Prescriptionid
    patch:
      tags:
      - Prescriptions
      description: Creates or Updates a prescription resource under a particular party.
      operationId: microsoftAzurePrescriptionsCreateorupdate
      parameters:
      - in: path
        name: partyId
        description: Id of the associated party resource.
        required: true
        schema:
          type: string
      - in: path
        name: prescriptionId
        description: Id of the prescription resource.
        required: true
        schema:
          type: string
      - in: query
        name: api-version
        description: The requested API version
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Prescription'
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Prescription'
        default:
          description: Error
          headers:
            x-ms-error-code:
              x-ms-client-name: ErrorCode
              schema:
                type: string
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-examples:
        Prescriptions_CreateOrUpdate:
          $ref: ./examples/Prescriptions_CreateOrUpdate.json
      summary: Microsoft Azure Patch Parties Partyid Prescriptions Prescriptionid
      requestBody:
        content:
          application/merge-patch+json:
            schema:
              $ref: '#/components/schemas/Prescription'
        description: Prescription resource payload to create or update.
        required: true
    delete:
      tags:
      - Prescriptions
      description: Deletes a specified prescription resource under a particular party.
      operationId: microsoftAzurePrescriptionsDelete
      parameters:
      - in: path
        name: partyId
        description: Id of the party.
        required: true
        schema:
          type: string
      - in: path
        name: prescriptionId
        description: Id of the prescription.
        required: true
        schema:
          type: string
      - in: query
        name: api-version
        description: The requested API version
        required: true
        schema:
          type: string
      responses:
        '204':
          description: No Content
        default:
          description: Error
          headers:
            x-ms-error-code:
              x-ms-client-name: ErrorCode
              schema:
                type: string
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-examples:
        Prescriptions_Delete:
          $ref: ./examples/Prescriptions_Delete.json
      summary: Microsoft Azure Delete Parties Partyid Prescriptions Prescriptionid
  /prescriptions:
    get:
      tags:
      - Prescriptions
      description: Returns a paginated list of prescription resources across all parties.
      operationId: microsoftAzurePrescriptionsList
      parameters:
      - in: query
        name: prescriptionMapIds
        description: Prescription Map Ids of the resource.
        style: form
        explode: true
        schema:
          type: array
          items:
            type: string
      - in: query
        name: types
        description: Types of the resource.
        style: form
        explode: true
        schema:
          type: array
          items:
            type: string
      - in: query
        name: productCodes
        description: Product Codes of the resource.
        style: form
        explode: true
        schema:
          type: array
          items:
            type: string
      - in: query
        name: productNames
        description: Product Names of the resource.
        style: form
        explode: true
        schema:
          type: array
          items:
            type: string
      - in: query
        name: sources
        description: Sources for the resource.
        style: form
        explode: true
        schema:
          type: array
          items:
            type: string
      - in: query
        name: ids
        description: Ids of the resource.
        style: form
        explode: true
        schema:
          type: array
          items:
            type: string
      - in: query
        name: names
        description: Names of the resource.
        style: form
        explode: true
        schema:
          type: array
          items:
            type: string
      - in: query
        name: propertyFilters
        description: 'Filters on key-value pairs within the Properties object.

          eg. "{testKey} eq {testValue}".'
        style: form
        explode: true
        schema:
          type: array
          items:
            type: string
      - in: query
        name: statuses
        description: Statuses of the resource.
        style: form
        explode: true
        schema:
          type: array
          items:
            type: string
      - in: query
        name: minCreatedDateTime
        description: Minimum creation date of resource (inclusive).
        schema:
          type: string
          format: date-time
      - in: query
        name: maxCreatedDateTime
        description: Maximum creation date of resource (inclusive).
        schema:
          type: string
          format: date-time
      - in: query
        name: minLastModifiedDateTime
        description: Minimum last modified date of resource (inclusive).
        schema:
          type: string
          format: date-time
      - in: query
        name: maxLastModifiedDateTime
        description: Maximum last modified date of resource (inclusive).
        schema:
          type: string
          format: date-time
      - in: query
        name: maxPageSize
        description: 'Maximum number of items needed (inclusive).

          Minimum = 10, Maximum = 1000, Default value = 50.'
        schema:
          type: integer
          format: int32
          default: 50
          maximum: 1000
          minimum: 10
      - in: query
        name: skipToken
        description: Skip token for getting next set of results.
        schema:
          type: string
      - in: query
        name: api-version
        description: The requested API version
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PrescriptionListResponse'
        default:
          description: Error
          headers:
            x-ms-error-code:
              x-ms-client-name: ErrorCode
              schema:
                type: string
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
      x-ms-examples:
        Prescriptions_List:
          $ref: ./examples/Prescriptions_List.json
      summary: Microsoft Azure Get Prescriptions
  /prescriptions/cascade-delete/{jobId}:
    get:
      tags:
      - Prescriptions
      description: Get a cascade delete job for specified prescription.
      operationId: microsoftAzurePrescriptionsGetcascadedeletejobdetails
      parameters:
      - in: path
        name: jobId
        description: Id of the job.
        required: true
        schema:
          type: string
      - in: query
        name: api-version
        description: The requested API version
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CascadeDeleteJob'
        default:
          description: Error
          headers:
            x-ms-error-code:
              x-ms-client-name: ErrorCode
              schema:
                type: string
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-examples:
        Prescriptions_GetCascadeDeleteJobDetails:
          $ref: ./examples/Prescriptions_GetCascadeDeleteJobDetails.json
      summary: Microsoft Azure Get Prescriptions Cascade Delete Jobid
    put:
      tags:
      - Prescriptions
      description: Create a cascade delete job for specified prescription.
      operationId: microsoftAzurePrescriptionsCreatecascadedeletejob
      parameters:
      - in: path
        name: jobId
        description: Job ID supplied by end user.
        required: true
        schema:
          type: string
      - in: query
        name: partyId
        description: ID of the associated party.
        required: true
        schema:
          type: string
      - in: query
        name: prescriptionId
        description: ID of the prescription to be deleted.
        required: true
        schema:
          type: string
      - in: query
        name: api-version
        description: The requested API version
        required: true
        schema:
          type: string
      responses:
        '202':
          description: Accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CascadeDeleteJob'
        default:
          description: Error
          headers:
            x-ms-error-code:
              x-ms-client-name: ErrorCode
              schema:
                type: string
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-long-running-operation: true
      x-ms-long-running-operation-options:
        final-state-via: location
      x-ms-examples:
        Prescriptions_CreateCascadeDeleteJob:
          $ref: ./examples/Prescriptions_CreateCascadeDeleteJob.json
      summary: Microsoft Azure Put Prescriptions Cascade Delete Jobid
  /prescription:search:
    post:
      tags:
      - Prescriptions
      description: Search for Prescriptions across all parties by intersecting geometry.
      operationId: microsoftAzurePrescriptionsSearch
      parameters:
      - in: query
        name: skipToken
        description: Skip token for getting next set of results.
        schema:
          type: string
      - in: query
        name: maxPageSize
        description: Maximum number of items needed (inclusive). Minimum = 10, Maximum = 1000, Default Value = 50.
        schema:
          type: integer
          format: int32
          default: 50
          maximum: 1000
          minimum: 10
      - in: query
        name: api-version
        description: The requested API version
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PrescriptionMetaDataListResponse'
        default:
          description: Error
          headers:
            x-ms-error-code:
              x-ms-client-name: ErrorCode
              schema:
                type: string
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-examples:
        Prescriptions_Search:
          $ref: ./examples/Prescriptions_Search.json
      summary: Microsoft Azure Post Prescription:search
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchPrescriptionQuery'
        description: Query filters.
        required: true
components:
  schemas:
    CascadeDeleteJob:
      description: Schema of cascade delete job.
      required:
      - partyId
      - resourceId
      - resourceType
      type: object
      properties:
        partyId:
          description: Party Id.
          minLength: 1
          type: string
        resourceId:
          description: The id of the resource.
          minLength: 1
          type: string
        resourceType:
          description: The type of the resource.
          minLength: 1
          type: string
        id:
          description: Unique job id.
          type: string
          readOnly: true
        status:
          description: 'Status of the job.

            Possible values: ''Waiting'', ''Running'', ''Succeeded'', ''Failed'', ''Cancelled''.'
          enum:
          - Waiting
          - Running
          - Succeeded
          - Failed
          - Cancelled
          type: string
          readOnly: true
          x-ms-enum:
            name: JobStatus
            modelAsString: true
        durationInSeconds:
          format: double
          description: Duration of the job in seconds.
          type: number
          readOnly: true
        message:
          description: Status message to capture more details of the job.
          type: string
          readOnly: true
        errorCode:
          description: Error Code when job failed.
          type: string
          readOnly: true
        createdDateTime:
          format: date-time
          description: 'Job created at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ.'
          type: string
          readOnly: true
        lastActionDateTime:
          format: date-time
          description: 'Job was last acted upon at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ.'
          type: string
          readOnly: true
        startTime:
          format: date-time
          description: 'Job start time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ.'
          type: string
          readOnly: true
        endTime:
          format: date-time
          description: 'Job end time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ.'
          type: string
          readOnly: true
    InnerError:
      description: Inner error containing list of errors.See https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#innererror--object for InnerError reference document.
      type: object
      properties:
        code:
          description: Specific error code than was provided by the containing error.
          type: string
        innererror:
          $ref: '#/components/schemas/InnerError'
    ErrorResponse:
      description: An error response from the Azure AgPlatform service. See https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses for ErrorResponse reference document.
      type: object
      properties:
        error:
          $ref: '#/components/schemas/Error'
        traceId:
          description: Unique trace Id.
          type: string
    Error:
      description: An error from the Azure AgPlatform service.
      required:
      - code
      - message
      type: object
      properties:
        code:
          description: Server-defined set of error codes.
          minLength: 1
          type: string
        message:
          description: Human-readable representation of the error.
          minLength: 1
          type: string
        target:
          description: Target of the error.
          type: string
        details:
          description: Array of details about specific errors that led to this reported error.
          type: array
          items:
            $ref: '#/components/schemas/Error'
        innererror:
          $ref: '#/components/schemas/InnerError'
    Prescription:
      description: Api Model for Prescription object.
      type: object
      properties:
        partyId:
          description: Party Id.
          type: string
          readOnly: true
        prescriptionMapId:
          description: Prescription map Id.
          type: string
        productCode:
          description: Product Code.
          maxLength: 100
          minLength: 0
          type: string
        productName:
          description: Product name.
          maxLength: 100
          minLength: 0
          type: string
        type:
          description: Prescription type.
          maxLength: 100
          minLength: 0
          type: string
        measurements:
          description: Measures.
          type: object
          additionalProperties:
            $ref: '#/components/schemas/Measure'
        id:
          description: Unique resource ID.
          type: string
          readOnly: true
        eTag:
          description: The ETag value to implement optimistic concurrency.
          type: string
          readOnly: true
        status:
          description: Status of the resource.
          maxLength: 100
          minLength: 0
          type: string
        createdDateTime:
          format: date-time
          description: 'Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.'
          type: string
          readOnly: true
          example: '2020-12-31T11:10:21Z'
        modifiedDateTime:
          format: date-time
          description: 'Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.'
          type: string
          readOnly: true
          example: '2020-12-31T11:10:21Z'
        source:
          description: Source of the resource.
          maxLength: 100
          minLength: 2
          type: string
        name:
          description: Name to identify resource.
          maxLength: 100
          minLength: 0
          type: string
        description:
          description: Textual description of the resource.
          maxLength: 500
          minLength: 0
          type: string
        createdBy:
          description: Created by user/tenant id.
          type: string
          readOnly: true
        modifiedBy:
          description: Modified by user/tenant id.
          type: string
          readOnly: true
        properties:
          description: 'A collection of key value pairs that belongs to the resource.

            Each pair must not have a key greater than 50 characters

            and must not have a value greater than 150 characters.

            Note: A maximum of 25 key value pairs can be provided for a resource and only string,

            numeral and datetime (yyyy-MM-ddTHH:mm:ssZ) values are supported.'
          type: object
          additionalProperties: {}
          example:
            key1: value1
            key2: 123.45
    PrescriptionListResponse:
      description: Paged response contains list of requested objects and a URL link to get the next set of results.
      required:
      - value
      type: object
      properties:
        value:
          description: List of requested objects.
          type: array
          items:
            $ref: '#/components/schemas/Prescription'
        skipToken:
          description: Token used in retrieving the next page. If null, there are no additional pages.
          type: string
        nextLink:
          description: Continuation link (absolute URI) to the next page of results in the list.
          type: string
    Measure:
      description: Schema for storing measurement reading and unit.
      type: object
      properties:
        unit:
          description: Data unit.
          maxLength: 50
          minLength: 1
          type: string
        value:
          format: double
          description: Data value.
          type: number
    PrescriptionMetaDataListResponse:
      description: Paged response contains list of requested objects and a skipToken to get the next set of results.
      required:
      - value
      type: object
      properties:
        value:
          description: List of requested objects.
          type: array
          items:
            $ref: '#/components/schemas/PrescriptionMetaData'
        skipToken:
          description: Token used in retrieving the next page. If null, there are no additional pages.
          type: string
        nextLink:
          description: Continuation link (absolute URI) to the next page of results in the list.
          type: string
    GeoJsonObjectType:
      description: GeoJSON object type.
      enum:
      - Point
      - Polygon
      - MultiPolygon
      type: string
      x-ms-enum:
        name: GeoJsonObjectType
        modelAsString: true
    PrescriptionMetaData:
      description: Api Model for Prescription object.
      type: object
      properties:
        partyId:
          description: Party Id.
          type: string
          readOnly: true
        prescriptionMapId:
          description: Prescription map Id.
          type: string
        productCode:
          description: Product Code.
          maxLength: 100
          minLength: 0
          type: string
        productName:
          description: Product name.
          maxLength: 100
          minLength: 0
          type: string
        type:
          description: Prescription type.
          maxLength: 100
          minLength: 0
          type: string
        measurements:
          description: Measures.
          type: object
          additionalProperties:
            $ref: '#/components/schemas/Measure'
        id:
          description: Unique resource ID.
          type: string
          readOnly: true
        eTag:
          description: The ETag value to implement optimistic concurrency.
          type: string
          readOnly: true
        status:
          description: Status of the resource.
          maxLength: 100
          minLength: 0
          type: string
        createdDateTime:
          format: date-time
          description: 'Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.'
          type: string
          readOnly: true
          example: '2020-12-31T11:10:21Z'
        modifiedDateTime:
          format: date-time
          description: 'Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.'
          type: string
          readOnly: true
          example: '2020-12-31T11:10:21Z'
        source:
          description: Source of the resource.
          maxLength: 100
          minLength: 2
          type: string
        name:
          description: Name to identify resource.
          maxLength: 100
          minLength: 0
          type: string
        description:
          description: Textual description of the resource.
          maxLength: 500
          minLength: 0
          type: string
        createdBy:
          description: Created by user/tenant id.
          type: string
          readOnly: true
        modifiedBy:
          description: Modified by user/tenant id.
          type: string
          readOnly: true
        properties:
          description: 'A collection of key value pairs that belongs to the resource.

            Each pair must not have a key greater than 50 characters

            and must not have a value greater than 150 characters.

            Note: A maximum of 25 key value pairs can be provided for a resource and only string,

            numeral and datetime (yyyy-MM-ddTHH:mm:ssZ) values are supported.'
          type: object
          additionalProperties: {}
          example:
            key1: value1
            key2: 123.45
    GeoJsonObject:
      description: 'GeoJSON (For more details: https://geojson.org/). Note: Coordinates are expected in [Longitude, Latitude] format.'
      required:
      - type
      type: object
      properties:
        type:
          $ref: '#/components/schemas/GeoJsonObjectType'
      discriminator:
        propertyName: type
    SearchPrescriptionQuery:
      description: Get Zones query parameters.
      type: object
      properties:
        prescriptionMapIds:
          description: Prescription Map Ids of the resource.
          type: array
          items:
            type: string
        types:
          description: Types of the resource.
          type: array
          items:
            type: string
        productCodes:
          description: Product Codes of the resource.
          type: array
          items:
            type: string
        productNames:
          description: Product Names of the resource.
          type: array
          items:
            type: string
        sources:
          description: Sources of the resource.
          type: array
          items:
            type: string
        ids:
          description: Ids of the resource.
          type: array
          items:
            type: string
        names:
          description: Names of the resource.
          type: array
          items:
            type: string
        propertyFilters:
          description: 'Filters on key-value pairs within the Properties object.

            e.g. "{testKey} eq {testValue}".'
          type: array
          items:
            type: string
        statuses:
          description: Statuses of the resource.
          type: array
          items:
            type: string
        minCreatedDateTime:
          format: date-time
          description: Minimum creation date of resource (inclusive).
          type: string
        maxCreatedDateTime:
          format: date-time
          description: Maximum creation date of resource (inclusive).
          type: string
        minLastModifiedDateTime:
          format: date-time
          description: Minimum last modified date of resource (inclusive).
          type: string
        maxLastModifiedDateTime:
          format: date-time
          description: Maximum last modified date of resource (inclusive).
          type: string
        intersectsWithGeometry:
          $ref: '#/components/schemas/GeoJsonObject'
        partyId:
          description: Party ID which belongs to the operation data.
          type: string
  securitySchemes:
    Bearer:
      type: apiKey
      name: Authorization
      in: header
      description: Please provide a valid bearer token for authorized API calls. Note that you might need to clear your browser cache if you tried un-authenticated calls before.