From 2d1556ffa0171f3f4319cba6325103d8aa70cdab Mon Sep 17 00:00:00 2001 From: Gorovoi Aleksei Date: Thu, 26 Dec 2024 18:30:34 +0300 Subject: [PATCH] Update github workflow and readme for ips cl --- .github/workflows/ips-cl-image.yaml | 45 ++++++++ ips_ig_cl/README.MD | 17 +-- ips_ig_cl/ips-inferno-config.json | 156 ---------------------------- 3 files changed, 47 insertions(+), 171 deletions(-) create mode 100644 .github/workflows/ips-cl-image.yaml delete mode 100644 ips_ig_cl/ips-inferno-config.json diff --git a/.github/workflows/ips-cl-image.yaml b/.github/workflows/ips-cl-image.yaml new file mode 100644 index 0000000..d69af1b --- /dev/null +++ b/.github/workflows/ips-cl-image.yaml @@ -0,0 +1,45 @@ +name: IPS CL app image + +env: + REGISTRY: ghcr.io + IMAGE_NAME: ${{ github.repository }}-ips-ig-cl + +on: + push: + branches: + - main + paths: + - 'ips_ig_cl/**' # Only trigger if files within ips_ig change + workflow_dispatch: + +jobs: + build-image: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: docker/setup-buildx-action@v3 + + - name: Log into registry ${{ env.REGISTRY }} + uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Extract Docker metadata + id: meta + uses: docker/metadata-action@v5 + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + + - name: Build and push image + uses: docker/build-push-action@v5 + with: + push: true + no-cache: true + platforms: linux/amd64,linux/arm64 + context: ./ips_ig_cl + file: ./ips_ig_cl/Dockerfile + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file diff --git a/ips_ig_cl/README.MD b/ips_ig_cl/README.MD index f3f6c87..ec2dde1 100644 --- a/ips_ig_cl/README.MD +++ b/ips_ig_cl/README.MD @@ -1,12 +1,10 @@ # Implementation of IPS FHIR IG on Aidbox FHIR platform -[Demo](https://ips.hz.aidbox.dev/fhir/Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8/$summary) | [Inferno International Patient Summary Test Kit](https://inferno-qa.healthit.gov/suites/ips/Zb7EriZknW) - This repository contains pre-configured Aidbox instance and implementation of `$summary` operation defined by IPS. ## About IPS (International Patient Summary) -The IPS is intended to support the provision of essential healthcare information for a patient, regardless of where they are receiving care. It includes critical information such as allergies, medications, past surgeries, and other significant medical history details. See [IPS Specification](https://build.fhir.org/ig/HL7/fhir-ips/index.html) +The IPS is intended to support the provision of essential healthcare information for a patient, regardless of where they are receiving care. It includes critical information such as allergies, medications, past surgeries, and other significant medical history details. See [IPS Specification](https://build.fhir.org/ig/HL7Chile/IPS-CL/index.html) ## Prerequisites @@ -30,8 +28,6 @@ Add the license (`AIDBOX_LICENSE`) int the .env file. docker compose up --build ``` -On start, the node-app will [upload](./src/index.ts#L142) a sample FHIR [Bundle](./src/patientData.ts) with patient data. - ## Step 3: Open and log in into Aidbox instance Open in browser http://localhost:8888 @@ -201,13 +197,4 @@ stringData: AIDBOX_CLIENT_ID: AIDBOX_CLIENT_SECRET: APP_SECRET: # allows aidbox safely communicate with this app -``` - -## Run Inferno IPS tests - -To run Inferno IPS tests against this implementation: - -1. Copy the prepared [configuration](./ips-inferno-config.json) for the test suite. -2. Create a test session on the [Inferno website](https://inferno-qa.healthit.gov/test-kits/international-patient-summary/). -3. Click on the "RUN ALL TESTS" button. -4. Paste the copied configuration into the JSON field and submit. +``` \ No newline at end of file diff --git a/ips_ig_cl/ips-inferno-config.json b/ips_ig_cl/ips-inferno-config.json deleted file mode 100644 index 7c0b484..0000000 --- a/ips_ig_cl/ips-inferno-config.json +++ /dev/null @@ -1,156 +0,0 @@ -[ - { - "name": "bundle_content", - "description": "Validate a single IPS bundle (optional)", - "optional": true, - "title": "IPS Bundle", - "type": "textarea", - "value": "" - }, - { - "name": "url", - "title": "IPS FHIR Server Base URL", - "type": "text", - "value": "https://ips.hz.aidbox.dev/fhir" - }, - { - "name": "patient_id", - "type": "text", - "value": "2b90dd2b-2dab-4c75-9bb9-a355e07401e8" - }, - { - "name": "allergy_intolerance_id", - "type": "text", - "value": "c7781f44-6df8-4a8b-9e06-0b34263a47c5" - }, - { - "name": "bundle_id", - "type": "text", - "value": "6902492c-3605-4b9b-912a-e834533b4c38" - }, - { - "name": "composition_id", - "type": "text", - "value": "7fc2d4d0-6977-480c-892f-7feb8bc267f7" - }, - { - "name": "condition_id", - "type": "text", - "value": "c64139e7-f02d-409c-bf34-75e8bf23bc80" - }, - { - "name": "diagnostic_report_id", - "type": "text", - "value": "hemoglobin" - }, - { - "name": "device_id", - "type": "text", - "value": "ips-example-imaging-1" - }, - { - "name": "device_use_statement_id", - "type": "text", - "value": "eumfh-70-275-1" - }, - { - "name": "imaging_study_id", - "type": "text", - "value": "TII-ImagingStudy-5-1" - }, - { - "name": "immunization_id", - "type": "text", - "value": "40b7b6a0-c043-423a-9959-be3707e728b2" - }, - { - "name": "media_id", - "type": "text", - "value": "media-example-smile" - }, - { - "name": "medication_id", - "type": "text", - "value": "976d0804-cae0-45ae-afe3-a19f3ceba6bc" - }, - { - "name": "medication_request_id", - "type": "text", - "value": "eumfh-39-07-1-request" - }, - { - "name": "medication_statement_id", - "type": "text", - "value": "c220e36c-eb67-4fc4-9ba1-2fabc52acec6" - }, - { - "name": "observation_alcohol_use_id", - "type": "text", - "value": "alcohol-use-example" - }, - { - "name": "observation_pregnancy_edd_id", - "type": "text", - "value": "pregnancy-edd-example" - }, - { - "name": "observation_pregnancy_outcome_id", - "type": "text", - "value": "pregnancy-outcome-example" - }, - { - "name": "observation_pregnancy_status_id", - "type": "text", - "value": "pregnancy-status-example" - }, - { - "name": "observation_tobacco_use_id", - "type": "text", - "value": "tobacco-use-example" - }, - { - "name": "observation_results_id", - "type": "text", - "value": "ips-example-imaging-4" - }, - { - "name": "observation_results_laboratory_id", - "type": "text", - "value": "hemoglobin" - }, - { - "name": "observation_results_pathology_id", - "type": "text", - "value": "pathology-cancer" - }, - { - "name": "observation_results_radiology_id", - "type": "text", - "value": "ips-example-imaging-1" - }, - { - "name": "organization_id", - "type": "text", - "value": "TII-Organization1" - }, - { - "name": "practitioner_id", - "type": "text", - "value": "eumfh-39-07" - }, - { - "name": "practitioner_role_id", - "type": "text", - "value": "simple-pr" - }, - { - "name": "procedure_id", - "type": "text", - "value": "eumfh-39-07-1" - }, - { - "name": "specimen_id", - "type": "text", - "value": "specimen-example-1" - } -]