Summary| Tags| Feature: practitioner/practitioner.feature| Practitioner Resource Validation
Scenario: [1:22] TC-PRA-001 | REQ-PRA-001 GET /Practitioner/{id} returns 200 and resourceType = Practitioner
ms: 10003
>>
Background:
11
* url baseUrl
0
21:56:46.225 baseUrl: https://hapi.fhir.org/baseR4 21:56:46.225 fhirVersion: 4.0.1
12
Given path 'Practitioner'
0
13
And param _count = '1'
0
14
When method GET
5024
21:56:46.225 request: 1 > GET https://hapi.fhir.org/baseR4/Practitioner?_count=1 1 > Host: hapi.fhir.org 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.14 (Java/17.0.18) 1 > Accept-Encoding: gzip,deflate 21:56:51.249 response time in milliseconds: 5024 1 < 200 1 < Server: nginx/1.24.0 (Ubuntu) 1 < Date: Tue, 21 Apr 2026 21:56:51 GMT 1 < Content-Type: application/fhir+json;charset=utf-8 1 < Transfer-Encoding: chunked 1 < Connection: keep-alive 1 < X-Powered-By: HAPI FHIR 8.9.4-SNAPSHOT/eee190b153/2026-02-26 REST Server (FHIR Server; FHIR 4.0.1/R4) 1 < X-Request-ID: ly8QKM2LKC3b39ks 1 < Last-Modified: Tue, 21 Apr 2026 21:56:51 GMT { "resourceType": "Bundle", "id": "e7da4d25-1591-43b8-87a8-9a24fa8beba2", "meta": { "lastUpdated": "2026-04-21T21:56:51.201+00:00" }, "type": "searchset", "link": [ { "relation": "self", "url": "https://hapi.fhir.org/baseR4/Practitioner?_count=1" }, { "relation": "next", "url": "https://hapi.fhir.org/baseR4?_getpages=e7da4d25-1591-43b8-87a8-9a24fa8beba2&_getpagesoffset=1&_count=1&_pretty=true&_bundletype=searchset" } ], "entry": [ { "fullUrl": "https://hapi.fhir.org/baseR4/Practitioner/user-7af2885d-d180-4264-b74f-523d23d91c9c", "resource": { "resourceType": "Practitioner", "id": "user-7af2885d-d180-4264-b74f-523d23d91c9c", "meta": { "versionId": "1", "lastUpdated": "2026-02-10T08:16:51.282+00:00", "source": "#TzQZdTKvLQ0KKiRN" }, "extension": [ { "url": "urn:com:optum:vcce:ext:identity-provider-type", "valueCodeableConcept": { "coding": [ { "system": "urn:com:optum:vcce:cs:identity-provider-type", "code": "92", "display": "Optum ID" } ], "text": "Optum ID" } } ], "identifier": [ { "system": "urn:com:optum:vcce:user-id", "value": "7af2885d-d180-4264-b74f-523d23d91c9c" }, { "system": "urn:com:optum:vcce:alt-user-id", "value": "shyamlata.katiyar@optum.com" } ], "active": true, "name": [ { "family": "Katiyar", "given": [ "Shyamlata" ] } ], "telecom": [ { "system": "email", "value": "shyamlata.katiyar@optum.com" } ] }, "search": { "mode": "match" } } ] }
15
Then status 200
0
16
* def hasEntry = response.entry != null && response.entry.length > 0
0
17
* match hasEntry == true
0
18
* def practitionerId = response.entry[0].resource.id
0
19
* match response.entry[0].resource.resourceType == 'Practitioner'
0
20
* karate.log('Resolved practitionerId: ' + practitionerId)
0
21:56:51.250 Resolved practitionerId: user-7af2885d-d180-4264-b74f-523d23d91c9c
23
Given path 'Practitioner', practitionerId
0
24
When method GET
4975
21:56:51.251 request: 2 > GET https://hapi.fhir.org/baseR4/Practitioner/user-7af2885d-d180-4264-b74f-523d23d91c9c 2 > Host: hapi.fhir.org 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.14 (Java/17.0.18) 2 > Accept-Encoding: gzip,deflate 21:56:56.225 response time in milliseconds: 4973 2 < 200 2 < Server: nginx/1.24.0 (Ubuntu) 2 < Date: Tue, 21 Apr 2026 21:56:56 GMT 2 < Content-Type: application/fhir+json;charset=utf-8 2 < Transfer-Encoding: chunked 2 < Connection: keep-alive 2 < X-Powered-By: HAPI FHIR 8.9.4-SNAPSHOT/eee190b153/2026-02-26 REST Server (FHIR Server; FHIR 4.0.1/R4) 2 < ETag: W/"1" 2 < X-Request-ID: kDAdRUjGkTxwsEYM 2 < Content-Location: https://hapi.fhir.org/baseR4/Practitioner/user-7af2885d-d180-4264-b74f-523d23d91c9c/_history/1 2 < Last-Modified: Tue, 10 Feb 2026 08:16:51 GMT { "resourceType": "Practitioner", "id": "user-7af2885d-d180-4264-b74f-523d23d91c9c", "meta": { "versionId": "1", "lastUpdated": "2026-02-10T08:16:51.282+00:00", "source": "#TzQZdTKvLQ0KKiRN" }, "extension": [ { "url": "urn:com:optum:vcce:ext:identity-provider-type", "valueCodeableConcept": { "coding": [ { "system": "urn:com:optum:vcce:cs:identity-provider-type", "code": "92", "display": "Optum ID" } ], "text": "Optum ID" } } ], "identifier": [ { "system": "urn:com:optum:vcce:user-id", "value": "7af2885d-d180-4264-b74f-523d23d91c9c" }, { "system": "urn:com:optum:vcce:alt-user-id", "value": "shyamlata.katiyar@optum.com" } ], "active": true, "name": [ { "family": "Katiyar", "given": [ "Shyamlata" ] } ], "telecom": [ { "system": "email", "value": "shyamlata.katiyar@optum.com" } ] }
25
Then status 200
0
26
And assert responseTime < 10000
0
27
And match responseHeaders['Content-Type'][0] contains 'application/fhir+json'
0
28
And match responseHeaders['ETag'][0] == '#present'
0
29
And match response.resourceType == 'Practitioner'
0
30
* karate.write(response, 'responses/practitioner/practitioner-read.json')
1
21:56:56.228 write to file: target/responses/practitioner/practitioner-read.json
Scenario: [2:32] TC-PRA-002 | REQ-PRA-002 name element is present and non-empty
ms: 9949
>>
Background:
11
* url baseUrl
0
21:56:49.273 baseUrl: https://hapi.fhir.org/baseR4 21:56:49.273 fhirVersion: 4.0.1
12
Given path 'Practitioner'
0
13
And param _count = '1'
0
14
When method GET
4964
21:56:49.274 request: 1 > GET https://hapi.fhir.org/baseR4/Practitioner?_count=1 1 > Host: hapi.fhir.org 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.14 (Java/17.0.18) 1 > Accept-Encoding: gzip,deflate 21:56:54.238 response time in milliseconds: 4963 1 < 200 1 < Server: nginx/1.24.0 (Ubuntu) 1 < Date: Tue, 21 Apr 2026 21:56:54 GMT 1 < Content-Type: application/fhir+json;charset=utf-8 1 < Transfer-Encoding: chunked 1 < Connection: keep-alive 1 < X-Cache: HIT from https://hapi.fhir.org/baseR4 1 < X-Powered-By: HAPI FHIR 8.9.4-SNAPSHOT/eee190b153/2026-02-26 REST Server (FHIR Server; FHIR 4.0.1/R4) 1 < X-Request-ID: mZHPpvu4rZnjlgaM 1 < Last-Modified: Tue, 21 Apr 2026 21:56:51 GMT { "resourceType": "Bundle", "id": "e7da4d25-1591-43b8-87a8-9a24fa8beba2", "meta": { "lastUpdated": "2026-04-21T21:56:51.201+00:00" }, "type": "searchset", "link": [ { "relation": "self", "url": "https://hapi.fhir.org/baseR4/Practitioner?_count=1" }, { "relation": "next", "url": "https://hapi.fhir.org/baseR4?_getpages=e7da4d25-1591-43b8-87a8-9a24fa8beba2&_getpagesoffset=1&_count=1&_pretty=true&_bundletype=searchset" } ], "entry": [ { "fullUrl": "https://hapi.fhir.org/baseR4/Practitioner/user-7af2885d-d180-4264-b74f-523d23d91c9c", "resource": { "resourceType": "Practitioner", "id": "user-7af2885d-d180-4264-b74f-523d23d91c9c", "meta": { "versionId": "1", "lastUpdated": "2026-02-10T08:16:51.282+00:00", "source": "#TzQZdTKvLQ0KKiRN" }, "extension": [ { "url": "urn:com:optum:vcce:ext:identity-provider-type", "valueCodeableConcept": { "coding": [ { "system": "urn:com:optum:vcce:cs:identity-provider-type", "code": "92", "display": "Optum ID" } ], "text": "Optum ID" } } ], "identifier": [ { "system": "urn:com:optum:vcce:user-id", "value": "7af2885d-d180-4264-b74f-523d23d91c9c" }, { "system": "urn:com:optum:vcce:alt-user-id", "value": "shyamlata.katiyar@optum.com" } ], "active": true, "name": [ { "family": "Katiyar", "given": [ "Shyamlata" ] } ], "telecom": [ { "system": "email", "value": "shyamlata.katiyar@optum.com" } ] }, "search": { "mode": "match" } } ] }
15
Then status 200
0
16
* def hasEntry = response.entry != null && response.entry.length > 0
0
17
* match hasEntry == true
0
18
* def practitionerId = response.entry[0].resource.id
0
19
* match response.entry[0].resource.resourceType == 'Practitioner'
0
20
* karate.log('Resolved practitionerId: ' + practitionerId)
0
21:56:54.239 Resolved practitionerId: user-7af2885d-d180-4264-b74f-523d23d91c9c
33
Given path 'Practitioner', practitionerId
0
34
When method GET
4983
21:56:54.240 request: 2 > GET https://hapi.fhir.org/baseR4/Practitioner/user-7af2885d-d180-4264-b74f-523d23d91c9c 2 > Host: hapi.fhir.org 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.14 (Java/17.0.18) 2 > Accept-Encoding: gzip,deflate 21:56:59.222 response time in milliseconds: 4981 2 < 200 2 < Server: nginx/1.24.0 (Ubuntu) 2 < Date: Tue, 21 Apr 2026 21:56:59 GMT 2 < Content-Type: application/fhir+json;charset=utf-8 2 < Transfer-Encoding: chunked 2 < Connection: keep-alive 2 < X-Powered-By: HAPI FHIR 8.9.4-SNAPSHOT/eee190b153/2026-02-26 REST Server (FHIR Server; FHIR 4.0.1/R4) 2 < ETag: W/"1" 2 < X-Request-ID: KhFMnVoatJRYzoSd 2 < Content-Location: https://hapi.fhir.org/baseR4/Practitioner/user-7af2885d-d180-4264-b74f-523d23d91c9c/_history/1 2 < Last-Modified: Tue, 10 Feb 2026 08:16:51 GMT { "resourceType": "Practitioner", "id": "user-7af2885d-d180-4264-b74f-523d23d91c9c", "meta": { "versionId": "1", "lastUpdated": "2026-02-10T08:16:51.282+00:00", "source": "#TzQZdTKvLQ0KKiRN" }, "extension": [ { "url": "urn:com:optum:vcce:ext:identity-provider-type", "valueCodeableConcept": { "coding": [ { "system": "urn:com:optum:vcce:cs:identity-provider-type", "code": "92", "display": "Optum ID" } ], "text": "Optum ID" } } ], "identifier": [ { "system": "urn:com:optum:vcce:user-id", "value": "7af2885d-d180-4264-b74f-523d23d91c9c" }, { "system": "urn:com:optum:vcce:alt-user-id", "value": "shyamlata.katiyar@optum.com" } ], "active": true, "name": [ { "family": "Katiyar", "given": [ "Shyamlata" ] } ], "telecom": [ { "system": "email", "value": "shyamlata.katiyar@optum.com" } ] }
35
Then status 200
0
36
And match response.name == '#[_ > 0]'
1
Scenario: [3:38] TC-PRA-003 | REQ-PRA-003 identifier system and value are present (conditional)
ms: 9949
>>
Background:
11
* url baseUrl
0
21:56:50.275 baseUrl: https://hapi.fhir.org/baseR4 21:56:50.275 fhirVersion: 4.0.1
12
Given path 'Practitioner'
0
13
And param _count = '1'
0
14
When method GET
4961
21:56:50.276 request: 1 > GET https://hapi.fhir.org/baseR4/Practitioner?_count=1 1 > Host: hapi.fhir.org 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.14 (Java/17.0.18) 1 > Accept-Encoding: gzip,deflate 21:56:55.236 response time in milliseconds: 4960 1 < 200 1 < Server: nginx/1.24.0 (Ubuntu) 1 < Date: Tue, 21 Apr 2026 21:56:55 GMT 1 < Content-Type: application/fhir+json;charset=utf-8 1 < Transfer-Encoding: chunked 1 < Connection: keep-alive 1 < X-Cache: HIT from https://hapi.fhir.org/baseR4 1 < X-Powered-By: HAPI FHIR 8.9.4-SNAPSHOT/eee190b153/2026-02-26 REST Server (FHIR Server; FHIR 4.0.1/R4) 1 < X-Request-ID: 5IVEVdweBCtowBgY 1 < Last-Modified: Tue, 21 Apr 2026 21:56:51 GMT { "resourceType": "Bundle", "id": "e7da4d25-1591-43b8-87a8-9a24fa8beba2", "meta": { "lastUpdated": "2026-04-21T21:56:51.201+00:00" }, "type": "searchset", "link": [ { "relation": "self", "url": "https://hapi.fhir.org/baseR4/Practitioner?_count=1" }, { "relation": "next", "url": "https://hapi.fhir.org/baseR4?_getpages=e7da4d25-1591-43b8-87a8-9a24fa8beba2&_getpagesoffset=1&_count=1&_pretty=true&_bundletype=searchset" } ], "entry": [ { "fullUrl": "https://hapi.fhir.org/baseR4/Practitioner/user-7af2885d-d180-4264-b74f-523d23d91c9c", "resource": { "resourceType": "Practitioner", "id": "user-7af2885d-d180-4264-b74f-523d23d91c9c", "meta": { "versionId": "1", "lastUpdated": "2026-02-10T08:16:51.282+00:00", "source": "#TzQZdTKvLQ0KKiRN" }, "extension": [ { "url": "urn:com:optum:vcce:ext:identity-provider-type", "valueCodeableConcept": { "coding": [ { "system": "urn:com:optum:vcce:cs:identity-provider-type", "code": "92", "display": "Optum ID" } ], "text": "Optum ID" } } ], "identifier": [ { "system": "urn:com:optum:vcce:user-id", "value": "7af2885d-d180-4264-b74f-523d23d91c9c" }, { "system": "urn:com:optum:vcce:alt-user-id", "value": "shyamlata.katiyar@optum.com" } ], "active": true, "name": [ { "family": "Katiyar", "given": [ "Shyamlata" ] } ], "telecom": [ { "system": "email", "value": "shyamlata.katiyar@optum.com" } ] }, "search": { "mode": "match" } } ] }
15
Then status 200
0
16
* def hasEntry = response.entry != null && response.entry.length > 0
0
17
* match hasEntry == true
0
18
* def practitionerId = response.entry[0].resource.id
0
19
* match response.entry[0].resource.resourceType == 'Practitioner'
0
20
* karate.log('Resolved practitionerId: ' + practitionerId)
0
21:56:55.238 Resolved practitionerId: user-7af2885d-d180-4264-b74f-523d23d91c9c
39
Given path 'Practitioner', practitionerId
0
40
When method GET
4984
21:56:55.239 request: 2 > GET https://hapi.fhir.org/baseR4/Practitioner/user-7af2885d-d180-4264-b74f-523d23d91c9c 2 > Host: hapi.fhir.org 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.14 (Java/17.0.18) 2 > Accept-Encoding: gzip,deflate 21:57:00.222 response time in milliseconds: 4983 2 < 200 2 < Server: nginx/1.24.0 (Ubuntu) 2 < Date: Tue, 21 Apr 2026 21:57:00 GMT 2 < Content-Type: application/fhir+json;charset=utf-8 2 < Transfer-Encoding: chunked 2 < Connection: keep-alive 2 < X-Powered-By: HAPI FHIR 8.9.4-SNAPSHOT/eee190b153/2026-02-26 REST Server (FHIR Server; FHIR 4.0.1/R4) 2 < ETag: W/"1" 2 < X-Request-ID: cedvXJBlr3ULwkdT 2 < Content-Location: https://hapi.fhir.org/baseR4/Practitioner/user-7af2885d-d180-4264-b74f-523d23d91c9c/_history/1 2 < Last-Modified: Tue, 10 Feb 2026 08:16:51 GMT { "resourceType": "Practitioner", "id": "user-7af2885d-d180-4264-b74f-523d23d91c9c", "meta": { "versionId": "1", "lastUpdated": "2026-02-10T08:16:51.282+00:00", "source": "#TzQZdTKvLQ0KKiRN" }, "extension": [ { "url": "urn:com:optum:vcce:ext:identity-provider-type", "valueCodeableConcept": { "coding": [ { "system": "urn:com:optum:vcce:cs:identity-provider-type", "code": "92", "display": "Optum ID" } ], "text": "Optum ID" } } ], "identifier": [ { "system": "urn:com:optum:vcce:user-id", "value": "7af2885d-d180-4264-b74f-523d23d91c9c" }, { "system": "urn:com:optum:vcce:alt-user-id", "value": "shyamlata.katiyar@optum.com" } ], "active": true, "name": [ { "family": "Katiyar", "given": [ "Shyamlata" ] } ], "telecom": [ { "system": "email", "value": "shyamlata.katiyar@optum.com" } ] }
41
Then status 200
0
42
* def hasIdentifier = response.identifier != null && response.identifier.length > 0
0
43
* if (!hasIdentifier) karate.log('TC-PRA-003: SKIP — identifier not present on resolved Practitioner ' + practitionerId)
0
44
* if (hasIdentifier) karate.match(response.identifier[0].system, '#present')
0
45
* if (hasIdentifier) karate.match(response.identifier[0].value, '#present')
0
Scenario: [4:47] TC-PRA-004 | REQ-PRA-001 | REQ-OO-001 non-existent ID returns 404 and OperationOutcome
ms: 9991
>>
Background:
11
* url baseUrl
0
21:56:52.238 baseUrl: https://hapi.fhir.org/baseR4 21:56:52.238 fhirVersion: 4.0.1
12
Given path 'Practitioner'
0
13
And param _count = '1'
0
14
When method GET
4996
21:56:52.239 request: 1 > GET https://hapi.fhir.org/baseR4/Practitioner?_count=1 1 > Host: hapi.fhir.org 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.14 (Java/17.0.18) 1 > Accept-Encoding: gzip,deflate 21:56:57.235 response time in milliseconds: 4995 1 < 200 1 < Server: nginx/1.24.0 (Ubuntu) 1 < Date: Tue, 21 Apr 2026 21:56:57 GMT 1 < Content-Type: application/fhir+json;charset=utf-8 1 < Transfer-Encoding: chunked 1 < Connection: keep-alive 1 < X-Cache: HIT from https://hapi.fhir.org/baseR4 1 < X-Powered-By: HAPI FHIR 8.9.4-SNAPSHOT/eee190b153/2026-02-26 REST Server (FHIR Server; FHIR 4.0.1/R4) 1 < X-Request-ID: CUG0TXG1E3YfiQcW 1 < Last-Modified: Tue, 21 Apr 2026 21:56:51 GMT { "resourceType": "Bundle", "id": "e7da4d25-1591-43b8-87a8-9a24fa8beba2", "meta": { "lastUpdated": "2026-04-21T21:56:51.201+00:00" }, "type": "searchset", "link": [ { "relation": "self", "url": "https://hapi.fhir.org/baseR4/Practitioner?_count=1" }, { "relation": "next", "url": "https://hapi.fhir.org/baseR4?_getpages=e7da4d25-1591-43b8-87a8-9a24fa8beba2&_getpagesoffset=1&_count=1&_pretty=true&_bundletype=searchset" } ], "entry": [ { "fullUrl": "https://hapi.fhir.org/baseR4/Practitioner/user-7af2885d-d180-4264-b74f-523d23d91c9c", "resource": { "resourceType": "Practitioner", "id": "user-7af2885d-d180-4264-b74f-523d23d91c9c", "meta": { "versionId": "1", "lastUpdated": "2026-02-10T08:16:51.282+00:00", "source": "#TzQZdTKvLQ0KKiRN" }, "extension": [ { "url": "urn:com:optum:vcce:ext:identity-provider-type", "valueCodeableConcept": { "coding": [ { "system": "urn:com:optum:vcce:cs:identity-provider-type", "code": "92", "display": "Optum ID" } ], "text": "Optum ID" } } ], "identifier": [ { "system": "urn:com:optum:vcce:user-id", "value": "7af2885d-d180-4264-b74f-523d23d91c9c" }, { "system": "urn:com:optum:vcce:alt-user-id", "value": "shyamlata.katiyar@optum.com" } ], "active": true, "name": [ { "family": "Katiyar", "given": [ "Shyamlata" ] } ], "telecom": [ { "system": "email", "value": "shyamlata.katiyar@optum.com" } ] }, "search": { "mode": "match" } } ] }
15
Then status 200
0
16
* def hasEntry = response.entry != null && response.entry.length > 0
0
17
* match hasEntry == true
0
18
* def practitionerId = response.entry[0].resource.id
0
19
* match response.entry[0].resource.resourceType == 'Practitioner'
0
20
* karate.log('Resolved practitionerId: ' + practitionerId)
0
21:56:57.236 Resolved practitionerId: user-7af2885d-d180-4264-b74f-523d23d91c9c
48
Given path 'Practitioner', 'INVALID-ID-99999'
0
49
When method GET
4992
21:56:57.237 request: 2 > GET https://hapi.fhir.org/baseR4/Practitioner/INVALID-ID-99999 2 > Host: hapi.fhir.org 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.14 (Java/17.0.18) 2 > Accept-Encoding: gzip,deflate 21:57:02.228 response time in milliseconds: 4991 2 < 404 2 < Server: nginx/1.24.0 (Ubuntu) 2 < Date: Tue, 21 Apr 2026 21:57:02 GMT 2 < Content-Type: application/fhir+json;charset=utf-8 2 < Transfer-Encoding: chunked 2 < Connection: keep-alive 2 < X-Powered-By: HAPI FHIR 8.9.4-SNAPSHOT/eee190b153/2026-02-26 REST Server (FHIR Server; FHIR 4.0.1/R4) 2 < X-Request-ID: hF0bzTjI0weckdNs { "resourceType": "OperationOutcome", "text": { "status": "generated", "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td>HAPI-2001: Resource Practitioner/INVALID-ID-99999 is not known</td></tr></table></div>" }, "issue": [ { "severity": "error", "code": "processing", "diagnostics": "HAPI-2001: Resource Practitioner/INVALID-ID-99999 is not known" } ] }
50
Then status 404
0
51
And match response.resourceType == 'OperationOutcome'
0
52
And match response.issue == '#[_ > 0]'
1
53
* karate.log('404 severity: ' + response.issue[0].severity)
0
21:57:02.230 404 severity: error
54
* karate.log('404 code: ' + response.issue[0].code)
0
21:57:02.230 404 code: processing
Scenario: [5:56] TC-PRA-005 | REQ-GEN-001 captured practitioner-read.json exists for HL7 Validator
ms: 5004
>>
Background:
11
* url baseUrl
0
21:56:56.231 baseUrl: https://hapi.fhir.org/baseR4 21:56:56.231 fhirVersion: 4.0.1
12
Given path 'Practitioner'
0
13
And param _count = '1'
0
14
When method GET
5003
21:56:56.232 request: 1 > GET https://hapi.fhir.org/baseR4/Practitioner?_count=1 1 > Host: hapi.fhir.org 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.14 (Java/17.0.18) 1 > Accept-Encoding: gzip,deflate 21:57:01.234 response time in milliseconds: 5001 1 < 200 1 < Server: nginx/1.24.0 (Ubuntu) 1 < Date: Tue, 21 Apr 2026 21:57:01 GMT 1 < Content-Type: application/fhir+json;charset=utf-8 1 < Transfer-Encoding: chunked 1 < Connection: keep-alive 1 < X-Cache: HIT from https://hapi.fhir.org/baseR4 1 < X-Powered-By: HAPI FHIR 8.9.4-SNAPSHOT/eee190b153/2026-02-26 REST Server (FHIR Server; FHIR 4.0.1/R4) 1 < X-Request-ID: UUh4C7whaIg5lmqE 1 < Last-Modified: Tue, 21 Apr 2026 21:56:51 GMT { "resourceType": "Bundle", "id": "e7da4d25-1591-43b8-87a8-9a24fa8beba2", "meta": { "lastUpdated": "2026-04-21T21:56:51.201+00:00" }, "type": "searchset", "link": [ { "relation": "self", "url": "https://hapi.fhir.org/baseR4/Practitioner?_count=1" }, { "relation": "next", "url": "https://hapi.fhir.org/baseR4?_getpages=e7da4d25-1591-43b8-87a8-9a24fa8beba2&_getpagesoffset=1&_count=1&_pretty=true&_bundletype=searchset" } ], "entry": [ { "fullUrl": "https://hapi.fhir.org/baseR4/Practitioner/user-7af2885d-d180-4264-b74f-523d23d91c9c", "resource": { "resourceType": "Practitioner", "id": "user-7af2885d-d180-4264-b74f-523d23d91c9c", "meta": { "versionId": "1", "lastUpdated": "2026-02-10T08:16:51.282+00:00", "source": "#TzQZdTKvLQ0KKiRN" }, "extension": [ { "url": "urn:com:optum:vcce:ext:identity-provider-type", "valueCodeableConcept": { "coding": [ { "system": "urn:com:optum:vcce:cs:identity-provider-type", "code": "92", "display": "Optum ID" } ], "text": "Optum ID" } } ], "identifier": [ { "system": "urn:com:optum:vcce:user-id", "value": "7af2885d-d180-4264-b74f-523d23d91c9c" }, { "system": "urn:com:optum:vcce:alt-user-id", "value": "shyamlata.katiyar@optum.com" } ], "active": true, "name": [ { "family": "Katiyar", "given": [ "Shyamlata" ] } ], "telecom": [ { "system": "email", "value": "shyamlata.katiyar@optum.com" } ] }, "search": { "mode": "match" } } ] }
15
Then status 200
0
16
* def hasEntry = response.entry != null && response.entry.length > 0
0
17
* match hasEntry == true
0
18
* def practitionerId = response.entry[0].resource.id
0
19
* match response.entry[0].resource.resourceType == 'Practitioner'
0
20
* karate.log('Resolved practitionerId: ' + practitionerId)
0
21:57:01.234 Resolved practitionerId: user-7af2885d-d180-4264-b74f-523d23d91c9c
# karate.write() resolves paths under target/ when running under Maven
58
* def fileExists = java.nio.file.Files.exists(java.nio.file.Paths.get('target/responses/practitioner/practitioner-read.json'))
1
59
* assert fileExists == true
0
Scenario: [6:61] TC-PRA-006 | REQ-GEN-002b meta.versionId is present and non-null
ms: 5985
>>
Background:
11
* url baseUrl
0
21:56:58.237 baseUrl: https://hapi.fhir.org/baseR4 21:56:58.237 fhirVersion: 4.0.1
12
Given path 'Practitioner'
0
13
And param _count = '1'
0
14
When method GET
4997
21:56:58.238 request: 1 > GET https://hapi.fhir.org/baseR4/Practitioner?_count=1 1 > Host: hapi.fhir.org 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.14 (Java/17.0.18) 1 > Accept-Encoding: gzip,deflate 21:57:03.234 response time in milliseconds: 4995 1 < 200 1 < Server: nginx/1.24.0 (Ubuntu) 1 < Date: Tue, 21 Apr 2026 21:57:03 GMT 1 < Content-Type: application/fhir+json;charset=utf-8 1 < Transfer-Encoding: chunked 1 < Connection: keep-alive 1 < X-Cache: HIT from https://hapi.fhir.org/baseR4 1 < X-Powered-By: HAPI FHIR 8.9.4-SNAPSHOT/eee190b153/2026-02-26 REST Server (FHIR Server; FHIR 4.0.1/R4) 1 < X-Request-ID: 3dKbJTtKFUJOAUuw 1 < Last-Modified: Tue, 21 Apr 2026 21:56:51 GMT { "resourceType": "Bundle", "id": "e7da4d25-1591-43b8-87a8-9a24fa8beba2", "meta": { "lastUpdated": "2026-04-21T21:56:51.201+00:00" }, "type": "searchset", "link": [ { "relation": "self", "url": "https://hapi.fhir.org/baseR4/Practitioner?_count=1" }, { "relation": "next", "url": "https://hapi.fhir.org/baseR4?_getpages=e7da4d25-1591-43b8-87a8-9a24fa8beba2&_getpagesoffset=1&_count=1&_pretty=true&_bundletype=searchset" } ], "entry": [ { "fullUrl": "https://hapi.fhir.org/baseR4/Practitioner/user-7af2885d-d180-4264-b74f-523d23d91c9c", "resource": { "resourceType": "Practitioner", "id": "user-7af2885d-d180-4264-b74f-523d23d91c9c", "meta": { "versionId": "1", "lastUpdated": "2026-02-10T08:16:51.282+00:00", "source": "#TzQZdTKvLQ0KKiRN" }, "extension": [ { "url": "urn:com:optum:vcce:ext:identity-provider-type", "valueCodeableConcept": { "coding": [ { "system": "urn:com:optum:vcce:cs:identity-provider-type", "code": "92", "display": "Optum ID" } ], "text": "Optum ID" } } ], "identifier": [ { "system": "urn:com:optum:vcce:user-id", "value": "7af2885d-d180-4264-b74f-523d23d91c9c" }, { "system": "urn:com:optum:vcce:alt-user-id", "value": "shyamlata.katiyar@optum.com" } ], "active": true, "name": [ { "family": "Katiyar", "given": [ "Shyamlata" ] } ], "telecom": [ { "system": "email", "value": "shyamlata.katiyar@optum.com" } ] }, "search": { "mode": "match" } } ] }
15
Then status 200
0
16
* def hasEntry = response.entry != null && response.entry.length > 0
0
17
* match hasEntry == true
0
18
* def practitionerId = response.entry[0].resource.id
0
19
* match response.entry[0].resource.resourceType == 'Practitioner'
0
20
* karate.log('Resolved practitionerId: ' + practitionerId)
0
21:57:03.235 Resolved practitionerId: user-7af2885d-d180-4264-b74f-523d23d91c9c
62
Given path 'Practitioner', practitionerId
0
63
When method GET
987
21:57:03.236 request: 2 > GET https://hapi.fhir.org/baseR4/Practitioner/user-7af2885d-d180-4264-b74f-523d23d91c9c 2 > Host: hapi.fhir.org 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.14 (Java/17.0.18) 2 > Accept-Encoding: gzip,deflate 21:57:04.222 response time in milliseconds: 985 2 < 200 2 < Server: nginx/1.24.0 (Ubuntu) 2 < Date: Tue, 21 Apr 2026 21:57:04 GMT 2 < Content-Type: application/fhir+json;charset=utf-8 2 < Transfer-Encoding: chunked 2 < Connection: keep-alive 2 < X-Powered-By: HAPI FHIR 8.9.4-SNAPSHOT/eee190b153/2026-02-26 REST Server (FHIR Server; FHIR 4.0.1/R4) 2 < ETag: W/"1" 2 < X-Request-ID: jZKQyke6jJCEZOnV 2 < Content-Location: https://hapi.fhir.org/baseR4/Practitioner/user-7af2885d-d180-4264-b74f-523d23d91c9c/_history/1 2 < Last-Modified: Tue, 10 Feb 2026 08:16:51 GMT { "resourceType": "Practitioner", "id": "user-7af2885d-d180-4264-b74f-523d23d91c9c", "meta": { "versionId": "1", "lastUpdated": "2026-02-10T08:16:51.282+00:00", "source": "#TzQZdTKvLQ0KKiRN" }, "extension": [ { "url": "urn:com:optum:vcce:ext:identity-provider-type", "valueCodeableConcept": { "coding": [ { "system": "urn:com:optum:vcce:cs:identity-provider-type", "code": "92", "display": "Optum ID" } ], "text": "Optum ID" } } ], "identifier": [ { "system": "urn:com:optum:vcce:user-id", "value": "7af2885d-d180-4264-b74f-523d23d91c9c" }, { "system": "urn:com:optum:vcce:alt-user-id", "value": "shyamlata.katiyar@optum.com" } ], "active": true, "name": [ { "family": "Katiyar", "given": [ "Shyamlata" ] } ], "telecom": [ { "system": "email", "value": "shyamlata.katiyar@optum.com" } ] }
64
Then status 200
0
65
And match response.meta.versionId == '#present'
0