Skip to content

Commit 45120d0

Browse files
committed
Moved the readme.md from this pr to seperate markdown file
1 parent 26f9242 commit 45120d0

3 files changed

Lines changed: 76 additions & 82 deletions

File tree

readme.md

Lines changed: 1 addition & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ c. Optionally validate using the NHS England Ontology Service (configured via en
1818

1919
The configuration is aimed at supporting different use cases. For example the lambda version with no ontology support is aimed at performing basic FHIR validation checks. This may just be FHIR core and schema validation but can also test against UKCore profiles.
2020

21+
2122
## Docker Image
2223

2324
**Experimental**
@@ -104,84 +105,3 @@ https://cnuc9zdola.execute-api.eu-west-2.amazonaws.com/dev
104105

105106

106107

107-
## Variables
108-
109-
FHIR packages: [manifest.json](https://github.com/NHSDigital/IOPS-FHIR-Validation-Service/blob/main/src/main/resources/manifest.json)
110-
HAPI Update: [pom.xml](https://github.com/NHSDigital/IOPS-FHIR-Validation-Service/blob/main/pom.xml)
111-
112-
# Custom Checks
113-
Cusom error messages can be found within [/src/main/kotlin/uk/nhs/england/fhirvalidator/provider/ValidateR4Provider.kt](https://github.com/NHSDigital/IOPS-FHIR-Validation-Service/blob/update/6.8.3/src/main/kotlin/uk/nhs/england/fhirvalidator/provider/ValidateR4Provider.kt)
114-
# Validator Update Guide
115-
116-
## Prerequisites
117-
118-
Installation of the following on a local machine
119-
120-
- [Maven](https://maven.apache.org/)
121-
- Installation (Debian): [How to Install Apache Maven on Debian 11](https://www.itzgeek.com/how-tos/linux/debian/how-to-install-apache-maven-on-debian-11.html)
122-
123-
- [Docker](https://www.docker.com/)
124-
- Installation (Debian): [Install Docker Engine](https://docs.docker.com/engine/install/)
125-
*Note:*If the os is a fork from Debian, e.g. LMDE, replace $(. /etc/os-release && echo “$VERSION_CODENAME”) with $(echo <Debian- version-codename>)
126-
Where <Debian-version-codename> e.g. bookworm (lowercase) for Debian.
127-
128-
- [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html)
129-
- [AWS Toolkit (optional)](https://aws.amazon.com/search/?searchQuery=toolkit)
130-
131-
- HAPI-FHIR
132-
- The latest release of hapi-fhir can be found at [github.com/hapifhir/hapi-fhir](https://github.com/hapifhir/hapi-fhir)
133-
- The changelog can be found at [hapifhir.io/hapi-fhir/docs/introduction/changelog](https://hapifhir.io/hapi-fhir/docs/introduction/changelog.html)
134-
135-
## Update AWS Server
136-
137-
- Go to https://github.com/NHSDigital/IOPS-FHIR-Validation-Service repo
138-
- Create a new branch named update/<hapi-fhir version-number>
139-
- edit pom.xml
140-
- Set the <fhir.version> to the relevant hapi-fhir version
141-
- Set the <version> to the same hapi-fhir version.
142-
143-
- Within the validator folder run the following:
144-
- $ mvn clean install
145-
- $ docker build -t fhir-validator-r4 .
146-
- $ docker tag fhir-validator-r4:latest <account id>.dkr.ecr.eu-west-2.amazonaws.com/fhir-validator-r4:<hapi-fhir version-number>
147-
- $ docker tag fhir-validator-r4:latest <account id>.dkr.ecr.eu-west-2.amazonaws.com/fhir-validator-r4:latest
148-
149-
- Login in to the AWS website
150-
- Click ‘Command line or programmatic access’ within NHS Digital IOPS FHIR dev
151-
- Sign into AWS using either:
152-
- Copy option 1 if using bash / windows / powershell
153-
- Copy Option 2 into credentials.txt if you have aws toolkit installed
154-
155-
- run
156-
- $ aws get-login-password –region eu-west-2 | docker login –username AWS –password stdin <account id>.dkr.ecr.eu-west-2.amazonaws.com
157-
- $ docker push <account id>.dkr.ecr.eu-west-2.amazonaws.com/fhir-validator-r4:[hapi-fhir version-number]
158-
159-
- In AWS go to ‘Management console’
160-
- Search for ECR
161-
- Ensure the server is set to ‘eu-west-2’
162-
- On the LHS choose repositories
163-
- Within Private repositories choose ‘fhir-validator-r4’
164-
- Ensure the latest image is the recently uploaded version.
165-
166-
- Search for ECS
167-
- Go to ‘Task definitions’ (on LHS)
168-
- Choose ‘iops-fhir-validation-service’
169-
- Choose latest revision
170-
- Choose ‘Create new revision’
171-
- Go to ‘Container-1’ section
172-
- Update the version number within the Image URI
173-
- Click ‘Create’
174-
175-
- Go to Clusters (on LHS)
176-
- Choose ‘iops-fhir-r4’
177-
- Choose ‘svc-fhir-validator’
178-
- Click ‘Update service’
179-
- Change ‘Revision’ to the latest version
180-
- Click ‘Update’
181-
This will start the checks. Logs can be found within CloudWatch. ECS is set up for 1 task only so the previous task will shut down automatically.
182-
183-
## Create PR with new update
184-
Once the validator update has been checked to ensure no issues with the build create a GitHub PR and get it approved. Once approved create a new release and detail the changes made.
185-
186-
# Run Validator instance on local machine
187-
$ mvn spring-boot:run

updating-validator.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Validator Update Guide
2+
3+
## Prerequisites
4+
5+
Installation of the following on a local machine
6+
7+
- [Maven](https://maven.apache.org/)
8+
- Installation (Debian): [How to Install Apache Maven on Debian 11](https://www.itzgeek.com/how-tos/linux/debian/how-to-install-apache-maven-on-debian-11.html)
9+
10+
- [Docker](https://www.docker.com/)
11+
- Installation (Debian): [Install Docker Engine](https://docs.docker.com/engine/install/)
12+
*Note:*If the os is a fork from Debian, e.g. LMDE, replace $(. /etc/os-release && echo “$VERSION_CODENAME”) with $(echo <Debian- version-codename>)
13+
Where <Debian-version-codename> e.g. bookworm (lowercase) for Debian.
14+
15+
- [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html)
16+
- [AWS Toolkit (optional)](https://aws.amazon.com/search/?searchQuery=toolkit)
17+
18+
- HAPI-FHIR
19+
- The latest release of hapi-fhir can be found at [github.com/hapifhir/hapi-fhir](https://github.com/hapifhir/hapi-fhir)
20+
- The changelog can be found at [hapifhir.io/hapi-fhir/docs/introduction/changelog](https://hapifhir.io/hapi-fhir/docs/introduction/changelog.html)
21+
22+
## Update AWS Server
23+
24+
- Go to https://github.com/NHSDigital/IOPS-FHIR-Validation-Service repo
25+
- Create a new branch named update/<hapi-fhir version-number>
26+
- edit pom.xml
27+
- Set the <fhir.version> to the relevant hapi-fhir version
28+
- Set the <version> to the same hapi-fhir version.
29+
30+
- Within the validator folder run the following:
31+
- $ mvn clean install
32+
- $ docker build -t fhir-validator-r4 .
33+
- $ docker tag fhir-validator-r4:latest <account id>.dkr.ecr.eu-west-2.amazonaws.com/fhir-validator-r4:<hapi-fhir version-number>
34+
- $ docker tag fhir-validator-r4:latest <account id>.dkr.ecr.eu-west-2.amazonaws.com/fhir-validator-r4:latest
35+
36+
- Login in to the AWS website
37+
- Click ‘Command line or programmatic access’ within NHS Digital IOPS FHIR dev
38+
- Sign into AWS using either:
39+
- Copy option 1 if using bash / windows / powershell
40+
- Copy Option 2 into credentials.txt if you have aws toolkit installed
41+
42+
- run
43+
- $ aws get-login-password –region eu-west-2 | docker login –username AWS –password stdin <account id>.dkr.ecr.eu-west-2.amazonaws.com
44+
- $ docker push <account id>.dkr.ecr.eu-west-2.amazonaws.com/fhir-validator-r4:[hapi-fhir version-number]
45+
46+
- In AWS go to ‘Management console’
47+
- Search for ECR
48+
- Ensure the server is set to ‘eu-west-2’
49+
- On the LHS choose repositories
50+
- Within Private repositories choose ‘fhir-validator-r4’
51+
- Ensure the latest image is the recently uploaded version.
52+
53+
- Search for ECS
54+
- Go to ‘Task definitions’ (on LHS)
55+
- Choose ‘iops-fhir-validation-service’
56+
- Choose latest revision
57+
- Choose ‘Create new revision’
58+
- Go to ‘Container-1’ section
59+
- Update the version number within the Image URI
60+
- Click ‘Create’
61+
62+
- Go to Clusters (on LHS)
63+
- Choose ‘iops-fhir-r4’
64+
- Choose ‘svc-fhir-validator’
65+
- Click ‘Update service’
66+
- Change ‘Revision’ to the latest version
67+
- Click ‘Update’
68+
This will start the checks. Logs can be found within CloudWatch. ECS is set up for 1 task only so the previous task will shut down automatically.
69+
70+
## Create PR with new update
71+
Once the validator update has been checked to ensure no issues with the build create a GitHub PR and get it approved. Once approved create a new release and detail the changes made.
72+
73+
# Run Validator instance on local machine
74+
$ mvn spring-boot:run

0 commit comments

Comments
 (0)