You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+1-81Lines changed: 1 addition & 81 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ c. Optionally validate using the NHS England Ontology Service (configured via en
18
18
19
19
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.
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)
- 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-fhirversion-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 <accountid>.dkr.ecr.eu-west-2.amazonaws.com/fhir-validator-r4:<hapi-fhirversion-number>
147
-
- $ docker tag fhir-validator-r4:latest <accountid>.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
- 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.
- 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-fhirversion-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 <accountid>.dkr.ecr.eu-west-2.amazonaws.com/fhir-validator-r4:<hapi-fhirversion-number>
34
+
- $ docker tag fhir-validator-r4:latest <accountid>.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
- 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.
0 commit comments