|
| 1 | +QuestionnaireResponseDuplicateRelationship: |
| 2 | + summary: Duplicate relationship request |
| 3 | + description: | |
| 4 | + Example proxy access request that triggers a 409 DUPLICATE_RELATIONSHIP error due to an existing proxy role with NHS number `9000000049` requesting access to act on behalf of a patient (Jill Jones) with NHS number `9000000006`. |
| 5 | +
|
| 6 | + Significant details to point out: |
| 7 | +
|
| 8 | + - `source.type` should be `RelatedPerson` when a proxy is applying |
| 9 | + - `source.identifier.value` should be the NHS number of the user completing the form - this should correlate with the Identity token in the request |
| 10 | + - `subject.type` should be `Patient` since it is the patient that is the subject of the application |
| 11 | + - `subject.identifier.value` should be the NHS Number of the patient to which the application relates |
| 12 | + - `patient` demographics are present in the request as a result of being provided by the applicant |
| 13 | + value: |
| 14 | + resourceType: "QuestionnaireResponse" |
| 15 | + status: "completed" |
| 16 | + authored: "2024-07-15T09:43:03.280Z" |
| 17 | + source: |
| 18 | + type: "RelatedPerson" |
| 19 | + identifier: |
| 20 | + system: "https://fhir.nhs.uk/Id/nhs-number" |
| 21 | + value: "9000000049" |
| 22 | + subject: |
| 23 | + type: "Patient" |
| 24 | + identifier: |
| 25 | + system: "https://fhir.nhs.uk/Id/nhs-number" |
| 26 | + value: "9000000006" |
| 27 | + questionnaire: "https://api.service.nhs.uk/validated-relationships/FHIR/R4/Questionnaire/01dc6813-3421-4d14-948d-a4888241add1" |
| 28 | + item: |
| 29 | + - linkId: "relatedPerson" |
| 30 | + text: "Proxy details" |
| 31 | + item: |
| 32 | + - linkId: "relatedPerson_identifier" |
| 33 | + text: "NHS number" |
| 34 | + answer: |
| 35 | + - valueString: "9000000049" |
| 36 | + - linkId: "relatedPerson_basisForAccess" |
| 37 | + text: "Basis for Access" |
| 38 | + answer: |
| 39 | + - valueCoding: |
| 40 | + system: "https://fhir.hl7.org.uk/CodeSystem/UKCore-AdditionalPersonRelationshipRole" |
| 41 | + code: "Personal" |
| 42 | + display: "Personal relationship with the patient" |
| 43 | + - linkId: "relatedPerson_relationship" |
| 44 | + text: "Relationship" |
| 45 | + answer: |
| 46 | + - valueCoding: |
| 47 | + system: "http://terminology.hl7.org/CodeSystem/v3-RoleCode" |
| 48 | + code: "SPS" |
| 49 | + display: "Spouse" |
| 50 | + - linkId: "patient" |
| 51 | + text: "Patient details" |
| 52 | + item: |
| 53 | + - linkId: "patient_identifier" |
| 54 | + text: "NHS number" |
| 55 | + answer: |
| 56 | + - valueString: "9000000006" |
| 57 | + - linkId: "patient_name" |
| 58 | + text: "Name" |
| 59 | + item: |
| 60 | + - linkId: "patient_name_first" |
| 61 | + text: "First name" |
| 62 | + answer: |
| 63 | + - valueString: "Jill" |
| 64 | + - linkId: "patient_name_family" |
| 65 | + text: "Last name" |
| 66 | + answer: |
| 67 | + - valueString: "Jones" |
| 68 | + - linkId: "patient_birthDate" |
| 69 | + text: "Date of birth" |
| 70 | + answer: |
| 71 | + - valueDate: "1965-01-01" |
| 72 | + - linkId: "requestedAccess" |
| 73 | + text: "Requested access" |
| 74 | + item: |
| 75 | + - linkId: "requestedAccess_accessLevel" |
| 76 | + text: "Requested access level" |
| 77 | + answer: |
| 78 | + - valueCoding: |
| 79 | + system: "https://fhir.nhs.uk/CodeSystem/Proxy-Placeholder-RequestedAccess" |
| 80 | + code: "APPT" |
| 81 | + display: "Appointment Booking" |
| 82 | + - valueCoding: |
| 83 | + system: "https://fhir.nhs.uk/CodeSystem/Proxy-Placeholder-RequestedAccess" |
| 84 | + code: "VACC" |
| 85 | + display: "Vaccination Records" |
| 86 | + - linkId: "requestedAccess_reasonsForAccess" |
| 87 | + text: "Reason for access" |
| 88 | + answer: |
| 89 | + - valueCoding: |
| 90 | + system: "https://fhir.nhs.uk/CodeSystem/Proxy-Placeholder-ReasonForAccess" |
| 91 | + code: "PRAC" |
| 92 | + display: "Practical Reasons" |
0 commit comments