Scenario: [1:22]
TC-PRA-001 | REQ-PRA-001 GET /Practitioner/{id} returns 200 and resourceType = Practitioner
ms: 10001
>>
Background:
11
* url baseUrl
0
03:41:27.352 baseUrl: https://hapi.fhir.org/baseR4
03:41:27.352 fhirVersion: 4.0.1
12
Given path 'Practitioner'
0
13
And param _count = '1'
0
14
When method GET
5016
03:41:27.353 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
03:41:32.368 response time in milliseconds: 5015
1 < 200
1 < Server: nginx/1.24.0 (Ubuntu)
1 < Date: Thu, 16 Apr 2026 03:41:32 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: LCQIkgfy5RGXm8Sr
1 < Last-Modified: Thu, 16 Apr 2026 03:41:32 GMT
{
"resourceType": "Bundle",
"id": "175fdeb0-c457-461f-b07d-c309af74cc16",
"meta": {
"lastUpdated": "2026-04-16T03:41:32.318+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=175fdeb0-c457-461f-b07d-c309af74cc16&_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
03:41:32.370 Resolved practitionerId: user-7af2885d-d180-4264-b74f-523d23d91c9c
23
Given path 'Practitioner', practitionerId
0
24
When method GET
4981
03:41:32.371 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
03:41:37.351 response time in milliseconds: 4979
2 < 200
2 < Server: nginx/1.24.0 (Ubuntu)
2 < Date: Thu, 16 Apr 2026 03:41:37 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: tldOEiGPKE1UMogj
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
03:41:37.353 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: 9971
>>
Background:
11
* url baseUrl
0
03:41:30.378 baseUrl: https://hapi.fhir.org/baseR4
03:41:30.378 fhirVersion: 4.0.1
12
Given path 'Practitioner'
0
13
And param _count = '1'
0
14
When method GET
4984
03:41:30.379 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
03:41:35.362 response time in milliseconds: 4983
1 < 200
1 < Server: nginx/1.24.0 (Ubuntu)
1 < Date: Thu, 16 Apr 2026 03:41:35 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: HytHzGIvBIRgBrqF
1 < Last-Modified: Thu, 16 Apr 2026 03:41:32 GMT
{
"resourceType": "Bundle",
"id": "175fdeb0-c457-461f-b07d-c309af74cc16",
"meta": {
"lastUpdated": "2026-04-16T03:41:32.318+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=175fdeb0-c457-461f-b07d-c309af74cc16&_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
03:41:35.364 Resolved practitionerId: user-7af2885d-d180-4264-b74f-523d23d91c9c
33
Given path 'Practitioner', practitionerId
0
34
When method GET
4984
03:41:35.365 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
03:41:40.348 response time in milliseconds: 4983
2 < 200
2 < Server: nginx/1.24.0 (Ubuntu)
2 < Date: Thu, 16 Apr 2026 03:41:40 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: 6xJb4yaeiHPMRLZl
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: 9964
>>
Background:
11
* url baseUrl
0
03:41:31.385 baseUrl: https://hapi.fhir.org/baseR4
03:41:31.385 fhirVersion: 4.0.1
12
Given path 'Practitioner'
0
13
And param _count = '1'
0
14
When method GET
4979
03:41:31.385 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
03:41:36.364 response time in milliseconds: 4978
1 < 200
1 < Server: nginx/1.24.0 (Ubuntu)
1 < Date: Thu, 16 Apr 2026 03:41:36 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: G9CZM14qGMMi2fkS
1 < Last-Modified: Thu, 16 Apr 2026 03:41:32 GMT
{
"resourceType": "Bundle",
"id": "175fdeb0-c457-461f-b07d-c309af74cc16",
"meta": {
"lastUpdated": "2026-04-16T03:41:32.318+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=175fdeb0-c457-461f-b07d-c309af74cc16&_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
03:41:36.365 Resolved practitionerId: user-7af2885d-d180-4264-b74f-523d23d91c9c
39
Given path 'Practitioner', practitionerId
0
40
When method GET
4982
03:41:36.366 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
03:41:41.348 response time in milliseconds: 4981
2 < 200
2 < Server: nginx/1.24.0 (Ubuntu)
2 < Date: Thu, 16 Apr 2026 03:41:41 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: 2RoscgOCsPAkTFXs
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: 9995
>>
Background:
11
* url baseUrl
0
03:41:33.359 baseUrl: https://hapi.fhir.org/baseR4
03:41:33.359 fhirVersion: 4.0.1
12
Given path 'Practitioner'
0
13
And param _count = '1'
0
14
When method GET
5003
03:41:33.360 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
03:41:38.362 response time in milliseconds: 5002
1 < 200
1 < Server: nginx/1.24.0 (Ubuntu)
1 < Date: Thu, 16 Apr 2026 03:41:38 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: Hl6iUNuXDE2gMtAo
1 < Last-Modified: Thu, 16 Apr 2026 03:41:32 GMT
{
"resourceType": "Bundle",
"id": "175fdeb0-c457-461f-b07d-c309af74cc16",
"meta": {
"lastUpdated": "2026-04-16T03:41:32.318+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=175fdeb0-c457-461f-b07d-c309af74cc16&_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
03:41:38.364 Resolved practitionerId: user-7af2885d-d180-4264-b74f-523d23d91c9c
48
Given path 'Practitioner', 'INVALID-ID-99999'
0
49
When method GET
4989
03:41:38.364 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
03:41:43.353 response time in milliseconds: 4988
2 < 404
2 < Server: nginx/1.24.0 (Ubuntu)
2 < Date: Thu, 16 Apr 2026 03:41:43 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: Vr8FlYBj0C8UjLNf
{
"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]'
0
53
* karate.log('404 severity: ' + response.issue[0].severity)
0
03:41:43.354 404 severity: error
54
* karate.log('404 code: ' + response.issue[0].code)
0
03:41:43.354 404 code: processing
Scenario: [5:56]
TC-PRA-005 | REQ-GEN-001 captured practitioner-read.json exists for HL7 Validator
ms: 5009
>>
Background:
11
* url baseUrl
0
03:41:37.355 baseUrl: https://hapi.fhir.org/baseR4
03:41:37.355 fhirVersion: 4.0.1
12
Given path 'Practitioner'
0
13
And param _count = '1'
0
14
When method GET
5008
03:41:37.356 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
03:41:42.363 response time in milliseconds: 5006
1 < 200
1 < Server: nginx/1.24.0 (Ubuntu)
1 < Date: Thu, 16 Apr 2026 03:41:42 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: o3dbVg10ZUFLoOZt
1 < Last-Modified: Thu, 16 Apr 2026 03:41:32 GMT
{
"resourceType": "Bundle",
"id": "175fdeb0-c457-461f-b07d-c309af74cc16",
"meta": {
"lastUpdated": "2026-04-16T03:41:32.318+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=175fdeb0-c457-461f-b07d-c309af74cc16&_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
03:41:42.364 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: 5988
>>
Background:
11
* url baseUrl
0
03:41:39.362 baseUrl: https://hapi.fhir.org/baseR4
03:41:39.362 fhirVersion: 4.0.1
12
Given path 'Practitioner'
0
13
And param _count = '1'
0
14
When method GET
4999
03:41:39.363 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
03:41:44.361 response time in milliseconds: 4998
1 < 200
1 < Server: nginx/1.24.0 (Ubuntu)
1 < Date: Thu, 16 Apr 2026 03:41:44 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: kjjsvh4zYhj0IxMF
1 < Last-Modified: Thu, 16 Apr 2026 03:41:32 GMT
{
"resourceType": "Bundle",
"id": "175fdeb0-c457-461f-b07d-c309af74cc16",
"meta": {
"lastUpdated": "2026-04-16T03:41:32.318+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=175fdeb0-c457-461f-b07d-c309af74cc16&_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
03:41:44.362 Resolved practitionerId: user-7af2885d-d180-4264-b74f-523d23d91c9c
62
Given path 'Practitioner', practitionerId
0
63
When method GET
987
03:41:44.363 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
03:41:45.350 response time in milliseconds: 986
2 < 200
2 < Server: nginx/1.24.0 (Ubuntu)
2 < Date: Thu, 16 Apr 2026 03:41:45 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: nqX8lo7CeI0kwOuX
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