Skip to content
This repository has been archived by the owner on Jan 28, 2024. It is now read-only.

Commit

Permalink
chore: replace ydh nhsft branding and links with somerset nhsft (#692)
Browse files Browse the repository at this point in the history
* test: replace ydh.nhs.uk domain

* chore: replace ydh nhsft branding and links with somerset nhsft
  • Loading branch information
Fdawgs committed Apr 18, 2023
1 parent 64bcabc commit 05c32d9
Show file tree
Hide file tree
Showing 15 changed files with 29 additions and 42 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<a href="https://yeovilhospital.co.uk/">
<img alttext="Yeovil District Hospital logo" src="https://github.com/Fdawgs/ydh-logos/raw/HEAD/images/ydh-full-logo-transparent-background.svg" width="480" />
<a href="https://somersetft.nhs.uk/yeovilhospital/">
<img alttext="Somerset NHSFT logo" src="https://github.com/TauntonandSomersetNHSTrust/sft-logos/raw/HEAD/images/sft-nhsft-logo-left-aligned-transparent-background.png" width="480" />
</a>

# Yeovil District Hospital NHS Foundation Trust - Community Contacts RESTful CRUD API
# Yeovil Hospital - Community Contacts RESTful CRUD API

[![GitHub Release](https://img.shields.io/github/release/Fdawgs/ydh-community-contacts-api.svg)](https://github.com/Fdawgs/ydh-community-contacts-api/releases/latest/)
![Build Status](https://github.com/Fdawgs/ydh-community-contacts-api/workflows/CI/badge.svg?branch=main)
[![Coverage Status](https://coveralls.io/repos/github/Fdawgs/ydh-community-contacts-api/badge.svg?branch=main)](https://coveralls.io/github/Fdawgs/ydh-community-contacts-api?branch=main)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat)](https://github.com/prettier/prettier)

> Yeovil District Hospital NHSFT's RESTful CRUD API for community team contact details
> Yeovil Hospital's RESTful CRUD API for community team contact details
## Overview

This is [Yeovil District Hospital NHSFT](https://yeovilhospital.co.uk/)'s Community Contacts RESTful API, a Node.js application using the [Fastify](https://fastify.io/) web framework, built to support CRUD (Create, Read, Update, and Delete) functionality of community midwife, health visitor, and school nurse team email addresses in YDH's catchment area.
This is [Yeovil Hospital](https://somersetft.nhs.uk/yeovilhospital/)'s Community Contacts RESTful API, a Node.js application using the [Fastify](https://fastify.io/) web framework, built to support CRUD (Create, Read, Update, and Delete) functionality of community midwife, health visitor, and school nurse team email addresses in Yeovil Hospital's catchment area.

This was built for use by interface engine channels/workflows that automatically dispatch maternity and paediatric discharge summaries via encrypted email to their respective community teams, based on a patient’s postcode, school code, or GP practice code.

Expand Down
Binary file modified docs/images/api_documentation_screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ydh-community-contacts-api",
"version": "7.1.6",
"description": "Yeovil District Hospital NHSFT's RESTful CRUD API for community team contact details",
"description": "Yeovil Hospital's RESTful CRUD API for community team contact details",
"main": "dist/app.js",
"repository": "git+https://github.com/Fdawgs/ydh-community-contacts-api.git",
"homepage": "https://github.com/Fdawgs/ydh-community-contacts-api",
Expand Down
10 changes: 5 additions & 5 deletions src/config/config.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,22 +366,22 @@ describe("Configuration", () => {
testName: "CORS origin set to comma-delimited string value",
envVariables: {
CORS_ORIGIN:
"https://test1.ydh.nhs.uk, https://test2.ydh.nhs.uk",
"https://test1.somersetft.nhs.uk, https://test2.somersetft.nhs.uk",
},
expected: {
origin: expect.arrayContaining([
"https://test1.ydh.nhs.uk",
"https://test2.ydh.nhs.uk",
"https://test1.somersetft.nhs.uk",
"https://test2.somersetft.nhs.uk",
]),
},
},
{
testName: "CORS origin set to string value",
envVariables: {
CORS_ORIGIN: "https://ydh.nhs.uk",
CORS_ORIGIN: "https://somersetft.nhs.uk",
},
expected: {
origin: "https://ydh.nhs.uk",
origin: "https://somersetft.nhs.uk",
},
},
])(
Expand Down
9 changes: 4 additions & 5 deletions src/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ async function getConfig() {
info: {
title: "Community Contacts API",
description:
'<a href="https://yeovilhospital.co.uk/">Yeovil District Hospital NHSFT</a>\'s Community Contacts RESTful API, a Node.js application using the <a href="https://fastify.io/">Fastify web framework</a>, built to support CRUD (Create, Read, Update, and Delete) functionality of community midwife, health visitor, and school nurse team email addresses in YDH\'s catchment area.',
'<a href="https://somersetft.nhs.uk/yeovilhospital/">Yeovil Hospital</a>\'s Community Contacts RESTful API, a Node.js application using the <a href="https://fastify.io/">Fastify web framework</a>, built to support CRUD (Create, Read, Update, and Delete) functionality of community midwife, health visitor, and school nurse team email addresses in Yeovil Hospital\'s catchment area.',
contact: {
name: "Author",
email: "[email protected]",
Expand All @@ -244,10 +244,9 @@ async function getConfig() {
version,
// Redoc specific extension to support loading image in docs
"x-logo": {
url: "/public/images/ydh-y-logo-transparent-background-wide-canvas.png",
backgroundColor: "#6D3176",
altText:
"Yeovil District Hospital NHS Foundation Trust logo",
url: "/public/images/sft-s-logo-transparent-background-wide-canvas.png",
backgroundColor: "#005EB8",
altText: "Somerset NHS Foundation Trust Logo",
},
},
// Components object populated by shared schemas at launch
Expand Down
Binary file modified src/public/images/icons/apple-touch-icon-120x120.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/public/images/icons/apple-touch-icon-152x152.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/public/images/icons/apple-touch-icon-167x167.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/public/images/icons/apple-touch-icon-180x180.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/public/images/icons/favicon.ico
Binary file not shown.
14 changes: 1 addition & 13 deletions src/public/images/icons/mask-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
2 changes: 1 addition & 1 deletion src/routes/docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" />
<meta
name="description"
content="Reference documentation and OpenAPI definitions for Yeovil District Hospital NHSFT's Community Contacts API." />
content="Reference documentation and OpenAPI definitions for Yeovil Hospital's Community Contacts API." />
<meta name="author" content="Frazer Smith, Solutions Development" />
<meta name="viewport" content="width=device-width, initial-scale=1" />

Expand Down
24 changes: 12 additions & 12 deletions src/server.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ describe("Server deployment", () => {
},
request: {
headers: {
origin: "https://notreal.ydh.nhs.uk",
origin: "https://notreal.somersetft.nhs.uk",
},
},
expected: {
Expand All @@ -673,12 +673,12 @@ describe("Server deployment", () => {
json: {
...expResHeadersJson,
"access-control-allow-origin":
"https://notreal.ydh.nhs.uk",
"https://notreal.somersetft.nhs.uk",
},
text: {
...expResHeadersText,
"access-control-allow-origin":
"https://notreal.ydh.nhs.uk",
"https://notreal.somersetft.nhs.uk",
},
},
},
Expand All @@ -687,11 +687,11 @@ describe("Server deployment", () => {
{
testName: "CORS enabled and set to string",
corsEnvVariables: {
CORS_ORIGIN: "https://notreal.ydh.nhs.uk",
CORS_ORIGIN: "https://notreal.somersetft.nhs.uk",
},
request: {
headers: {
origin: "https://notreal.ydh.nhs.uk",
origin: "https://notreal.somersetft.nhs.uk",
},
},
expected: {
Expand All @@ -700,12 +700,12 @@ describe("Server deployment", () => {
json: {
...expResHeadersJson,
"access-control-allow-origin":
"https://notreal.ydh.nhs.uk",
"https://notreal.somersetft.nhs.uk",
},
text: {
...expResHeadersText,
"access-control-allow-origin":
"https://notreal.ydh.nhs.uk",
"https://notreal.somersetft.nhs.uk",
},
},
},
Expand All @@ -715,13 +715,13 @@ describe("Server deployment", () => {
testName: "CORS enabled and set to array of strings",
corsEnvVariables: {
CORS_ORIGIN: [
"https://notreal.ydh.nhs.uk",
"https://notreal.somersetft.nhs.uk",
"https://notreal.sft.nhs.uk",
],
},
request: {
headers: {
origin: "https://notreal.ydh.nhs.uk",
origin: "https://notreal.somersetft.nhs.uk",
},
},
expected: {
Expand All @@ -730,12 +730,12 @@ describe("Server deployment", () => {
json: {
...expResHeadersJson,
"access-control-allow-origin":
"https://notreal.ydh.nhs.uk",
"https://notreal.somersetft.nhs.uk",
},
text: {
...expResHeadersText,
"access-control-allow-origin":
"https://notreal.ydh.nhs.uk",
"https://notreal.somersetft.nhs.uk",
},
},
},
Expand All @@ -748,7 +748,7 @@ describe("Server deployment", () => {
},
request: {
headers: {
origin: "https://notreal.ydh.nhs.uk",
origin: "https://notreal.somersetft.nhs.uk",
},
},
expected: {
Expand Down

0 comments on commit 05c32d9

Please sign in to comment.