openapi: 3.2.0 info: title: AmeriHealth Caritas Medication Request API contact: {} version: 1.0.0 description: The MedicationRequest FHIR resource type servers: - url: https://api-ext.amerihealthcaritas.com/0500/patient-api description: AmeriHealth Caritas security: - openId: - openid - fhirUser tags: - name: Medication Request description: The MedicationRequest FHIR resource type paths: /MedicationRequest/{id}: get: tags: - Medication Request summary: 'read-instance: Read MedicationRequest instance' parameters: - name: id in: path description: The resource ID required: true style: simple schema: minimum: 1 type: string example: '123' responses: '200': description: Success content: application/fhir+json: schema: $ref: '#/components/schemas/FHIR-JSON-RESOURCE' application/fhir+xml: schema: $ref: '#/components/schemas/FHIR-XML-RESOURCE' operationId: getMedicationRequestById x-operation-id-source: derived put: tags: - Medication Request summary: 'update-instance: Update an existing MedicationRequest instance, or create using…' parameters: - name: id in: path description: The resource ID required: true style: simple schema: minimum: 1 type: string example: '123' requestBody: content: application/fhir+json: schema: $ref: '#/components/schemas/FHIR-JSON-RESOURCE' example: "{\n \"resourceType\": \"MedicationRequest\"\n}" application/fhir+xml: schema: $ref: '#/components/schemas/FHIR-XML-RESOURCE' example: responses: '200': description: Success content: application/fhir+json: schema: $ref: '#/components/schemas/FHIR-JSON-RESOURCE' application/fhir+xml: schema: $ref: '#/components/schemas/FHIR-XML-RESOURCE' operationId: putMedicationRequestById x-operation-id-source: derived delete: tags: - Medication Request summary: 'instance-delete: Perform a logical delete on a resource instance' parameters: - name: id in: path description: The resource ID required: true style: simple schema: minimum: 1 type: string example: '123' responses: '200': description: Success content: application/fhir+json: schema: $ref: '#/components/schemas/FHIR-JSON-RESOURCE' application/fhir+xml: schema: $ref: '#/components/schemas/FHIR-XML-RESOURCE' operationId: deleteMedicationRequestById x-operation-id-source: derived patch: tags: - Medication Request summary: 'instance-patch: Patch a resource instance of type MedicationRequest by ID' parameters: - name: id in: path description: The resource ID required: true style: simple schema: minimum: 1 type: string example: '123' requestBody: content: application/fhir+json: schema: $ref: '#/components/schemas/FHIR-JSON-RESOURCE' example: "{\n \"resourceType\": \"Parameters\",\n \"parameter\": [ {\n \"name\": \"operation\",\n \"part\": [ {\n \"name\": \"type\",\n \"valueString\": \"add\"\n }, {\n \"name\": \"path\",\n \"valueString\": \"Patient\"\n }, {\n \"name\": \"name\",\n \"valueString\": \"birthDate\"\n }, {\n \"name\": \"value\",\n \"valueDate\": \"1930-01-01\"\n } ]\n } ]\n}" application/fhir+xml: schema: $ref: '#/components/schemas/FHIR-XML-RESOURCE' example: "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n" responses: '200': description: Success content: application/fhir+json: schema: $ref: '#/components/schemas/FHIR-JSON-RESOURCE' application/fhir+xml: schema: $ref: '#/components/schemas/FHIR-XML-RESOURCE' operationId: patchMedicationRequestById x-operation-id-source: derived /MedicationRequest/{id}/_history/{version_id}: get: tags: - Medication Request summary: 'vread-instance: Read MedicationRequest instance with specific version' parameters: - name: id in: path description: The resource ID required: true style: simple schema: minimum: 1 type: string example: '123' - name: version_id in: path description: The resource version ID required: true style: simple schema: minimum: 1 type: string example: '1' responses: '200': description: Success content: application/fhir+json: schema: $ref: '#/components/schemas/FHIR-JSON-RESOURCE' application/fhir+xml: schema: $ref: '#/components/schemas/FHIR-XML-RESOURCE' operationId: getMedicationRequestByIdHistoryByVersionId x-operation-id-source: derived /MedicationRequest: get: tags: - Medication Request summary: 'search-type: Search for MedicationRequest instances' description: This is a search type parameters: - name: date in: query description: Returns medication request to be administered on a specific date style: simple - name: authoredon in: query description: Return prescriptions written on this date style: simple - name: code in: query description: Return prescriptions of this medication code style: simple - name: subject in: query description: The identity of a patient to list orders for style: simple - name: resource-placeholder in: query description: Search for resources of type [MedicationRequest] populated with the resource-placeholder extension style: simple - name: _lastUpdated in: query description: Only return resources which were last updated as specified by the given range style: simple - name: intended-performer in: query description: Returns the intended performer of the administration of the medication request style: simple - name: patient in: query description: Returns prescriptions for a specific patient style: simple - name: intended-performertype in: query description: Returns requests for a specific type of performer style: simple - name: requester in: query description: Returns prescriptions prescribed by this prescriber style: simple - name: identifier in: query description: Return prescriptions with this external identifier style: simple - name: intended-dispenser in: query description: Returns prescriptions intended to be dispensed by this Organization style: simple - name: _security in: query description: Search for resources which have the given security labels style: simple - name: medication in: query description: Return prescriptions for this medication reference style: simple - name: encounter in: query description: Return prescriptions with this encounter identifier style: simple - name: priority in: query description: Returns prescriptions with different priorities style: simple - name: intent in: query description: Returns prescriptions with different intents style: simple - name: _profile in: query description: Search for resources which have the given profile style: simple - name: _has in: query description: Return resources linked to by the given target style: simple - name: _tag in: query description: Search for resources which have the given tag style: simple - name: _source in: query description: Search for resources which have the given source value (Resource.meta.source) style: simple - name: _id in: query description: The ID of the resource style: simple - name: category in: query description: Returns prescriptions with different categories style: simple - name: _content in: query description: Search the contents of the resource's data using a fulltext search style: simple - name: _text in: query description: Search the contents of the resource's narrative using a fulltext search style: simple - name: status in: query description: Status of the prescription style: simple responses: '200': description: Success content: application/fhir+json: schema: $ref: '#/components/schemas/FHIR-JSON-RESOURCE' application/fhir+xml: schema: $ref: '#/components/schemas/FHIR-XML-RESOURCE' operationId: getMedicationRequest x-operation-id-source: derived post: tags: - Medication Request summary: 'create-type: Create a new MedicationRequest instance' requestBody: content: application/fhir+json: schema: $ref: '#/components/schemas/FHIR-JSON-RESOURCE' example: "{\n \"resourceType\": \"MedicationRequest\"\n}" application/fhir+xml: schema: $ref: '#/components/schemas/FHIR-XML-RESOURCE' example: responses: '200': description: Success content: application/fhir+json: schema: $ref: '#/components/schemas/FHIR-JSON-RESOURCE' application/fhir+xml: schema: $ref: '#/components/schemas/FHIR-XML-RESOURCE' operationId: postMedicationRequest x-operation-id-source: derived /MedicationRequest/_history: get: tags: - Medication Request summary: 'type-history: Fetch the resource change history for all resources of type…' responses: '200': description: Success content: application/fhir+json: schema: $ref: '#/components/schemas/FHIR-JSON-RESOURCE' application/fhir+xml: schema: $ref: '#/components/schemas/FHIR-XML-RESOURCE' operationId: getMedicationRequestHistory x-operation-id-source: derived /MedicationRequest/{id}/_history: get: tags: - Medication Request summary: 'instance-history: Fetch the resource change history for all resources of type…' parameters: - name: id in: path description: The resource ID required: true style: simple schema: minimum: 1 type: string example: '123' responses: '200': description: Success content: application/fhir+json: schema: $ref: '#/components/schemas/FHIR-JSON-RESOURCE' application/fhir+xml: schema: $ref: '#/components/schemas/FHIR-XML-RESOURCE' operationId: getMedicationRequestByIdHistory x-operation-id-source: derived /MedicationRequest/$validate: get: tags: - Medication Request parameters: - name: resource in: query required: false style: simple - name: mode in: query required: false style: simple - name: profile in: query required: false style: simple responses: '200': description: Success content: application/fhir+json: schema: $ref: '#/components/schemas/FHIR-JSON-RESOURCE' application/fhir+xml: schema: $ref: '#/components/schemas/FHIR-XML-RESOURCE' summary: Get medication request $validate x-summary-source: derived operationId: getMedicationRequest$validate x-operation-id-source: derived /MedicationRequest/{id}/$validate: get: tags: - Medication Request parameters: - name: id in: path description: The resource ID required: true style: simple schema: minimum: 1 type: string example: '123' - name: resource in: query required: false style: simple - name: mode in: query required: false style: simple - name: profile in: query required: false style: simple responses: '200': description: Success content: application/fhir+json: schema: $ref: '#/components/schemas/FHIR-JSON-RESOURCE' application/fhir+xml: schema: $ref: '#/components/schemas/FHIR-XML-RESOURCE' summary: Get medication request by id $validate x-summary-source: derived operationId: getMedicationRequestById$validate x-operation-id-source: derived /MedicationRequest/{id}/$meta-delete: post: tags: - Medication Request description: Delete tags, profiles, and/or security labels from a resource parameters: - name: id in: path description: The resource ID required: true style: simple schema: minimum: 1 type: string example: '123' requestBody: content: application/fhir+json: schema: title: FHIR Resource type: object example: "{\n \"resourceType\": \"Parameters\",\n \"parameter\": [ {\n \"name\": \"meta\"\n }, {\n \"name\": \"return\"\n } ]\n}" responses: '200': description: Success content: application/fhir+json: schema: $ref: '#/components/schemas/FHIR-JSON-RESOURCE' application/fhir+xml: schema: $ref: '#/components/schemas/FHIR-XML-RESOURCE' summary: Create medication request by id $meta delete x-summary-source: derived operationId: postMedicationRequestById$metaDelete x-operation-id-source: derived /MedicationRequest/{id}/$meta-add: post: tags: - Medication Request description: Add tags, profiles, and/or security labels to a resource parameters: - name: id in: path description: The resource ID required: true style: simple schema: minimum: 1 type: string example: '123' requestBody: content: application/fhir+json: schema: title: FHIR Resource type: object example: "{\n \"resourceType\": \"Parameters\",\n \"parameter\": [ {\n \"name\": \"meta\"\n }, {\n \"name\": \"return\"\n } ]\n}" responses: '200': description: Success content: application/fhir+json: schema: $ref: '#/components/schemas/FHIR-JSON-RESOURCE' application/fhir+xml: schema: $ref: '#/components/schemas/FHIR-XML-RESOURCE' summary: Create medication request by id $meta add x-summary-source: derived operationId: postMedicationRequestById$metaAdd x-operation-id-source: derived /MedicationRequest/$meta: get: tags: - Medication Request description: Request a list of tags, profiles, and security labels for a specfic resource instance parameters: - name: return in: query required: false style: simple responses: '200': description: Success content: application/fhir+json: schema: $ref: '#/components/schemas/FHIR-JSON-RESOURCE' application/fhir+xml: schema: $ref: '#/components/schemas/FHIR-XML-RESOURCE' summary: Get medication request $meta x-summary-source: derived operationId: getMedicationRequest$meta x-operation-id-source: derived /MedicationRequest/{id}/$meta: get: tags: - Medication Request description: Request a list of tags, profiles, and security labels for a specfic resource instance parameters: - name: id in: path description: The resource ID required: true style: simple schema: minimum: 1 type: string example: '123' - name: return in: query required: false style: simple responses: '200': description: Success content: application/fhir+json: schema: $ref: '#/components/schemas/FHIR-JSON-RESOURCE' application/fhir+xml: schema: $ref: '#/components/schemas/FHIR-XML-RESOURCE' summary: Get medication request by id $meta x-summary-source: derived operationId: getMedicationRequestById$meta x-operation-id-source: derived /MedicationRequest/$expunge: post: tags: - Medication Request requestBody: content: application/fhir+json: schema: title: FHIR Resource type: object example: "{\n \"resourceType\": \"Parameters\",\n \"parameter\": [ {\n \"name\": \"limit\",\n \"valueInteger\": 0\n }, {\n \"name\": \"expungeDeletedResources\",\n \"valueBoolean\": false\n }, {\n \"name\": \"expungePreviousVersions\",\n \"valueBoolean\": false\n }, {\n \"name\": \"expungeEverything\",\n \"valueBoolean\": false\n }, {\n \"name\": \"count\"\n } ]\n}" responses: '200': description: Success content: application/fhir+json: schema: $ref: '#/components/schemas/FHIR-JSON-RESOURCE' application/fhir+xml: schema: $ref: '#/components/schemas/FHIR-XML-RESOURCE' summary: Create medication request $expunge x-summary-source: derived operationId: postMedicationRequest$expunge x-operation-id-source: derived /MedicationRequest/{id}/$expunge: post: tags: - Medication Request parameters: - name: id in: path description: The resource ID required: true style: simple schema: minimum: 1 type: string example: '123' requestBody: content: application/fhir+json: schema: title: FHIR Resource type: object example: "{\n \"resourceType\": \"Parameters\",\n \"parameter\": [ {\n \"name\": \"limit\",\n \"valueInteger\": 0\n }, {\n \"name\": \"expungeDeletedResources\",\n \"valueBoolean\": false\n }, {\n \"name\": \"expungePreviousVersions\",\n \"valueBoolean\": false\n }, {\n \"name\": \"expungeEverything\",\n \"valueBoolean\": false\n }, {\n \"name\": \"count\"\n } ]\n}" responses: '200': description: Success content: application/fhir+json: schema: $ref: '#/components/schemas/FHIR-JSON-RESOURCE' application/fhir+xml: schema: $ref: '#/components/schemas/FHIR-XML-RESOURCE' summary: Create medication request by id $expunge x-summary-source: derived operationId: postMedicationRequestById$expunge x-operation-id-source: derived /MedicationRequest/{id}/$graphql: get: tags: - Medication Request description: This operation invokes a GraphQL expression for fetching an joining a graph of resources, returning them in a custom format. parameters: - name: id in: path description: The resource ID required: true style: simple schema: minimum: 1 type: string example: '123' responses: '200': description: Success content: application/fhir+json: schema: $ref: '#/components/schemas/FHIR-JSON-RESOURCE' application/fhir+xml: schema: $ref: '#/components/schemas/FHIR-XML-RESOURCE' summary: Get medication request by id $graphql x-summary-source: derived operationId: getMedicationRequestById$graphql x-operation-id-source: derived /MedicationRequest/{id}/$binary-access-write: post: tags: - Medication Request parameters: - name: id in: path description: The resource ID required: true style: simple schema: minimum: 1 type: string example: '123' requestBody: content: application/fhir+json: schema: title: FHIR Resource type: object example: "{\n \"resourceType\": \"Parameters\",\n \"parameter\": [ {\n \"name\": \"path\",\n \"valueString\": \"example\"\n } ]\n}" responses: '200': description: Success content: application/fhir+json: schema: $ref: '#/components/schemas/FHIR-JSON-RESOURCE' application/fhir+xml: schema: $ref: '#/components/schemas/FHIR-XML-RESOURCE' summary: Create medication request by id $binary access write x-summary-source: derived operationId: postMedicationRequestById$binaryAccessWrite x-operation-id-source: derived /MedicationRequest/{id}/$binary-access-read: get: tags: - Medication Request parameters: - name: id in: path description: The resource ID required: true style: simple schema: minimum: 1 type: string example: '123' - name: path in: query required: true style: simple responses: '200': description: Success content: application/fhir+json: schema: $ref: '#/components/schemas/FHIR-JSON-RESOURCE' application/fhir+xml: schema: $ref: '#/components/schemas/FHIR-XML-RESOURCE' summary: Get medication request by id $binary access read x-summary-source: derived operationId: getMedicationRequestById$binaryAccessRead x-operation-id-source: derived /MedicationRequest/{id}/$diff: get: tags: - Medication Request summary: Comparte two resources or two versions of a single resource description: This operation examines two resource versions (can be two versions of the same resource, or two different resources) and generates a FHIR Patch document showing the differences. parameters: - name: id in: path description: The resource ID required: true style: simple schema: minimum: 1 type: string example: '123' - name: from in: query description: The resource ID and version to diff from required: true style: simple example: Patient/example/version/1 - name: to in: query description: The resource ID and version to diff to required: true style: simple example: Patient/example/version/2 - name: includeMeta in: query description: Should differences in the Resource.meta element be included in the diff required: false style: simple example: 'false' - name: fromVersion in: query description: The resource ID and version to diff from required: false style: simple example: Patient/example/version/1 responses: '200': description: Success content: application/fhir+json: schema: $ref: '#/components/schemas/FHIR-JSON-RESOURCE' application/fhir+xml: schema: $ref: '#/components/schemas/FHIR-XML-RESOURCE' operationId: getMedicationRequestById$diff x-operation-id-source: derived components: schemas: FHIR-JSON-RESOURCE: type: object description: A FHIR resource FHIR-XML-RESOURCE: type: object description: A FHIR resource securitySchemes: openId: type: openIdConnect openIdConnectUrl: https://api-ext.amerihealthcaritas.com/0500/patient-api/.well-known/smart-configuration