diff --git a/.github/workflows/QualityControlChecker.yml b/.github/workflows/QualityControlChecker.yml
index 16a0e50d..fa377f36 100644
--- a/.github/workflows/QualityControlChecker.yml
+++ b/.github/workflows/QualityControlChecker.yml
@@ -14,4 +14,4 @@ on:
jobs:
# This workflow contains a single job called "call-workflow" which references the FHIR validator repo
call-workflow:
- uses: NHSDigital/IOPS-FHIR-Test-Scripts/.github/workflows/QualityControlCheckerUKCore.yml@main
+ uses: NHSDigital/IOPS-FHIR-Test-Scripts/.github/workflows/QualityControlChecker.yml@main
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
deleted file mode 100644
index bfeb283c..00000000
--- a/.github/workflows/main.yml
+++ /dev/null
@@ -1,54 +0,0 @@
-# This is a basic workflow to help you get started with Actions
-
-name: Firely Validation
-
-# Controls when the action will run.
-on:
- # Triggers the workflow on push or pull request events but only for the master branch
- # mf - extend to develop & feature branches
- # mf - commented out and left to manual trigger to test
- # push:
- # branches: [ master, main, develop, feature/* ]
- # pull_request:
- # branches: [ master, main ]
-
- # Allows you to run this workflow manually from the Actions tab
- # mf - added develop & feature/* branches in manual trigger to test
- workflow_dispatch:
- branches: [ master, main, develop, feature/* ]
-
-# A workflow run is made up of one or more jobs that can run sequentially or in parallel
-jobs:
-
- # Validate all resources using Firely Terminal
- CI_FHIR_VALIDATION:
- # The type of runner that the job will run on
- runs-on: ubuntu-latest
-
- # Steps represent a sequence of tasks that will be executed as part of the job
- steps:
- - name: Checkout code
- uses: actions/checkout@v2
-
- # Install .NET runtime
- - name: Setup .NET Core SDK
- uses: actions/setup-dotnet@v1.7.2
- with:
- dotnet-version: 3.1.x
-
- # Install Java runtime (only needed if you want to run the offical HL7 Java validator)
- - name: Setup Java JDK
- uses: actions/setup-java@v1.4.3
- with:
- java-version: 1.8
-
- - name: Firely.Terminal (GitHub Actions)
- uses: FirelyTeam/firely-terminal-pipeline@v0.2.1
- with:
- SIMPLIFIER_USERNAME: ${{ secrets.SIMPLIFIER_USERNAME }}
- SIMPLIFIER_PASSWORD: ${{ secrets.SIMPLIFIER_PASSWORD }}
- PATH_TO_CONFORMANCE_RESOURCES: codesystems conceptmaps structuredefinitions valuesets
- PATH_TO_EXAMPLES: examples
- DOTNET_VALIDATION_ENABLED: true
- JAVA_VALIDATION_ENABLED: true
- EXPECTED_FAILS: VALIDATION_CONFORMANCE_JAVA VALIDATION_EXAMPLES_JAVA
diff --git a/.github/workflows/validation-no-terminology.yml b/.github/workflows/validation-no-terminology.yml
deleted file mode 100644
index 9c7cc33e..00000000
--- a/.github/workflows/validation-no-terminology.yml
+++ /dev/null
@@ -1,96 +0,0 @@
-name: IOPS-FHIR-Validation-No-Terminology
-
-# Controls when the workflow will run
-on:
- # Triggers the workflow on push or pull request events but only for the master branch
- # Allows you to run this workflow manually from the Actions tab
-
- push:
-
- workflow_dispatch:
-
-
-# A workflow run is made up of one or more jobs that can run sequentially or in parallel
-jobs:
- # This workflow contains a single job called "build"
- build:
- # The type of runner that the job will run on
- runs-on: ubuntu-latest
-
- # Steps represent a sequence of tasks that will be executed as part of the job
- steps:
- # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- - uses: actions/checkout@v2
- with:
- submodules: true
-
- - name: Check out IOPS-Validation
- uses: actions/checkout@master
- with:
- repository: NHSDigital/IOPS-Validation
- path: validation
-
- - name: Check out validation-service-fhir-r4
- uses: actions/checkout@master
- with:
- repository: NHSDigital/validation-service-fhir-r4
- ref: testing
- path: validation-service-fhir-r4
-
- - name: Install Python 3.8
- uses: actions/setup-python@v1
- with:
- python-version: 3.8
-
- - name: Upgrade python packaging tools
- run: python -m pip install --upgrade pip setuptools wheel
-
- - name: Install poetry and requests
- run: pip install poetry requests
-
- - name: Install dependencies
- run: poetry install
-
- - name: Set SPEC_VERSION env var
- run: echo ::set-env name=SPEC_VERSION::$(poetry run python scripts/calculate_version.py)
- env:
- ACTIONS_ALLOW_UNSECURE_COMMANDS: true
-
- - name: Set up JDK 11
- uses: actions/setup-java@v2
- with:
- java-version: '11'
- distribution: 'adopt'
-
- - name: Install node
- run: |
- wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
- curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
- sudo apt-get install -y nodejs
-
- - name: Cache node modules
- uses: actions/cache@v1
- with:
- path: ~/.npm
- key: ${{ runner.os }}-build-cache-npm-packages-${{ hashFiles('**/package-lock.json') }}
-
- - name: Install npm
- run: make -C validation install
-
- - name: Configure FHIR Validator
- run: make -C validation configure-validation
- env:
- CI: true
- ONTO_CLIENT_ID: ${{ secrets.ONTO_CLIENT_ID }}
- ONTO_CLIENT_SECRET: ${{ secrets.ONTO_CLIENT_SECRET }}
-
- - name: Build FHIR Validator
- run: cd validation-service-fhir-r4 && mvn clean package
-
- - name: Run FHIR Validator
- run:
- nohup java -jar validation-service-fhir-r4/target/fhir-validator-0.0.1-SNAPSHOT.jar &
- sleep 60
-
- - name: Run Test
- run: make -C validation test
diff --git a/README.md b/README.md
index 5ace65ec..8ae8cd09 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,5 @@
# FHIR-R4-UKCORE-STAGING-MAIN
+This repository is maintained by [Interoperability Team]( https://nhsd-confluence.digital.nhs.uk/pages/viewpage.action?spaceKey=IOPS&title=Interoperability+Standards) Any queries contact us via [email]( interoperabilityteam@nhs.net).
UK Core Repository of FHIR Assets for HL7 FHIR® UK Core Implementation Guide [Simplifier project](https://simplifier.net/hl7fhirukcorer4).
diff --git a/codesystems/CodeSystem-UKCore-DateTimeType.xml b/codesystems/CodeSystem-UKCore-DateTimeType.xml
index 33f8b5d1..e345f444 100644
--- a/codesystems/CodeSystem-UKCore-DateTimeType.xml
+++ b/codesystems/CodeSystem-UKCore-DateTimeType.xml
@@ -1,11 +1,11 @@
-
+
-
+
@@ -85,4 +85,9 @@
+
+
+
+
+
diff --git a/codesystems/CodeSystem-UKCore-LegalStatusClassificationWales.xml b/codesystems/CodeSystem-UKCore-LegalStatusClassificationWales.xml
index 939150a6..aa01789d 100644
--- a/codesystems/CodeSystem-UKCore-LegalStatusClassificationWales.xml
+++ b/codesystems/CodeSystem-UKCore-LegalStatusClassificationWales.xml
@@ -46,7 +46,7 @@
-
+
diff --git a/codesystems/CodeSystem-UKCore-MedicationRequestCategory.xml b/codesystems/CodeSystem-UKCore-MedicationRequestCategory.xml
index 9e3aa233..0d886207 100644
--- a/codesystems/CodeSystem-UKCore-MedicationRequestCategory.xml
+++ b/codesystems/CodeSystem-UKCore-MedicationRequestCategory.xml
@@ -1,34 +1,38 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/codesystems/CodeSystem-UKCore-PeriodType.xml b/codesystems/CodeSystem-UKCore-PeriodType.xml
new file mode 100644
index 00000000..a25a4b78
--- /dev/null
+++ b/codesystems/CodeSystem-UKCore-PeriodType.xml
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/codesystems/CodeSystem-UKCore-PreferredContactMethod.xml b/codesystems/CodeSystem-UKCore-PreferredContactMethod.xml
index a82e136a..6f29e610 100644
--- a/codesystems/CodeSystem-UKCore-PreferredContactMethod.xml
+++ b/codesystems/CodeSystem-UKCore-PreferredContactMethod.xml
@@ -2,11 +2,11 @@
-
+
-
+
@@ -17,7 +17,7 @@
-
+
@@ -53,4 +53,8 @@
+
+
+
+
diff --git a/examples/UKCore-AllergyIntolerance-Sn-TransferDegradDrugAllergy-Example.xml b/examples/UKCore-AllergyIntolerance-Sn-TransferDegradedDrugAllergy-Example.xml
similarity index 91%
rename from examples/UKCore-AllergyIntolerance-Sn-TransferDegradDrugAllergy-Example.xml
rename to examples/UKCore-AllergyIntolerance-Sn-TransferDegradedDrugAllergy-Example.xml
index 27ce3408..55cdc6e5 100644
--- a/examples/UKCore-AllergyIntolerance-Sn-TransferDegradDrugAllergy-Example.xml
+++ b/examples/UKCore-AllergyIntolerance-Sn-TransferDegradedDrugAllergy-Example.xml
@@ -1,5 +1,5 @@
-
+
diff --git a/examples/UKCore-Extension-BodySiteReference-Example.xml b/examples/UKCore-Extension-BodySiteReference-Example.xml
index 46097e71..19278753 100644
--- a/examples/UKCore-Extension-BodySiteReference-Example.xml
+++ b/examples/UKCore-Extension-BodySiteReference-Example.xml
@@ -26,7 +26,7 @@
-
+
diff --git a/examples/UKCore-HealthcareService-OrthopaedicService-Example.xml b/examples/UKCore-HealthcareService-OrthopaedicService-Example.xml
index d12aa74a..07b2a4c0 100644
--- a/examples/UKCore-HealthcareService-OrthopaedicService-Example.xml
+++ b/examples/UKCore-HealthcareService-OrthopaedicService-Example.xml
@@ -51,7 +51,7 @@
-
+
diff --git a/examples/UKCore-Medication-Sn-TransferDegradMedEntry-Example.xml b/examples/UKCore-Medication-Sn-TransferDegradedMedEntry-Example.xml
similarity index 84%
rename from examples/UKCore-Medication-Sn-TransferDegradMedEntry-Example.xml
rename to examples/UKCore-Medication-Sn-TransferDegradedMedEntry-Example.xml
index c1ea5c41..f4f21692 100644
--- a/examples/UKCore-Medication-Sn-TransferDegradMedEntry-Example.xml
+++ b/examples/UKCore-Medication-Sn-TransferDegradedMedEntry-Example.xml
@@ -1,5 +1,5 @@
-
+
diff --git a/structuredefinitions/Extension-UKCore-AnaestheticIssues.xml b/structuredefinitions/Extension-UKCore-AnaestheticIssues.xml
index 52c97bec..a72d0ebd 100644
--- a/structuredefinitions/Extension-UKCore-AnaestheticIssues.xml
+++ b/structuredefinitions/Extension-UKCore-AnaestheticIssues.xml
@@ -47,8 +47,8 @@
-
-
+
+
diff --git a/structuredefinitions/Extension-UKCore-TypedDateTime.xml b/structuredefinitions/Extension-UKCore-TypedDateTime.xml
index 5a703982..e07b8e02 100644
--- a/structuredefinitions/Extension-UKCore-TypedDateTime.xml
+++ b/structuredefinitions/Extension-UKCore-TypedDateTime.xml
@@ -2,11 +2,11 @@
-
+
-
+
@@ -19,7 +19,7 @@
-
+
@@ -36,6 +36,14 @@
+
+
+
+
+
+
+
+
@@ -47,13 +55,7 @@
-
-
-
-
-
-
-
+
@@ -107,4 +109,4 @@
-
+
\ No newline at end of file
diff --git a/structuredefinitions/Extension-UKCore-TypedPeriod.xml b/structuredefinitions/Extension-UKCore-TypedPeriod.xml
new file mode 100644
index 00000000..6dfb43dd
--- /dev/null
+++ b/structuredefinitions/Extension-UKCore-TypedPeriod.xml
@@ -0,0 +1,104 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/valuesets/ValueSet-UKCore-BloodPressure-DeviceType.xml b/valuesets/ValueSet-UKCore-BloodPressure-DeviceType.xml
index e918d013..d3b668b0 100644
--- a/valuesets/ValueSet-UKCore-BloodPressure-DeviceType.xml
+++ b/valuesets/ValueSet-UKCore-BloodPressure-DeviceType.xml
@@ -16,7 +16,7 @@
-
-
+
-
+
-
-
-
+
+
+
-
+
-
-
-
-
+
+
+
+
-
+
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/valuesets/ValueSet-UKCore-LegalStatusClassification.xml b/valuesets/ValueSet-UKCore-LegalStatusClassification.xml
index 44ce98c9..b677da1b 100644
--- a/valuesets/ValueSet-UKCore-LegalStatusClassification.xml
+++ b/valuesets/ValueSet-UKCore-LegalStatusClassification.xml
@@ -123,7 +123,7 @@
-
+
diff --git a/valuesets/ValueSet-UKCore-MedicationRequestCategory.xml b/valuesets/ValueSet-UKCore-MedicationRequestCategory.xml
index 4b3e5306..a1e44ab8 100644
--- a/valuesets/ValueSet-UKCore-MedicationRequestCategory.xml
+++ b/valuesets/ValueSet-UKCore-MedicationRequestCategory.xml
@@ -1,11 +1,11 @@
-
+
-
+
@@ -28,7 +28,7 @@
-
+
@@ -60,6 +60,7 @@
+
diff --git a/valuesets/ValueSet-UKCore-PeriodType.xml b/valuesets/ValueSet-UKCore-PeriodType.xml
new file mode 100644
index 00000000..4a12e7fd
--- /dev/null
+++ b/valuesets/ValueSet-UKCore-PeriodType.xml
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/valuesets/ValueSet-UKCore-PreferredContactMethod.xml b/valuesets/ValueSet-UKCore-PreferredContactMethod.xml
index 26ab559b..868369ff 100644
--- a/valuesets/ValueSet-UKCore-PreferredContactMethod.xml
+++ b/valuesets/ValueSet-UKCore-PreferredContactMethod.xml
@@ -2,11 +2,11 @@
-
+
-
+
@@ -27,7 +27,7 @@
-
+
@@ -81,5 +81,10 @@
+
+
+
+
+