openapi: 3.2.0 info: contact: name: Interoperability Developer Support email: interoperabilitydevelopersupport@aetna.com description: This API supports the DaVinci Plan-Net Organization and Plan-Net Network Profiles that were created from the US Core Organization Profile.An organization is a formal or informal grouping of people or organizations with a common purpose, such as a company, institution, corporation, community group, or healthcare practice. x-ibm-name: v1providerdirectorydataorganization title: /v1/providerdirectorydata/ Organization API version: 1.0.0 servers: - url: https://apif1.aetna.com/fhir/v1/providerdirectorydata security: - FHIR_Application_Oauth: - Public - FHIR_Application_Oauth: - NonPII - FHIR_User_AccessCode_Oauth: - patient/Patient.read - FHIR_User_AccessCode_Oauth: - patient/Patient.* - FHIR_User_AccessCode_Oauth: - patient/*.read - FHIR_User_AccessCode_Oauth: - patient/*.* tags: - name: Organization paths: /Organization: get: summary: Retrieves a Bundle of Organization Resources(Organization and/or Network… description: Retrieves a Bundle of Organization Resources(Organization and/or Network profiles) based on the search criteria. operationId: GETOperation responses: '200': description: Success. This response returns a Bundle of Organization records. content: application/json: schema: $ref: '#/components/schemas/Bundle' example: entry: - search: mode: match resource: identifier: - system: http://aetna.com/identifier use: official type: coding: - code: NID system: http://aetna.com/identifier display: Network ID Number text: Aetna Pharmacy Network ID Number value: P1 meta: lastUpdated: '2023-02-08T13:51:13.326888+00:00' versionId: MTY3NTg2NDI3MzMyNjg4ODAwMA profile: - http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/plannet-Network name: Broad National with preferred pharmacies active: true language: en id: plannet-network-f0f9ad3d9b83d94f7080386074dffe13 type: - coding: - code: ntwk system: http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/OrgTypeCS display: Network text: A healthcare provider insurance network resourceType: Organization fullUrl: https://apif1.aetna.com/fhir/v1/providerdirectorydata/Organization/plannet-network-f0f9ad3d9b83d94f7080386074dffe13 - search: mode: match resource: identifier: - system: http://hl7.org/fhir/sid/us-npi use: official type: coding: - code: NPI system: https://terminology.hl7.org/2.1.0/CodeSystem-v2-0203.html display: National Provider Identifier value: '1255334470' - system: http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/OrgTypeCS type: coding: - code: fac system: http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/OrgTypeCS display: Facility text: Aetna Provider Identification Number value: '0007373707' extension: - extension: - valueCode: active url: status - valueCodeableConcept: coding: - code: PA display: Pennsylvania url: whereValid - valueIdentifier: value: ce4afe9000cfce505277a514ca507527961e32bb2b315f187c5cde5c url: Identifier url: http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/OrgTypeCS address: - country: US extension: - extension: - valueDecimal: 40.790913 url: latitude - valueDecimal: -76.557578 url: longitude url: http://hl7.org/fhir/StructureDefinition/geolocation city: Shamokin line: - 27 West Independence Street use: work district: Northumberland postalCode: '17872' state: PA text: 27 West Independence Street, Shamokin, Northumberland, PA, 17872, USA type: physical meta: lastUpdated: '2023-02-08T14:07:21.226750+00:00' versionId: MTY3NTg2NTI0MTIyNjc1MDAwMA profile: - http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/plannet-Organization name: Assist Home Care Inc. active: true language: en telecom: - system: phone use: work rank: 1 value: '5706449840' - system: fax use: work rank: 2 value: '5706449841' id: plannet-organization-caaa8474bd6dce6cbd06b90cf5431226 type: - coding: - code: fac system: http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/OrgTypeCS display: Facility resourceType: Organization fullUrl: https://apif1.aetna.com/fhir/v1/providerdirectorydata/Organization/plannet-organization-caaa8474bd6dce6cbd06b90cf5431226 total: 2 link: - url: https://apif1.aetna.com/fhir/v1/providerdirectorydata/Organization/?_count=2 relation: search - url: https://apif1.aetna.com/fhir/v1/providerdirectorydata/Organization/?_count=2&_page_token=Cjj3YH03h%2F%2F%2F%2F%2F%2BABcBOqI6igAD%2FAf%2F%2BZjUzZjA3NDA5NTI3NWYwMWM2MzdmZDllODllYWNlMWIAARACIRdZYDGqWfwzOQAAAAB4yIKfSAJQAFoLCWeiOXz1pNE4EANg1JPvcw%3D%3D relation: next type: searchset resourceType: Bundle '400': description: A required parameter isn’t provided. content: application/json: schema: $ref: '#/components/schemas/OperationOutcome' example: issue: - severity: error code: value details: coding: - system: http://hl7.org/fhir/R4/valueset-operation-outcome.html code: MSG_PARAM_INVALID display: 'error parsing date "2021 - 15 - 29" : invalid dateTime: "2021 - 15 - 29" ' text: Missing or invalid inputs language: en-US resourceType: OperationOutcome '401': description: The request is unauthorized. content: application/json: schema: $ref: '#/components/schemas/OperationOutcome' example: issue: - severity: error code: transient details: coding: - system: http://hl7.org/fhir/R4/valueset-operation-outcome.html code: MSG_ACCESS_DENIED display: Looks like you are not authorized to use this API. Please validate your API Key. text: You must authenticate before you can use this service language: en-US resourceType: OperationOutcome '403': description: The requested resource is forbidden for some reason. content: application/json: schema: $ref: '#/components/schemas/OperationOutcome' example: issue: - severity: error code: transient details: coding: - system: http://hl7.org/fhir/R4/valueset-operation-outcome.html code: MSG_ACCESS_DENIED display: Forbidden text: Access Denied language: en-US resourceType: OperationOutcome '404': description: The specified System Identifier doesn’t identify an existing resource. content: application/json: schema: $ref: '#/components/schemas/OperationOutcome' example: issue: - severity: error code: no-store details: coding: - system: http://hl7.org/fhir/R4/valueset-operation-outcome.html code: MSG_NO_MATCH display: 'resource not found: List/yy' text: No Resource found matching the query language: en-US resourceType: OperationOutcome '405': description: The specified Method is not allowed in the request. content: application/json: schema: $ref: '#/components/schemas/OperationOutcome' example: issue: - severity: error code: transient details: coding: - system: http://hl7.org/fhir/R4/valueset-operation-outcome.html code: MSG_RESOURCE_NOT_ALLOWED display: Method Not Allowed text: Not allowed to submit a resource for this operation language: en-US resourceType: OperationOutcome '429': description: Detected excessive traffic coming from this IP. Please reach out if you think this is incorrect. content: application/json: schema: $ref: '#/components/schemas/OperationOutcome' example: issue: - severity: error code: transient details: coding: - system: http://hl7.org/fhir/R4/valueset-operation-outcome.html code: MSG_UNKNOWN_TYPE display: We have detected excessive traffic coming from this IP. text: Too Many Request language: en-US resourceType: OperationOutcome '500': description: An unexpected internal error has occurred. content: application/json: schema: $ref: '#/components/schemas/OperationOutcome' example: issue: - severity: error code: transient details: coding: - system: http://hl7.org/fhir/R4/valueset-operation-outcome.html code: MSG_SVC_FAILURE display: An Unexpected error occurred while fulfilling this request. Our engineers have been notified. Please try again in some time. text: Error occurred while processing response language: en-US resourceType: OperationOutcome parameters: - in: query name: _count description: The maximum number of search results on a page. The server is not bound to return the number requested, but cannot return more. required: false schema: type: number - in: query name: _id description: Logical id of this artifact required: false schema: type: string - in: query name: partof description: Select Organizations that are part of the specified organization. Aetna is the only possible value for Network profile records. required: false schema: type: string - in: query name: address description: Select Organizations with the specified address (matches any of the string elements of an address). Does not return Network profile records. required: false schema: type: string - in: query name: name description: 'Select Organizations with the specified name. This also selects Networks Profile records with the specified name as these are also Organization Resources.' required: false schema: type: string - in: query name: _include description: 'request that the search results include additional resources ("included resources") related to the resources directly matching the query ("primary results"). Supported values : Organization:partof' required: false schema: type: string - in: query name: _revinclude description: 'request that the search results include additional resources ("included resources") related to the resources directly matching the query ("primary results"). Supported values : HealthcareService:organization OrganizationAffiliation:primary-organization PractitionerRole:organization OrganizationAffiliation:participating-organization InsurancePlan:administered-by InsurancePlan:owned-by PractitionerRole:network' required: false schema: type: string - in: query name: type description: Select Organizations of the specified type. required: false schema: type: string - in: query name: _lastUpdated description: Select resources based on the last time they were changed. required: false schema: type: string format: date - in: query name: _profile description: 'Select resources that conform to the specified profile. Values Supported : Organization profile: http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/plannet-Organization Network profile: http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/plannet-Network' required: false schema: type: string - in: query name: _page_token description: Used to retrieve the next page of results If a search returns more resources than fit on one page, the response includes a pagination URL in the Bundle. required: false schema: type: string tags: - Organization /Organization/{id}: get: summary: Retrieves an Organization Resources(Organization or Network profile) based on… description: Retrieves an Organization Resources(Organization or Network profile) based on the FHIR logical ID. operationId: GETOperation-id responses: '200': description: Success. This response returns an Organization record. content: application/json: schema: $ref: '#/components/schemas/Organization' example: identifier: - system: http://aetna.com/identifier use: official type: coding: - code: NID system: http://aetna.com/identifier display: Network ID Number text: Aetna Pharmacy Network ID Number value: P1 meta: lastUpdated: '2023-02-08T13:51:13.326888+00:00' versionId: MTY3NTg2NDI3MzMyNjg4ODAwMA profile: - http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/plannet-Network name: Broad National with preferred pharmacies active: true language: en id: plannet-network-f0f9ad3d9b83d94f7080386074dffe13 type: - coding: - code: ntwk system: http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/OrgTypeCS display: Network text: A healthcare provider insurance network resourceType: Organization '400': description: A required parameter isn’t provided. content: application/json: schema: $ref: '#/components/schemas/OperationOutcome' example: issue: - severity: error code: value details: coding: - system: http://hl7.org/fhir/R4/valueset-operation-outcome.html code: MSG_PARAM_INVALID display: 'error parsing date "2021 - 15 - 29" : invalid dateTime: "2021 - 15 - 29" ' text: Missing or invalid inputs language: en-US resourceType: OperationOutcome '401': description: The request is unauthorized. content: application/json: schema: $ref: '#/components/schemas/OperationOutcome' example: issue: - severity: error code: transient details: coding: - system: http://hl7.org/fhir/R4/valueset-operation-outcome.html code: MSG_ACCESS_DENIED display: Looks like you are not authorized to use this API. Please validate your API Key. text: You must authenticate before you can use this service language: en-US resourceType: OperationOutcome '403': description: The requested resource is forbidden for some reason. content: application/json: schema: $ref: '#/components/schemas/OperationOutcome' example: issue: - severity: error code: transient details: coding: - system: http://hl7.org/fhir/R4/valueset-operation-outcome.html code: MSG_ACCESS_DENIED display: Forbidden text: Access Denied language: en-US resourceType: OperationOutcome '404': description: The specified System Identifier doesn’t identify an existing resource. content: application/json: schema: $ref: '#/components/schemas/OperationOutcome' example: issue: - severity: error code: no-store details: coding: - system: http://hl7.org/fhir/R4/valueset-operation-outcome.html code: MSG_NO_MATCH display: 'resource not found: List/yy' text: No Resource found matching the query language: en-US resourceType: OperationOutcome '405': description: The specified Method is not allowed in the request. content: application/json: schema: $ref: '#/components/schemas/OperationOutcome' example: issue: - severity: error code: transient details: coding: - system: http://hl7.org/fhir/R4/valueset-operation-outcome.html code: MSG_RESOURCE_NOT_ALLOWED display: Method Not Allowed text: Not allowed to submit a resource for this operation language: en-US resourceType: OperationOutcome '429': description: Detected excessive traffic coming from this IP. Please reach out if you think this is incorrect. content: application/json: schema: $ref: '#/components/schemas/OperationOutcome' example: issue: - severity: error code: transient details: coding: - system: http://hl7.org/fhir/R4/valueset-operation-outcome.html code: MSG_UNKNOWN_TYPE display: We have detected excessive traffic coming from this IP. text: Too Many Request language: en-US resourceType: OperationOutcome '500': description: An unexpected internal error has occurred. content: application/json: schema: $ref: '#/components/schemas/OperationOutcome' example: issue: - severity: error code: transient details: coding: - system: http://hl7.org/fhir/R4/valueset-operation-outcome.html code: MSG_SVC_FAILURE display: An Unexpected error occurred while fulfilling this request. Our engineers have been notified. Please try again in some time. text: Error occurred while processing response language: en-US resourceType: OperationOutcome parameters: - in: header name: x-clientrefid description: optional UUID to track the transaction. required: false schema: type: string - in: path name: id description: The logical id of the resource. required: true schema: type: string tags: - Organization components: schemas: Organization: description: 'See the appropriate Implementation Guide for proper documentation to use. This is the HL7 FHIR Release 4.0.1 Organization resource. Full Documentation is available at: http://hl7.org/fhir/organization.html US Core 3.1.1 Documentation is available at: http://hl7.org/fhir/us/core/STU3.1.1/StructureDefinition-us-core-organization.html For the CARIN-BB 1.0.0 Organization resource full documentation is available at: http://hl7.org/fhir/us/carin-bb/STU1/StructureDefinition-C4BB-Organization.html For the DaVinci PDEX Plan Net 1.0.0 Organization resource documentation is available at: http://hl7.org/fhir/us/davinci-pdex-plan-net/STU1/StructureDefinition-plannet-Organization.html For the DaVinci PDEX Plan Net 1.0.0 Network resource documentation is available at: http://hl7.org/fhir/us/davinci-pdex-plan-net/STU1/StructureDefinition-plannet-Network.html For the DaVinci PDEX Plan Net 1.1.0 Organization resource documentation is available at: http://hl7.org/fhir/us/davinci-pdex-plan-net/STU1.1/StructureDefinition-plannet-Organization.html For the DaVinci PDEX Plan Net 1.1.0 Network resource documentation is available at: http://hl7.org/fhir/us/davinci-pdex-plan-net/STU1.1/StructureDefinition-plannet-Network.html For the DaVinci PDEX Plan Net 1.2.0 Organization resource documentation is available at: http://hl7.org/fhir/us/davinci-pdex-plan-net/STU1.2/StructureDefinition-plannet-Organization.html For the DaVinci PDEX Plan Net 1.2.0 Network resource documentation is available at: http://hl7.org/fhir/us/davinci-pdex-plan-net/STU1.2/StructureDefinition-plannet-Network.html' type: object OperationOutcome: description: 'See the appropriate Implementation Guide for proper documentation to use This is the HL7 FHIR Release 4.0.1 OperationOutcome resource. Full Documentation is available at: http://hl7.org/fhir/operationoutcome.html' type: object Entry: description: An entry in a bundle resource - will contain a resource(s) returned in the bundle type: object properties: resource: $ref: '#/components/schemas/Organization' Bundle: description: 'See the appropriate Implementation Guide for proper documentation to use This is the HL7 FHIR Release 4.0.1 Bundle resource. Full Documentation is available at: http://hl7.org/fhir/bundle.html' type: object properties: entry: type: array items: $ref: '#/components/schemas/Entry' securitySchemes: FHIR_User_AccessCode_Oauth: type: oauth2 flows: authorizationCode: scopes: patient/Patient.*: patient/Patient.* patient/Patient.read: patient/Patient.read patient/*.read: patient/*.read patient/*.*: patient/*.* authorizationUrl: https://$(catalog.url)/v1/internal/fhirserver_auth/oauth2/authorize tokenUrl: https://$(catalog.url)/v1/internal/fhirserver_auth/oauth2/token FHIR_Application_Oauth: type: oauth2 flows: clientCredentials: scopes: NonPII: NonPII Public: Public tokenUrl: https://$(catalog.url)/v3/internal/auth/oauth2/app/token description: "{\n \"BuildEieHeader\" : \"Header 3.2\",\n \"SecurityTemplate\" : \"FHIROpenApp\",\n \"Backend\" : \"Non-IIB, FHIRServer APIGEE APIs, requires Mutual TLS\",\n \"Errorhandlingpolicy\": \"Transparent\"\n \"Consumer\":\"External\",\n \"Mutual Auth between Consumer and APIC\" : \"Not Required\"\n}" externalDocs: description: HTTPS Common Error Codes url: https://eaintegrationgovernance.github.io/APIC-Common-Error-Codes.github.io/ x-ibm-configuration: phase: realized enforced: true cors: enabled: true activity-log: success-content: activity error-content: header enabled: true catalogs: qapath3: properties: x-api-key: G3VIdNTOjscKbVGPqb8aNMeCA1dAHxnz backendURL: https://internal-sit1-apix.cvshealth.com/fhir/cms/plannet-organization-profile/v1/Organization delivery: properties: x-api-key: G3VIdNTOjscKbVGPqb8aNMeCA1dAHxnz backendURL: https://internal-sit1-apix.cvshealth.com/fhir/cms/plannet-organization-profile/v1/Organization stress: properties: x-api-key: G3VIdNTOjscKbVGPqb8aNMeCA1dAHxnz backendURL: https://internal-sit1-apix.cvshealth.com/fhir/cms/plannet-organization-profile/v1/Organization qapath1: properties: x-api-key: G3VIdNTOjscKbVGPqb8aNMeCA1dAHxnz backendURL: https://internal-sit1-apix.cvshealth.com/fhir/cms/plannet-organization-profile/v1/Organization qapath2: properties: x-api-key: G3VIdNTOjscKbVGPqb8aNMeCA1dAHxnz backendURL: https://internal-sit1-apix.cvshealth.com/fhir/cms/plannet-organization-profile/v1/Organization prod: properties: x-api-key: MfAri03JO8hgVzerGiITA6FGafayv5XV backendURL: http://127.0.0.1:7798/apigee-url/fhir/cms/plannet-organization-profile/v1/Organization devpath2: properties: x-api-key: G3VIdNTOjscKbVGPqb8aNMeCA1dAHxnz backendURL: https://internal-sit1-apix.cvshealth.com/fhir/cms/plannet-organization-profile/v1/Organization devpath3: properties: x-api-key: G3VIdNTOjscKbVGPqb8aNMeCA1dAHxnz backendURL: https://internal-sit1-apix.cvshealth.com/fhir/cms/plannet-organization-profile/v1/Organization devpath1: properties: x-api-key: G3VIdNTOjscKbVGPqb8aNMeCA1dAHxnz backendURL: https://internal-sit1-apix.cvshealth.com/fhir/cms/plannet-organization-profile/v1/Organization uat: properties: x-api-key: '' backendURL: '' testable: true assembly: finally: [] catch: [] execute: - gatewayscript: comment: - 'GWS17: Gatewayscript policy set to `gatewayscript_1.0.0`, converting gatewayscript to `gatewayscript_1.0.0`.' source: 'var apim = require(''local:///isp/policy/apim.custom.js''); var hm = require(''header-metadata''); var file_path = ''local:///policy/common/ValidatePaginationParam_v1.0.0.js''; var commonFunc = require(file_path); commonFunc.validate_pagination_param(100);' title: Function Call version: 1.0.0 - gatewayscript: comment: - 'GWS17: Gatewayscript policy set to `gatewayscript_1.0.0`, converting gatewayscript to `gatewayscript_1.0.0`.' source: 'var catalog_name = apim.getvariable(''env.path''); var file_path = ''local:///policy/common/''+catalog_name+''/CreateEIEHeader_v3.2.js''; var eieheader_module = require(file_path); eieheader_module.create_eie_header_v3_2(''header'',''v3.2'',''JSON'','''');' title: Create EIE Header 3.2 version: 1.0.0 - gatewayscript: comment: - 'GWS17: Gatewayscript policy set to `gatewayscript_1.0.0`, converting gatewayscript to `gatewayscript_1.0.0`.' source: 'var key = apim.getvariable(''api.properties.x-api-key''); apim.setvariable(''message.headers.x-api-key'', key,''add'');' title: Set API Key Header version: 1.0.0 - operation-switch: otherwise: [] comment: - 'SW01: Found operation-switch_1.0.0 and converted to API Gateway operation-switch_2.0.0' title: operation-switch version: 2.0.0 case: - operations: - GETOperation execute: - if: condition: apim.getvariable('exception_flag') != true; comment: - 'SW09: `if` policy set to `if_1.5.0`, converting `if` to `if_1.5.0`. For details, see: https://www.ibm.com/docs/en/api-connect/10.0.1.x?topic=cadag-messages-generated-during-conversion-apis-datapower-api-gateway#IF_CONVERTED_TO_WRAPPER' title: if execute: - invoke: cache-response: no-cache verb: keep description: dev1-api.cvshealth.com/fhir/cms/plannet-organization-profile/v1/Organization comment: - 'INV17: Invoke policy set to `invoke_1.5.0`, converting invoke to `invoke_1.5.0`. For details, see: https://www.ibm.com/docs/en/api-connect/10.0.1.x?topic=cadag-messages-generated-during-conversion-apis-datapower-api-gateway#INVOKE_WRAPPER_FOUND' target-url: $(backendURL)?$(finalquerystring) title: invoke call APIGEE FHIR Organization API version: 1.5.0 timeout: 60 version: 1.5.0 - operations: - GETOperation-id execute: - invoke: cache-response: no-cache verb: keep description: dev1-api.cvshealth.com/fhir/cms/plannet-organization-profile/v1/Organization comment: - 'INV17: Invoke policy set to `invoke_1.5.0`, converting invoke to `invoke_1.5.0`. For details, see: https://www.ibm.com/docs/en/api-connect/10.0.1.x?topic=cadag-messages-generated-during-conversion-apis-datapower-api-gateway#INVOKE_WRAPPER_FOUND' target-url: $(backendURL)/$(request.parameters.id) title: invoke call APIGEE FHIR Organization API version: 1.5.0 timeout: 60 - gatewayscript: description: Alter the backend response for the fullUrl and url fields comment: - 'GWS17: Gatewayscript policy set to `gatewayscript_1.0.0`, converting gatewayscript to `gatewayscript_1.0.0`.' source: "var respJson = apim.getvariable('message.body');\nvar host_name = apim.getvariable('api.endpoint.hostname');\nvar org_name = apim.getvariable('api.org.name');\nvar catalogName = apim.getvariable('env.path');\nvar resoursePath = apim.getvariable('request.path');\nvar chunk_link = respJson.link;\nvar chunk_entry = respJson.entry;\nvar req_query_params = apim.getvariable('request.search');\nvar finalFullUrl;\nvar apic_req_url = \"https://\" + host_name + \"/\" + org_name + \"/\" + catalogName + resoursePath;\nvar array_apic_url = apic_req_url.split('/');\nvar apic_url_length = array_apic_url.length;\n\nvar apic_popped = array_apic_url[apic_url_length - 1];\nvar full_final_split_1;\n\nif (respJson.entry != undefined || respJson.link != undefined) {\n if(respJson.link !=undefined)\n {\n for (var i = 0; i < chunk_link.length; i++) {\n var split_url = chunk_link[i].url.split('?');\n var x = chunk_link[i].url.split('/');\n var y = x.length;\n var resp_popped = x[y - 1]; //path parameter of backend response from url\n if (apic_popped == resp_popped) //To confirm whether backend has path param or not\n {\n if (split_url[1] == undefined || split_url[1] == \"\") //To check if backend resp has query param or not\n {\n finalFullUrl = apic_req_url;\n } else {\n finalFullUrl = apic_req_url + '?' + split_url[1];\n }\n respJson.link[i].url = finalFullUrl;\n\n } else\n {\n if (split_url[1] == undefined || split_url[1] == \"\") {\n finalFullUrl = apic_req_url + \"/\" + resp_popped;\n\t\t\tfinalFullUrl = finalFullUrl.replace('/?','');\n } else {\n finalFullUrl = apic_req_url + \"/\" + resp_popped;\n\t\t\tfinalFullUrl = finalFullUrl.replace('/?','?');\n }\n respJson.link[i].url = finalFullUrl;\n }\n }\n}\n if (respJson.entry != undefined) {\n for (var i = 0; i < chunk_entry.length; i++) {\n if(chunk_entry[i].fullUrl!=undefined)\n {\n var split_url = chunk_entry[i].fullUrl.split('?');\n var x = chunk_entry[i].fullUrl.split('/');\n var y = x.length;\n var resp_popped = x[y - 1]; //path parameter of backend response\n if (apic_popped == resp_popped) //this is to confirm whether backend has path param or not\n {\n if (split_url[1] == undefined || split_url[1] == \"\") //this block is to check if backend resp has query param or not\n {\n finalFullUrl = apic_req_url;\n } else {\n finalFullUrl = apic_req_url + '?' + split_url[1];\n }\n respJson.entry[i].fullUrl = finalFullUrl;\n\n } else\n {\n if (split_url[1] == undefined || split_url[1] == \"\") {\n finalFullUrl = apic_req_url + \"/\" + resp_popped;\n\t\t\t finalFullUrl = finalFullUrl.replace('/?','');\n } else {\n finalFullUrl = apic_req_url + \"/\" + resp_popped;\n\t\t\t finalFullUrl = finalFullUrl.replace('/?','?');\n }\n respJson.entry[i].fullUrl = finalFullUrl;\n\t\t\t\n }\n }\n }\n }\n session.output.write(respJson);\n apim.output('application/fhir+json');\n} else {\n session.output.write(apim.getvariable('message.body'));\n apim.output('application/fhir+json');\n}" title: Alter Backend Response version: 1.0.0 type: rest compatibility: enforce-required-params: false comment: - 'API44: Set compatibility toggle `allow-chunked-uploads` to value: `false`. For details, see: https://www.ibm.com/docs/en/api-connect/10.0.1.x?topic=cadag-messages-generated-during-conversion-apis-datapower-api-gateway#SET_COMPATIBILITY_TOGGLE' - 'API44: Set compatibility toggle `enforce-required-params` to value: `false`. For details, see: https://www.ibm.com/docs/en/api-connect/10.0.1.x?topic=cadag-messages-generated-during-conversion-apis-datapower-api-gateway#SET_COMPATIBILITY_TOGGLE' - 'API44: Set compatibility toggle `request-headers` to value: `true`. For details, see: https://www.ibm.com/docs/en/api-connect/10.0.1.x?topic=cadag-messages-generated-during-conversion-apis-datapower-api-gateway#SET_COMPATIBILITY_TOGGLE' - 'API43: Created `compatibility:` section for API-wide toggles set by migration utility. For details, see: https://www.ibm.com/docs/en/api-connect/10.0.1.x?topic=cadag-messages-generated-during-conversion-apis-datapower-api-gateway#COMPATIBILITY_INFO' migrated-api: true request-headers: true wrapper-policies: allow-chunked-uploads: false properties: x-api-key: description: '' value: '' encoded: false backendURL: description: '' value: '' encoded: false gateway: datapower-api-gateway x-ibm-comment: - 'AMU version used to port this API: v10.0.1.6-R2-50b032947f4a846833eb1684602450e2efa9d6bc-2022-05-27T02:49:53Z' - 'API03: Suffix -apigw appended to API `title` and `x-ibm-name`. For details, see: https://www.ibm.com/docs/en/api-connect/10.0.1.x?topic=cadag-messages-generated-during-conversion-apis-datapower-api-gateway#API_NAME_ADDED_SUFFIX' - 'API06: Changed gateway type to `datapower-api-gateway`.' - 'API14: Ported v5-compatible policies to work with the API Gateway and updated policy versions.' - 'API45: Compatibility toggle: `copy-id-headers-to-message` set to value: `false`, which is the same as the API Gateway default. For details, see: https://www.ibm.com/docs/en/api-connect/10.0.1.x?topic=cadag-messages-generated-during-conversion-apis-datapower-api-gateway#COMPAT_TOGGLE_MATCHES_APIGW_DEFAULT' - 'API45: Compatibility toggle: `return-v5-responses` set to value: `false`, which is the same as the API Gateway default. For details, see: https://www.ibm.com/docs/en/api-connect/10.0.1.x?topic=cadag-messages-generated-during-conversion-apis-datapower-api-gateway#COMPAT_TOGGLE_MATCHES_APIGW_DEFAULT' - 'API61: Set buffering property to true. For details, see: https://www.ibm.com/docs/en/api-connect/10.0.1.x?topic=cadag-messages-generated-during-conversion-apis-datapower-api-gateway#SET_BUFFERING' - 'API24: Removed redundant `parse` policy from the beginning of the assembly. For details, see: https://www.ibm.com/docs/en/api-connect/10.0.1.x?topic=cadag-messages-generated-during-conversion-apis-datapower-api-gateway#REMOVED_REDUNDANT_FRONT_PARSE'