-
Notifications
You must be signed in to change notification settings - Fork 13
46 lines (43 loc) · 1.23 KB
/
upload.yaml
File metadata and controls
46 lines (43 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Upload
on:
workflow_dispatch
jobs:
upload:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install deps
uses: ./.github/deps
- name: Validate
uses: ./.github/validate
- shell: bash
run: |
cd /tmp &&\
wget https://github.com/hl7au/au-fhir-test-data-utils/releases/latest/download/TestDataClient-linux-x64.zip &&\
unzip TestDataClient-linux-x64.zip &&\
chmod +x TestDataClient-linux-x64-binaries/TestDataClient
- shell: bash
env:
AUTH_SECRET: ${{ secrets.AUTH_SECRET }}
run: |
declare resources=(
"Patient"
"HealthcareService"
"Organization"
"Location"
"Practitioner"
"PractitionerRole"
"RelatedPerson"
"Encounter"
"AllergyIntolerance"
"Condition"
"Immunization"
"Observation"
"Procedure"
"Medication"
"MedicationRequest") &&\
for resource in "${resources[@]}"
do
/tmp/TestDataClient-linux-x64-binaries/TestDataClient $resource generated/ https://fhir.hl7.org.au/aucore/fhir/DEFAULT Basic $AUTH_SECRET
done