From 42e0df96b4085c27e0cf941e92e0dee613ba6eff Mon Sep 17 00:00:00 2001 From: Ryan May Date: Tue, 31 Oct 2023 09:07:22 +0000 Subject: [PATCH] added find and replace action --- .github/workflows/findAndReplace.yml | 20 ++ structuredefinitions/UKCore-Task - Copy.xml | 208 ++++++++++++++++++++ 2 files changed, 228 insertions(+) create mode 100644 .github/workflows/findAndReplace.yml create mode 100644 structuredefinitions/UKCore-Task - Copy.xml diff --git a/.github/workflows/findAndReplace.yml b/.github/workflows/findAndReplace.yml new file mode 100644 index 00000000..795255c0 --- /dev/null +++ b/.github/workflows/findAndReplace.yml @@ -0,0 +1,20 @@ +name: find and replace +on: + - push + - pull_request +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + repository: ${{ github.event.pull_request.head.repo.full_name }} + ref: ${{ github.event.pull_request.head.ref }} + + - name: Tabs to spaces + run: find ./ -type f -name *.xml -exec sed -i -e 's/\t/ /g' -e 's/\"\/>/\" \/>/g' {} \; + + - name: Push changes + uses: EndBug/add-and-commit@v7 + with: + message: 'Find and Replace' \ No newline at end of file diff --git a/structuredefinitions/UKCore-Task - Copy.xml b/structuredefinitions/UKCore-Task - Copy.xml new file mode 100644 index 00000000..351fb7c4 --- /dev/null +++ b/structuredefinitions/UKCore-Task - Copy.xml @@ -0,0 +1,208 @@ + + + + + + + + <status value="active"/> + <date value="2022-12-16"/> + <publisher value="HL7 UK"/> + <contact> + <name value="HL7 UK" /> + <telecom> + <system value="email" /> + <value value="ukcore@hl7.org.uk" /> + <use value="work" /> + <rank value="1" /> + </telecom> + </contact> + <description value="This profile defines the UK constraints and extensions on the International FHIR resource [Task](https://hl7.org/fhir/R4/Task.html)." /> + <purpose value="A task resource describes an activity that can be performed and tracks the state of completion of that activity. It is a representation that an activity should be or has been initiated, and eventually, represents the successful or unsuccessful completion of that activity. Note that there are a variety of processes associated with making and processing orders. Some orders may be handled immediately by automated systems but most require real world actions by one or more humans. Some orders can only be processed when other real world actions happen, such as a patient presenting themselves so that the action to be performed can actually be performed. Often these real world dependencies are only implicit in the order details." /> + <copyright value="Copyright © 2021+ HL7 UK Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. HL7® FHIR® standard Copyright © 2011+ HL7 The HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at https://www.hl7.org/fhir/license.html." /> + <fhirVersion value="4.0.1" /> + <mapping> + <identity value="workflow" /> + <uri value="http://hl7.org/fhir/workflow" /> + <name value="Workflow Pattern" /> + </mapping> + <mapping> + <identity value="rim" /> + <uri value="http://hl7.org/v3" /> + <name value="RIM Mapping" /> + </mapping> + <mapping> + <identity value="w5" /> + <uri value="http://hl7.org/fhir/fivews" /> + <name value="FiveWs Pattern Mapping" /> + </mapping> + <mapping> + <identity value="v2" /> + <uri value="http://hl7.org/v2" /> + <name value="HL7 v2 Mapping" /> + </mapping> + <kind value="resource" /> + <abstract value="false" /> + <type value="Task" /> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Task" /> + <derivation value="constraint" /> + <differential> + <element id="Task.identifier.assigner"> + <path value="Task.identifier.assigner" /> + <type> + <code value="Reference" /> + <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" /> + </type> + </element> + <element id="Task.basedOn.identifier.assigner"> + <path value="Task.basedOn.identifier.assigner" /> + <type> + <code value="Reference" /> + <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" /> + </type> + </element> + <element id="Task.partOf"> + <path value="Task.partOf" /> + <type> + <code value="Reference" /> + <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Task" /> + </type> + </element> + <element id="Task.partOf.identifier.assigner"> + <path value="Task.partOf.identifier.assigner" /> + <type> + <code value="Reference" /> + <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" /> + </type> + </element> + <element id="Task.focus.identifier.assigner"> + <path value="Task.focus.identifier.assigner" /> + <type> + <code value="Reference" /> + <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" /> + </type> + </element> + <element id="Task.for.identifier.assigner"> + <path value="Task.for.identifier.assigner" /> + <type> + <code value="Reference" /> + <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" /> + </type> + </element> + <element id="Task.encounter"> + <path value="Task.encounter" /> + <type> + <code value="Reference" /> + <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Encounter" /> + </type> + </element> + <element id="Task.encounter.identifier.assigner"> + <path value="Task.encounter.identifier.assigner" /> + <type> + <code value="Reference" /> + <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" /> + </type> + </element> + <element id="Task.requester"> + <path value="Task.requester" /> + <type> + <code value="Reference" /> + <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Device" /> + <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" /> + <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Patient" /> + <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Practitioner" /> + <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-PractitionerRole" /> + <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-RelatedPerson" /> + </type> + </element> + <element id="Task.requester.identifier.assigner"> + <path value="Task.requester.identifier.assigner" /> + <type> + <code value="Reference" /> + <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" /> + </type> + </element> + <element id="Task.owner"> + <path value="Task.owner" /> + <type> + <code value="Reference" /> + <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-CareTeam" /> + <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Device" /> + <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" /> + <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Patient" /> + <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Practitioner" /> + <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-PractitionerRole" /> + <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-RelatedPerson" /> + <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-HealthcareService" /> + </type> + </element> + <element id="Task.owner.identifier.assigner"> + <path value="Task.owner.identifier.assigner" /> + <type> + <code value="Reference" /> + <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" /> + </type> + </element> + <element id="Task.location"> + <path value="Task.location" /> + <type> + <code value="Reference" /> + <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Location" /> + </type> + </element> + <element id="Task.location.identifier.assigner"> + <path value="Task.location.identifier.assigner" /> + <type> + <code value="Reference" /> + <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" /> + </type> + </element> + <element id="Task.reasonReference.identifier.assigner"> + <path value="Task.reasonReference.identifier.assigner" /> + <type> + <code value="Reference" /> + <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" /> + </type> + </element> + <element id="Task.insurance.identifier.assigner"> + <path value="Task.insurance.identifier.assigner" /> + <type> + <code value="Reference" /> + <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" /> + </type> + </element> + <element id="Task.relevantHistory"> + <path value="Task.relevantHistory" /> + <type> + <code value="Reference" /> + <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Provenance" /> + </type> + </element> + <element id="Task.relevantHistory.identifier.assigner"> + <path value="Task.relevantHistory.identifier.assigner" /> + <type> + <code value="Reference" /> + <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" /> + </type> + </element> + <element id="Task.restriction.recipient"> + <path value="Task.restriction.recipient" /> + <type> + <code value="Reference" /> + <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" /> + <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Patient" /> + <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Practitioner" /> + <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-PractitionerRole" /> + <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-RelatedPerson" /> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" /> + </type> + </element> + <element id="Task.restriction.recipient.identifier.assigner"> + <path value="Task.restriction.recipient.identifier.assigner" /> + <type> + <code value="Reference" /> + <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" /> + </type> + </element> + </differential> +</StructureDefinition>