Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
URL: ${fhir-server-url}/Location
Method: POST
Headers:
  Content-Type: application/json
Body:
  {
    resourceType: "Location",
	alias: [ "N007" ],
	identifier: {
	  { system: "urn:ietf:rfc:3986", value: "https://test.openlmis.org/api/programs/418bdc1d-c303-4bd0-b2d3-d8901150a983" },
	  { system: "urn:ietf:rfc:3986", value: "https://test.openlmis.org/api/facilityTypes/ac1d268b-ce10-455f-bf87-9c667da8f060" },
	  { system: "urn:ietf:rfc:3986", value: "https://test.openlmis.org/api/facilityOperators/9456c3e9-c4a6-4a28-9e08-47ceb16a4121" },
	  { system: "https://test.openlmis.org", value: ${identifier_value} }
	},
	name: "Lurio, Cuamba",
	position: {
	  longitude: 36.852509
	  latitude: -14.78975
	},
	physicalType: {
	  coding: [
	    { system: "http://hl7.org/fhir/location-physical-type", code: "si", display: "Site" }
	  ]
	},
	partOf: {
	  reference: "https://test.openlmis.org/api/Location/9b8cfb5a-217a-4261-a64f-16ca06ae79fa"
	},
	status: "active"
  }

Response times

FHIR server

1st attempt

(cold start)

2nd attempt3rd attempt4th attempt5th attempt
avgp90avgp90avgp90avgp90avgp90
Hearth









HAPI FHIR









Update the location

Note: When an X test is being executed, there are X - 1 resources in the FHIR server. For the first resource update, the FHIR server will contain a single resource.

...

Code Block
URL: ${fhir-server-url}/Location
Method: PUT
Headers:
  Content-Type: application/json
Body:
  {
    resourceType: "Location",
	alias: [ "N007" ],
	identifier: {
	  { system: "urn:ietf:rfc:3986", value: "https://test.openlmis.org/api/programs/418bdc1d-c303-4bd0-b2d3-d8901150a983" },
	  { system: "urn:ietf:rfc:3986", value: "https://test.openlmis.org/api/facilityTypes/ac1d268b-ce10-455f-bf87-9c667da8f060" },
	  { system: "urn:ietf:rfc:3986", value: "https://test.openlmis.org/api/facilityOperators/9456c3e9-c4a6-4a28-9e08-47ceb16a4121" },
	  { system: "https://test.openlmis.org", value: ${identifier_value} }
	},
	name: "Lurio, Cuamba (Updated)",
	position: {
	  longitude: 36.852509
	  latitude: -14.78975
	},
	physicalType: {
	  coding: [
	    { system: "http://hl7.org/fhir/location-physical-type", code: "si", display: "Site" }
	  ]
	},
	partOf: {
	  reference: "https://test.openlmis.org/api/Location/9b8cfb5a-217a-4261-a64f-16ca06ae79fa"
	},
	status: "active"
  }

Response times

FHIR server1st attempt
(cold start)
2nd attempt3rd attempt4th attempt5th attempt
avgp90avgp90avgp90avgp90avgp90
Hearth









HAPI FHIR









Get a location by an id

Note: When an X test is being executed, there are X - 1 resources in the FHIR server. For the first resource search, the FHIR server will contain only one resource.

...

Code Block
URL: ${fhir-server-url}/fhir/Location/${location_id}
Method: GET
Headers:
  Accept: application/json

Response times

FHIR server1st attempt
(cold start)
2nd attempt3rd attempt4th attempt5th attempt
avgp90avgp90avgp90avgp90avgp90
Hearth









HAPI FHIR









Search single location by an identifier

...

Code Block
URL: ${fhir-server-url}/Location?identifier=https://test.openlmis.org|${identifier_value}
Method: GET

Response times

FHIR server1st attempt
(cold start)
2nd
2th attempt
3rd
3th attempt4th attempt5th attempt
avgp90avgp90avgp90avgp90avgp90
Hearth









HAPI FHIR









Search locations

Note: When an X test is being executed, there are 1000 * number of attempt resources in the FHIR server. The search endpoint returns only 10 resources.

...

Code Block
URL: ${fhir-server-url}/fhir/Location
Method: GET

Response times

FHIR server1st attempt
(cold start)
2nd
2th attempt
3rd
3th attempt4th attempt5th attempt
avgp90avgp90avgp90avgp90avgp90
Hearth









HAPI FHIR