|
1325 | 1325 | "name": "Get proxy relationships (Consent)", |
1326 | 1326 | "item": [ |
1327 | 1327 | { |
1328 | | - "name": "Filtered proxy relationships by 'active' status", |
| 1328 | + "name": "Filtered proxy relationships by 'active' status include details", |
1329 | 1329 | "event": [ |
1330 | 1330 | { |
1331 | 1331 | "listen": "test", |
|
1338 | 1338 | " \"type\": \"searchset\",", |
1339 | 1339 | " \"entry\": [", |
1340 | 1340 | " {", |
| 1341 | + " \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/BE974742\",", |
| 1342 | + " \"resource\": {", |
| 1343 | + " \"resourceType\": \"RelatedPerson\",", |
| 1344 | + " \"id\": \"BE974742\",", |
| 1345 | + " \"identifier\": [", |
| 1346 | + " {", |
| 1347 | + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", |
| 1348 | + " \"value\": \"9000000017\"", |
| 1349 | + " },", |
| 1350 | + " {", |
| 1351 | + " \"system\": \"https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier\",", |
| 1352 | + " \"value\": \"ABC0000003\"", |
| 1353 | + " }", |
| 1354 | + " ],", |
| 1355 | + " \"patient\": {", |
| 1356 | + " \"type\": \"Patient\",", |
| 1357 | + " \"identifier\": {", |
| 1358 | + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", |
| 1359 | + " \"value\": \"9000000017\"", |
| 1360 | + " }", |
| 1361 | + " },", |
| 1362 | + " \"relationship\": [", |
| 1363 | + " {", |
| 1364 | + " \"coding\": [", |
| 1365 | + " {", |
| 1366 | + " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\",", |
| 1367 | + " \"code\": \"PRN\",", |
| 1368 | + " \"display\": \"Parent\"", |
| 1369 | + " },", |
| 1370 | + " {", |
| 1371 | + " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\",", |
| 1372 | + " \"code\": \"MTH\",", |
| 1373 | + " \"display\": \"mother\"", |
| 1374 | + " }", |
| 1375 | + " ]", |
| 1376 | + " }", |
| 1377 | + " ]", |
| 1378 | + " },", |
| 1379 | + " \"search\": {", |
| 1380 | + " \"mode\": \"include\"", |
| 1381 | + " }", |
| 1382 | + " },", |
| 1383 | + " {", |
| 1384 | + " \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/Patient/A3CC67E2\",", |
| 1385 | + " \"resource\": {", |
| 1386 | + " \"resourceType\": \"Patient\",", |
| 1387 | + " \"id\": \"A3CC67E2\",", |
| 1388 | + " \"identifier\": [", |
| 1389 | + " {", |
| 1390 | + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", |
| 1391 | + " \"value\": \"9000000009\"", |
| 1392 | + " },", |
| 1393 | + " {", |
| 1394 | + " \"system\": \"https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier\",", |
| 1395 | + " \"value\": \"ABC1234567\"", |
| 1396 | + " }", |
| 1397 | + " ],", |
| 1398 | + " \"name\": [", |
| 1399 | + " {", |
| 1400 | + " \"id\": \"123456\",", |
| 1401 | + " \"use\": \"usual\",", |
| 1402 | + " \"period\": {", |
| 1403 | + " \"start\": \"2020-01-01\",", |
| 1404 | + " \"end\": \"2021-12-31\"", |
| 1405 | + " },", |
| 1406 | + " \"given\": [", |
| 1407 | + " \"Jane Marie Anne\"", |
| 1408 | + " ],", |
| 1409 | + " \"family\": \"Smith\",", |
| 1410 | + " \"prefix\": [", |
| 1411 | + " \"Mrs\"", |
| 1412 | + " ],", |
| 1413 | + " \"suffix\": [", |
| 1414 | + " \"MBE\",", |
| 1415 | + " \"PhD\"", |
| 1416 | + " ]", |
| 1417 | + " }", |
| 1418 | + " ],", |
| 1419 | + " \"birthDate\": \"2022-10-22\",", |
| 1420 | + " \"generalPractitioner\": [", |
| 1421 | + " {", |
| 1422 | + " \"type\": \"Organization\",", |
| 1423 | + " \"identifier\": {", |
| 1424 | + " \"value\": \"ODS12345\",", |
| 1425 | + " \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"", |
| 1426 | + " }", |
| 1427 | + " }", |
| 1428 | + " ]", |
| 1429 | + " },", |
| 1430 | + " \"search\": {", |
| 1431 | + " \"mode\": \"include\"", |
| 1432 | + " }", |
| 1433 | + " },", |
| 1434 | + " {", |
1341 | 1435 | " \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/BBCC67E9\",", |
1342 | 1436 | " \"resource\": {", |
1343 | 1437 | " \"resourceType\": \"Consent\",", |
|
1392 | 1486 | " }", |
1393 | 1487 | " },", |
1394 | 1488 | " {", |
| 1489 | + " \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/RP974720\",", |
| 1490 | + " \"resource\": {", |
| 1491 | + " \"resourceType\": \"RelatedPerson\",", |
| 1492 | + " \"id\": \"RP974720\",", |
| 1493 | + " \"identifier\": [", |
| 1494 | + " {", |
| 1495 | + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", |
| 1496 | + " \"value\": \"9000000017\"", |
| 1497 | + " },", |
| 1498 | + " {", |
| 1499 | + " \"system\": \"https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier\",", |
| 1500 | + " \"value\": \"ABC0000003\"", |
| 1501 | + " }", |
| 1502 | + " ],", |
| 1503 | + " \"patient\": {", |
| 1504 | + " \"type\": \"Patient\",", |
| 1505 | + " \"identifier\": {", |
| 1506 | + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", |
| 1507 | + " \"value\": \"9000000005\"", |
| 1508 | + " }", |
| 1509 | + " },", |
| 1510 | + " \"relationship\": [", |
| 1511 | + " {", |
| 1512 | + " \"coding\": [", |
| 1513 | + " {", |
| 1514 | + " \"system\": \"https://fhir.hl7.org.uk/CodeSystem/UKCore-AdditionalPersonRelationshipRole\",", |
| 1515 | + " \"code\": \"Personal\",", |
| 1516 | + " \"display\": \"Personal relationship with the patient\"", |
| 1517 | + " }", |
| 1518 | + " ]", |
| 1519 | + " }", |
| 1520 | + " ]", |
| 1521 | + " },", |
| 1522 | + " \"search\": {", |
| 1523 | + " \"mode\": \"include\"", |
| 1524 | + " }", |
| 1525 | + " },", |
| 1526 | + " {", |
| 1527 | + " \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/Patient/DFCC67F5\",", |
| 1528 | + " \"resource\": {", |
| 1529 | + " \"resourceType\": \"Patient\",", |
| 1530 | + " \"id\": \"DFCC67F5\",", |
| 1531 | + " \"identifier\": [", |
| 1532 | + " {", |
| 1533 | + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", |
| 1534 | + " \"value\": \"9000000005\"", |
| 1535 | + " },", |
| 1536 | + " {", |
| 1537 | + " \"system\": \"https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier\",", |
| 1538 | + " \"value\": \"ABC9999999\"", |
| 1539 | + " }", |
| 1540 | + " ],", |
| 1541 | + " \"name\": [", |
| 1542 | + " {", |
| 1543 | + " \"id\": \"123456\",", |
| 1544 | + " \"use\": \"usual\",", |
| 1545 | + " \"period\": {", |
| 1546 | + " \"start\": \"2020-01-01\",", |
| 1547 | + " \"end\": \"2021-12-31\"", |
| 1548 | + " },", |
| 1549 | + " \"given\": [", |
| 1550 | + " \"Sally\"", |
| 1551 | + " ],", |
| 1552 | + " \"family\": \"Evans\",", |
| 1553 | + " \"prefix\": [", |
| 1554 | + " \"Mrs\"", |
| 1555 | + " ]", |
| 1556 | + " }", |
| 1557 | + " ],", |
| 1558 | + " \"birthDate\": \"1995-10-22\",", |
| 1559 | + " \"generalPractitioner\": [", |
| 1560 | + " {", |
| 1561 | + " \"type\": \"Organization\",", |
| 1562 | + " \"identifier\": {", |
| 1563 | + " \"value\": \"ODS12345\",", |
| 1564 | + " \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"", |
| 1565 | + " }", |
| 1566 | + " }", |
| 1567 | + " ]", |
| 1568 | + " },", |
| 1569 | + " \"search\": {", |
| 1570 | + " \"mode\": \"include\"", |
| 1571 | + " }", |
| 1572 | + " },", |
| 1573 | + " {", |
1395 | 1574 | " \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/WWCC67T1\",", |
1396 | 1575 | " \"resource\": {", |
1397 | 1576 | " \"resourceType\": \"Consent\",", |
|
1477 | 1656 | "method": "GET", |
1478 | 1657 | "header": [], |
1479 | 1658 | "url": { |
1480 | | - "raw": "{{api_base_url}}/Consent?performer:identifier=9000000017&status=active", |
| 1659 | + "raw": "{{api_base_url}}/Consent?performer:identifier=9000000017&status=active&_include=Consent:performer&_include=Consent:patient", |
1481 | 1660 | "host": [ |
1482 | 1661 | "{{api_base_url}}" |
1483 | 1662 | ], |
|
1492 | 1671 | { |
1493 | 1672 | "key": "status", |
1494 | 1673 | "value": "active" |
| 1674 | + }, |
| 1675 | + { |
| 1676 | + "key": "_include", |
| 1677 | + "value": "Consent:performer" |
| 1678 | + }, |
| 1679 | + { |
| 1680 | + "key": "_include", |
| 1681 | + "value": "Consent:patient" |
1495 | 1682 | } |
1496 | 1683 | ] |
1497 | 1684 | } |
|
1969 | 2156 | "method": "GET", |
1970 | 2157 | "header": [], |
1971 | 2158 | "url": { |
1972 | | - "raw": "{{api_base_url}}/Consent?performer:identifier=9000000017&status=proposed,active", |
| 2159 | + "raw": "{{api_base_url}}/Consent?performer:identifier=9000000017&status=proposed&status=active&_include=Consent:patient", |
1973 | 2160 | "host": [ |
1974 | 2161 | "{{api_base_url}}" |
1975 | 2162 | ], |
|
1983 | 2170 | }, |
1984 | 2171 | { |
1985 | 2172 | "key": "status", |
1986 | | - "value": "proposed,active" |
| 2173 | + "value": "proposed" |
| 2174 | + }, |
| 2175 | + { |
| 2176 | + "key": "status", |
| 2177 | + "value": "active" |
| 2178 | + }, |
| 2179 | + { |
| 2180 | + "key": "_include", |
| 2181 | + "value": "Consent:patient" |
1987 | 2182 | } |
1988 | 2183 | ] |
1989 | 2184 | } |
|
3453 | 3648 | "method": "GET", |
3454 | 3649 | "header": [], |
3455 | 3650 | "url": { |
3456 | | - "raw": "{{api_base_url}}/Consent?performer:identifier=9000000022&_include=Consent:performer,Consent:patient", |
| 3651 | + "raw": "{{api_base_url}}/Consent?performer:identifier=9000000022&_include=Consent:performer&_include=Consent:patient", |
3457 | 3652 | "host": [ |
3458 | 3653 | "{{api_base_url}}" |
3459 | 3654 | ], |
|
3467 | 3662 | }, |
3468 | 3663 | { |
3469 | 3664 | "key": "_include", |
3470 | | - "value": "Consent:performer,Consent:patient" |
| 3665 | + "value": "Consent:performer" |
| 3666 | + }, |
| 3667 | + { |
| 3668 | + "key": "_include", |
| 3669 | + "value": "Consent:patient" |
3471 | 3670 | } |
3472 | 3671 | ] |
3473 | 3672 | } |
|
3823 | 4022 | "method": "GET", |
3824 | 4023 | "header": [], |
3825 | 4024 | "url": { |
3826 | | - "raw": "{{api_base_url}}/Consent?performer:identifier=9000000010&_include=Consent:performer,Consent:patient", |
| 4025 | + "raw": "{{api_base_url}}/Consent?performer:identifier=9000000010&_include=Consent:performer&_include=Consent:patient", |
3827 | 4026 | "host": [ |
3828 | 4027 | "{{api_base_url}}" |
3829 | 4028 | ], |
|
3837 | 4036 | }, |
3838 | 4037 | { |
3839 | 4038 | "key": "_include", |
3840 | | - "value": "Consent:performer,Consent:patient" |
| 4039 | + "value": "Consent:performer" |
| 4040 | + }, |
| 4041 | + { |
| 4042 | + "key": "_include", |
| 4043 | + "value": "Consent:patient" |
3841 | 4044 | } |
3842 | 4045 | ] |
3843 | 4046 | } |
|
4129 | 4332 | "method": "GET", |
4130 | 4333 | "header": [], |
4131 | 4334 | "url": { |
4132 | | - "raw": "{{api_base_url}}/Consent?performer:identifier=9000000019&_include=Consent:performer,Consent:patient", |
| 4335 | + "raw": "{{api_base_url}}/Consent?performer:identifier=9000000019&_include=Consent:performer&_include=Consent:patient", |
4133 | 4336 | "host": [ |
4134 | 4337 | "{{api_base_url}}" |
4135 | 4338 | ], |
|
4143 | 4346 | }, |
4144 | 4347 | { |
4145 | 4348 | "key": "_include", |
4146 | | - "value": "Consent:performer,Consent:patient" |
| 4349 | + "value": "Consent:performer" |
| 4350 | + }, |
| 4351 | + { |
| 4352 | + "key": "_include", |
| 4353 | + "value": "Consent:patient" |
4147 | 4354 | } |
4148 | 4355 | ] |
4149 | 4356 | } |
|
4293 | 4500 | "response": [] |
4294 | 4501 | }, |
4295 | 4502 | { |
4296 | | - "name": "Not performer record found", |
| 4503 | + "name": "No performer record found", |
4297 | 4504 | "event": [ |
4298 | 4505 | { |
4299 | 4506 | "listen": "test", |
|
0 commit comments