Skip to content

Commit

Permalink
Amend appointment #1088
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonny Rylands committed Sep 1, 2021
1 parent dd99438 commit d732cb5
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 14 deletions.
1 change: 1 addition & 0 deletions _includes/appointments/amend-appt-request-header-1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PUT /Appointment/9
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
]
}
],
"name": "Test Organization Name",
"name": "West Road GP Practice",
"telecom": [
{
"system": "phone",
"value": "0300 303 5678"
"value": "03003035678"
}
]
}
Expand Down Expand Up @@ -72,6 +72,12 @@
"reference": "Location/32"
},
"status": "accepted"
},
{
"actor": {
"reference": "Practitioner/18"
},
"status": "accepted"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
]
}
],
"name": "Test Organization Name",
"name": "West Road GP Practice",
"telecom": [
{
"system": "phone",
"value": "0300 303 5678"
"value": "03003035678"
}
]
}
Expand Down Expand Up @@ -96,6 +96,12 @@
"reference": "Location/32"
},
"status": "accepted"
},
{
"actor": {
"reference": "Practitioner/18"
},
"status": "accepted"
}
]
}
31 changes: 22 additions & 9 deletions pages/appointments/appointments_use_case_amend_an_appointment.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The typical flow to amend an appointment is:

Amending a cancelled appointment is NOT supported.

{% include important.html content="The Appointment Management capability pack is aimed at administration of a patient's appointments. As a result of information governance (IG) requirements, the amend appointments capability has been restricted to future appointments. More details are available on the [Design decisions](appointments_design.html#viewing-and-amending-booked-appointments) page." %}
{% include important.html content="The Appointment Management capability is aimed at administration of a patient's appointments. As a result of information governance (IG) requirements, the amend appointments capability has been restricted to future appointments. More details are available on the [Design decisions](appointments_design.html#viewing-and-amending-booked-appointments) page." %}

## Security ##

Expand Down Expand Up @@ -101,13 +101,6 @@ When receiving `description` and `comment` fields in the provider system:
- Where a consumer sends information longer than character limits supported, an error SHALL be returned to the consumer
- Where there are not two suitable appointment text fields in a provider system, providers MAY concatenate `description` and `comment` (with suitable delimiters) in order to store in a single field, such that data is not lost

#### Example request body ####

On the wire, a JSON serialised request would look something like the following:

```json
{% include appointments/amend_appt_request_example.json %}
```

#### Error handling ####

Expand Down Expand Up @@ -140,12 +133,32 @@ Provider systems:

- SHALL populate `serviceType.text` with the practice defined slot type description, and where available `serviceCategory.text` with a practice defined schedule type description (may be called session name or rota type).

- SHALL populate a reference to a `HealthcareService` in the `Appointment.participant.actor` element where:
- the Appointment is [linked to a service](appointments_serviceid_configuration.html#linking-services-to-schedules) set up for service ID filtering
- and the service ID filtering [organisation switch](appointments_serviceid_configuration.html#organisation-switch) is set to ON

- SHALL meet [General FHIR resource population requirements](development_fhir_resource_guidance.html#general-fhir-resource-population-requirements) populating all fields where data is available, excluding those listed below

- SHALL NOT populate the following fields:
- `reason`
- `specialty`

### Examples ###

#### Amend an appointment ####

##### Request #####

```http
{% include appointments/amend-appt-request-header-1.txt %}
```

```json
{% include appointments/amend-appt-request-payload-1.json %}
```

##### Response #####

```json
{% include appointments/amend_appt_response_example.json %}
{% include appointments/amend-appt-response-payload-1.json %}
```
25 changes: 24 additions & 1 deletion pages/overview/release_notes/1_2_8.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ The GP Connect API 1.2.8 release contains Appointment Management changes to supp

**Description:**

- Add *SHOULD* requirement for consumer to send a HealthcareService reference (where available) in the Appointment resource in the request payload
- Add requirement for consumer to send a HealthcareService reference (where available) in the Appointment resource in the request payload

- Add requirement for provider to return a HealthcareService reference in the Appointment resource response payload, where
- the appointment is linked to a service
Expand All @@ -251,3 +251,26 @@ The GP Connect API 1.2.8 release contains Appointment Management changes to supp
**Pages changed:**

- [Book an appointment](appointments_use_case_book_an_appointment.html)

---

### Amend an appointment ###

**Tickets:**  [#1088](https://github.com/nhsconnect/gpconnect/issues/1088)

**Affects:**  Appointment Management

**Impacts:** Provider systems, consumer systems

**Description:**

- Add requirement for provider to return a HealthcareService reference in the Appointment resource response payload, where
- the appointment is linked to a service
- and the organisation switch is ON

- Reformat example

**Pages changed:**

- [Amend an appointment](appointments_use_case_amend_an_appointment.html)

0 comments on commit d732cb5

Please sign in to comment.