From 01ca748b53fef15ca55c2945b29a66e0a4e72b5f Mon Sep 17 00:00:00 2001 From: Sikeey dahal Date: Fri, 25 Apr 2025 09:35:25 -0400 Subject: [PATCH 1/3] path bookxml, pom file, build workflows --- .github/workflows/build.yaml | 59 +++++++++++++++---- .vscode/settings.json | 3 + book/src/docbkx/The Book.xml | 42 ++++++------- pom.xml | 36 +++++++++-- .../pom.xml | 0 .../src/docbkx/ROI.xml | 0 .../src/main/assembly/docbook.xml | 0 .../src/main/assembly/html.xml | 0 .../src/main/assembly/pdf.xml | 0 .../Volume 15 - Return on Investment.xml | 2 +- 10 files changed, 103 insertions(+), 39 deletions(-) create mode 100644 .vscode/settings.json rename volume15-return-investment/{chapter1-roi => chapter1-return-on-investment}/pom.xml (100%) rename volume15-return-investment/{chapter1-roi => chapter1-return-on-investment}/src/docbkx/ROI.xml (100%) rename volume15-return-investment/{chapter1-roi => chapter1-return-on-investment}/src/main/assembly/docbook.xml (100%) rename volume15-return-investment/{chapter1-roi => chapter1-return-on-investment}/src/main/assembly/html.xml (100%) rename volume15-return-investment/{chapter1-roi => chapter1-return-on-investment}/src/main/assembly/pdf.xml (100%) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a996f9d..d719772 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,23 +1,58 @@ -name: Build Workflow +name: DocBook Build -run-name: 'Build Workflow -- ${{ github.head_ref || github.ref_name }}' +run-name: DocBook Build -- ${{ github.event.inputs.module }} -- ${{github.ref_name || github.head_ref}} on: - workflow_dispatch: +# push: +# pull_request: + workflow_dispatch: + inputs: + module: + description: 'choose modules to build' + required: true + type: choice + options: + - book + - volume1-Introduction + - volume2-Background + - volume3-IKM-Overview + - volume4-Tinkar-Ballot + - volume5-Knowledge-Layers + - volume6-ANF-Ballot + - volume7-Use-Cases + - volume8-Komet-User-Guide + - volume9-Wisdom-of-Crowds + - volume10-Patient-Data-Privacy + - volume11-Healthcare-Data-Management + - volume12-Healthcare-Quality-Improvement + - volume13-Global-Health-International-Collaboration + - volume14-Emergency-Preparedness + - volume15-Return-Investment + - volume16-Temporal-Relationships -env: - BRANCH_NAME: ${{github.ref_name}} jobs: build-job: - name: Build Job + name: Build Job -- ${{ github.event.inputs.module }} runs-on: ubuntu-24.04 steps: - - uses: actions/setup-java@v4 + - name: checkout repo + uses: actions/checkout@v4 + + - name: install java + uses: actions/setup-java@v4 with: - java-version: '21' - distribution: 'zulu' - - name: Build IKMDEV Code - uses: ikmdev/maven-clean-install-build-action@main + distribution: 'zulu' # See 'Supported distributions' for available options + java-version: '23' + + - name: Build Selected Module -- ${{ github.event.inputs.module }} + run: | + echo "Building module: ${{ github.event.inputs.module }}" + mvn clean install -U -D'maven.build.cache.enabled=false' -D'module-name=${{ github.event.inputs.module }}' + + - name: upload Generated PDF -- ${{ github.event.inputs.module }} + uses: actions/upload-artifact@v4 with: - branch_name: ${{env.BRANCH_NAME}} \ No newline at end of file + name: ${{ github.event.inputs.module }}-pdf + path: ${{ github.event.inputs.module }}/target/site/docbook/*.pdf + \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..0e14d8e --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "java.configuration.updateBuildConfiguration": "disabled" +} \ No newline at end of file diff --git a/book/src/docbkx/The Book.xml b/book/src/docbkx/The Book.xml index 5b0fd8b..be32ead 100644 --- a/book/src/docbkx/The Book.xml +++ b/book/src/docbkx/The Book.xml @@ -25,17 +25,17 @@ Foundational Architecture + href="../../../volume4-Tinkar-Ballot/chapter1-introduction-tinkar/src/docbkx/Introduction.xml"/> + href="../../../volume4-Tinkar-Ballot/chapter2-business-requirements/src/docbkx/business-requirements.xml"/> + href="../../../volume4-Tinkar-Ballot/chapter3-tinkar-reference-model/src/docbkx/tinkar-reference-model.xml"/> + href="../../../volume4-Tinkar-Ballot/chapter4-implications/src/docbkx/implications.xml"/> - - + href="../../../volume4-Tinkar-Ballot/chapter5-conclusion/src/docbkx/conclusion.xml"/> + + Terminology Knowledge @@ -59,26 +59,26 @@ xmlns:xi="http://www.w3.org/2001/XInclude"/> + href="../../../volume6-ANF-Ballot/chapter1-introduction-anf/src/docbkx/introduction.xml"/> + href="../../../volume6-ANF-Ballot/chapter2-anf-reference-model/src/docbkx/anf-reference-model.xml"/> + href="../../../volume6-ANF-Ballot/chapter3-anf-clinical-statements/src/docbkx/anf-clinical-statements.xml"/> + href="../../../volume6-ANF-Ballot/chapter4-analysis-normal-form/src/docbkx/analysis-normal-form.xml"/> + href="../../../volume6-ANF-Ballot/chapter5-transformation/src/docbkx/transformation.xml"/> + href="../../../volume6-ANF-Ballot/chapter6-precision/src/docbkx/precision.xml"/> + href="../../../volume6-ANF-Ballot/chapter7-conclusion/src/docbkx/conclusion.xml"/> Assertional Knowledge - + Procedural Representation @@ -103,17 +103,17 @@ > - + Use Cases and Summary of Findings - + + href="../../../volume7-Use-Cases/chapter2-summary-of-findings/src/docbkx/Summary%20of%20Findings%20%E2%80%93%20RWE%20Search%20and%20Query%20Methods.xml"/> Real World Applications - + Appendix - + \ No newline at end of file diff --git a/pom.xml b/pom.xml index 89f7e6c..1d932b9 100644 --- a/pom.xml +++ b/pom.xml @@ -22,6 +22,7 @@ UTF-8 2.0.13 + book @@ -292,14 +293,39 @@ - book - book/chapter1 - volume1 - volume1/chapter1 doc-logging - docbook-customization + docbook-customization + ${module-name} + + + all-modules + + false + + + doc-logging + docbook-customization + book + volume1-Introduction + volume2-Background + volume3-IKM-Overview + volume4-Tinkar-Ballot + volume5-Knowledge-Layers + volume6-ANF-Ballot + volume7-Use-Cases + volume8-Komet-User-Guide + volume9-Wisdom-of-Crowds + volume10-Patient-Data-Privacy + volume11-Healthcare-Data-Management + volume12-Healthcare-Quality-Improvement + volume13-Global-Health-International-Collaboration + volume14-Emergency-Preparedness + volume15-Return-Investment + volume16-Temporal-Relationships + + xep-profile diff --git a/volume15-return-investment/chapter1-roi/pom.xml b/volume15-return-investment/chapter1-return-on-investment/pom.xml similarity index 100% rename from volume15-return-investment/chapter1-roi/pom.xml rename to volume15-return-investment/chapter1-return-on-investment/pom.xml diff --git a/volume15-return-investment/chapter1-roi/src/docbkx/ROI.xml b/volume15-return-investment/chapter1-return-on-investment/src/docbkx/ROI.xml similarity index 100% rename from volume15-return-investment/chapter1-roi/src/docbkx/ROI.xml rename to volume15-return-investment/chapter1-return-on-investment/src/docbkx/ROI.xml diff --git a/volume15-return-investment/chapter1-roi/src/main/assembly/docbook.xml b/volume15-return-investment/chapter1-return-on-investment/src/main/assembly/docbook.xml similarity index 100% rename from volume15-return-investment/chapter1-roi/src/main/assembly/docbook.xml rename to volume15-return-investment/chapter1-return-on-investment/src/main/assembly/docbook.xml diff --git a/volume15-return-investment/chapter1-roi/src/main/assembly/html.xml b/volume15-return-investment/chapter1-return-on-investment/src/main/assembly/html.xml similarity index 100% rename from volume15-return-investment/chapter1-roi/src/main/assembly/html.xml rename to volume15-return-investment/chapter1-return-on-investment/src/main/assembly/html.xml diff --git a/volume15-return-investment/chapter1-roi/src/main/assembly/pdf.xml b/volume15-return-investment/chapter1-return-on-investment/src/main/assembly/pdf.xml similarity index 100% rename from volume15-return-investment/chapter1-roi/src/main/assembly/pdf.xml rename to volume15-return-investment/chapter1-return-on-investment/src/main/assembly/pdf.xml diff --git a/volume15-return-investment/src/docbkx/Volume 15 - Return on Investment.xml b/volume15-return-investment/src/docbkx/Volume 15 - Return on Investment.xml index 932877d..3eae2cc 100644 --- a/volume15-return-investment/src/docbkx/Volume 15 - Return on Investment.xml +++ b/volume15-return-investment/src/docbkx/Volume 15 - Return on Investment.xml @@ -9,6 +9,6 @@ IKM Return on Investment (ROI) - + From ad458ff3994734a66192cfe231e514d9c981a0b0 Mon Sep 17 00:00:00 2001 From: Sikeey dahal Date: Fri, 25 Apr 2025 14:03:14 -0400 Subject: [PATCH 2/3] volume xmlpath --- .../src/docbkx/Volume 1 - Introduction.xml | 2 +- .../docbkx/Volume 10 - Patient Data Privacy.xml | 2 +- .../docbkx/Volume 15 - Return on Investment.xml | 4 ++-- .../src/docbkx/Volume 2 - Background.xml | 6 +++--- .../src/docbkx/Volume 3 - IKM Overview.xml | 12 ++++++------ .../src/docbkx/Volume 4 - Tinkar Ballot.xml | 14 +++++++------- .../src/docbkx/Volume 5 - Knowledge Layers.xml | 8 ++++---- .../src/docbkx/Volume 6 - ANF Ballot.xml | 16 ++++++++-------- .../src/docbkx/Volume 7 - Use Cases.xml | 6 +++--- .../src/docbkx/Volume 8 - Komet User Guide.xml | 2 +- .../src/docbkx/Volume 9 - Wisdom of Crowds.xml | 8 ++++---- 11 files changed, 40 insertions(+), 40 deletions(-) diff --git a/volume1-Introduction/src/docbkx/Volume 1 - Introduction.xml b/volume1-Introduction/src/docbkx/Volume 1 - Introduction.xml index 5dd8d00..1ac5d2d 100644 --- a/volume1-Introduction/src/docbkx/Volume 1 - Introduction.xml +++ b/volume1-Introduction/src/docbkx/Volume 1 - Introduction.xml @@ -9,6 +9,6 @@ IKM Introduction - + \ No newline at end of file diff --git a/volume10-Patient-Data-Privacy/src/docbkx/Volume 10 - Patient Data Privacy.xml b/volume10-Patient-Data-Privacy/src/docbkx/Volume 10 - Patient Data Privacy.xml index d1ca816..367eb1c 100644 --- a/volume10-Patient-Data-Privacy/src/docbkx/Volume 10 - Patient Data Privacy.xml +++ b/volume10-Patient-Data-Privacy/src/docbkx/Volume 10 - Patient Data Privacy.xml @@ -11,5 +11,5 @@ Patient Data Privacy - + diff --git a/volume15-return-investment/src/docbkx/Volume 15 - Return on Investment.xml b/volume15-return-investment/src/docbkx/Volume 15 - Return on Investment.xml index 3eae2cc..7d5638c 100644 --- a/volume15-return-investment/src/docbkx/Volume 15 - Return on Investment.xml +++ b/volume15-return-investment/src/docbkx/Volume 15 - Return on Investment.xml @@ -9,6 +9,6 @@ IKM Return on Investment (ROI) - + - + \ No newline at end of file diff --git a/volume2-Background/src/docbkx/Volume 2 - Background.xml b/volume2-Background/src/docbkx/Volume 2 - Background.xml index 22cf074..e08290c 100644 --- a/volume2-Background/src/docbkx/Volume 2 - Background.xml +++ b/volume2-Background/src/docbkx/Volume 2 - Background.xml @@ -9,7 +9,7 @@ IKM Background - - + + - + \ No newline at end of file diff --git a/volume3-IKM-Overview/src/docbkx/Volume 3 - IKM Overview.xml b/volume3-IKM-Overview/src/docbkx/Volume 3 - IKM Overview.xml index e5a94a7..4f3f30b 100644 --- a/volume3-IKM-Overview/src/docbkx/Volume 3 - IKM Overview.xml +++ b/volume3-IKM-Overview/src/docbkx/Volume 3 - IKM Overview.xml @@ -9,20 +9,20 @@ IKM Overview - + Current State of IKM - + + href="../../../volume3-IKM-Overview/chapter3-techn-coding-hosting/src/docbkx/Current%20KM%20Technologies,%20Industry%20Coding%20Standards,%20and%20KM%20Hosting%20Options%20for%20Volume%203.xml"/> Ethical Imperatives in Public Health and Healthcare - + Development of IKM - + - + \ No newline at end of file diff --git a/volume4-Tinkar-Ballot/src/docbkx/Volume 4 - Tinkar Ballot.xml b/volume4-Tinkar-Ballot/src/docbkx/Volume 4 - Tinkar Ballot.xml index cf02f19..4ae1884 100644 --- a/volume4-Tinkar-Ballot/src/docbkx/Volume 4 - Tinkar Ballot.xml +++ b/volume4-Tinkar-Ballot/src/docbkx/Volume 4 - Tinkar Ballot.xml @@ -10,16 +10,16 @@ Foundational Architecture + href="../../../volume4-Tinkar-Ballot/chapter1-introduction-tinkar/src/docbkx/Introduction.xml"/> + href="../../../volume4-Tinkar-Ballot/chapter2-business-requirements/src/docbkx/business-requirements.xml"/> + href="../../../volume4-Tinkar-Ballot/chapter3-tinkar-reference-model/src/docbkx/tinkar-reference-model.xml"/> + href="../../../volume4-Tinkar-Ballot/chapter4-implications/src/docbkx/implications.xml"/> - + href="../../../volume4-Tinkar-Ballot/chapter5-conclusion/src/docbkx/conclusion.xml"/> + - + diff --git a/volume5-Knowledge-Layers/src/docbkx/Volume 5 - Knowledge Layers.xml b/volume5-Knowledge-Layers/src/docbkx/Volume 5 - Knowledge Layers.xml index a120b91..19917f1 100644 --- a/volume5-Knowledge-Layers/src/docbkx/Volume 5 - Knowledge Layers.xml +++ b/volume5-Knowledge-Layers/src/docbkx/Volume 5 - Knowledge Layers.xml @@ -9,14 +9,14 @@ Terminology Knowledge - + Assertional Knowledge - + Procedural Knowledge - + - + \ No newline at end of file diff --git a/volume6-ANF-Ballot/src/docbkx/Volume 6 - ANF Ballot.xml b/volume6-ANF-Ballot/src/docbkx/Volume 6 - ANF Ballot.xml index b2c8b3f..1340baf 100644 --- a/volume6-ANF-Ballot/src/docbkx/Volume 6 - ANF Ballot.xml +++ b/volume6-ANF-Ballot/src/docbkx/Volume 6 - ANF Ballot.xml @@ -9,16 +9,16 @@ ANF Ballot - - + + + href="../../../volume6-ANF-Ballot/chapter3-anf-clinical-statements/src/docbkx/anf-clinical-statements.xml"/> - + href="../../../volume6-ANF-Ballot/chapter4-analysis-normal-form/src/docbkx/analysis-normal-form.xml"/> + - - + href="../../../volume6-ANF-Ballot/chapter6-precision/src/docbkx/precision.xml"/> + + diff --git a/volume7-Use-Cases/src/docbkx/Volume 7 - Use Cases.xml b/volume7-Use-Cases/src/docbkx/Volume 7 - Use Cases.xml index 0644134..b47a934 100644 --- a/volume7-Use-Cases/src/docbkx/Volume 7 - Use Cases.xml +++ b/volume7-Use-Cases/src/docbkx/Volume 7 - Use Cases.xml @@ -9,8 +9,8 @@ Use Cases - - - + + + diff --git a/volume8-Komet-User-Guide/src/docbkx/Volume 8 - Komet User Guide.xml b/volume8-Komet-User-Guide/src/docbkx/Volume 8 - Komet User Guide.xml index 46e1de0..fd3746c 100644 --- a/volume8-Komet-User-Guide/src/docbkx/Volume 8 - Komet User Guide.xml +++ b/volume8-Komet-User-Guide/src/docbkx/Volume 8 - Komet User Guide.xml @@ -9,6 +9,6 @@ Komet User Guide - + diff --git a/volume9-Wisdom-of-Crowds/src/docbkx/Volume 9 - Wisdom of Crowds.xml b/volume9-Wisdom-of-Crowds/src/docbkx/Volume 9 - Wisdom of Crowds.xml index 3e195c8..625fc9e 100644 --- a/volume9-Wisdom-of-Crowds/src/docbkx/Volume 9 - Wisdom of Crowds.xml +++ b/volume9-Wisdom-of-Crowds/src/docbkx/Volume 9 - Wisdom of Crowds.xml @@ -9,12 +9,12 @@ Wisdom of Crowds and Open-Source - - - + + + Ecosystem Engagement - + From 5d3aa53f7ef0b05b4f015f3328ccef8160a07792 Mon Sep 17 00:00:00 2001 From: Sikeey dahal Date: Fri, 25 Apr 2025 15:34:13 -0400 Subject: [PATCH 3/3] volume remaining xmlpath --- .github/workflows/build.yaml | 29 +++++++++++++++++-- pom.xml | 2 +- ...Volume 11 - Healthcare Data Management.xml | 2 +- ...me 12 - Healthcare Quality Improvement.xml | 2 +- ...Health and International Collaboration.xml | 2 +- .../Volume 14 - Emergency Preparedness.xml | 2 +- .../Volume 16 - Temporal Relationships.xml | 4 +-- 7 files changed, 33 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index d719772..5d069ad 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -12,6 +12,8 @@ on: required: true type: choice options: + - -- SELECT -- + - All - book - volume1-Introduction - volume2-Background @@ -30,12 +32,21 @@ on: - volume15-Return-Investment - volume16-Temporal-Relationships +env: + MODULE: ${{github.event.inputs.module}} + jobs: build-job: name: Build Job -- ${{ github.event.inputs.module }} runs-on: ubuntu-24.04 steps: + - name: Fail if --SELECT-- chosen + if: env.MODULE == '-- SELECT --' + run: | + echo "Please pick a valid module" + exit 1 + - name: checkout repo uses: actions/checkout@v4 @@ -45,14 +56,26 @@ jobs: distribution: 'zulu' # See 'Supported distributions' for available options java-version: '23' + - name: Determine Choice + id: module_choice_arg + run: | + if [ "$CHOSEN_MODULE" == "All" ]; then + echo "BUILD_ARG=-Pall-modules" >> $GITHUB_OUTPUT + else + echo "BUILD_ARG=-D'module-name=${{ github.event.inputs.module }}'" >> $GITHUB_OUTPUT + fi + env: + CHOSEN_MODULE: ${{env.MODULE}} + - name: Build Selected Module -- ${{ github.event.inputs.module }} run: | echo "Building module: ${{ github.event.inputs.module }}" - mvn clean install -U -D'maven.build.cache.enabled=false' -D'module-name=${{ github.event.inputs.module }}' + mvn clean install -U -D'maven.build.cache.enabled=false' ${{steps.module_choice_arg.outputs.BUILD_ARG}} - - name: upload Generated PDF -- ${{ github.event.inputs.module }} + - name: Upload Generated PDF -- ${{ github.event.inputs.module }} + if: env.MODULE != 'All' uses: actions/upload-artifact@v4 with: name: ${{ github.event.inputs.module }}-pdf path: ${{ github.event.inputs.module }}/target/site/docbook/*.pdf - \ No newline at end of file + \ No newline at end of file diff --git a/pom.xml b/pom.xml index 1d932b9..f8732f7 100644 --- a/pom.xml +++ b/pom.xml @@ -307,7 +307,7 @@ doc-logging docbook-customization - book + volume1-Introduction volume2-Background volume3-IKM-Overview diff --git a/volume11-Healthcare-Data-Management/src/docbkx/Volume 11 - Healthcare Data Management.xml b/volume11-Healthcare-Data-Management/src/docbkx/Volume 11 - Healthcare Data Management.xml index 25cb990..08e081e 100644 --- a/volume11-Healthcare-Data-Management/src/docbkx/Volume 11 - Healthcare Data Management.xml +++ b/volume11-Healthcare-Data-Management/src/docbkx/Volume 11 - Healthcare Data Management.xml @@ -9,6 +9,6 @@ Healthcare Data Management - + \ No newline at end of file diff --git a/volume12-Healthcare-Quality-Improvement/src/docbkx/Volume 12 - Healthcare Quality Improvement.xml b/volume12-Healthcare-Quality-Improvement/src/docbkx/Volume 12 - Healthcare Quality Improvement.xml index 26c6346..5497c30 100644 --- a/volume12-Healthcare-Quality-Improvement/src/docbkx/Volume 12 - Healthcare Quality Improvement.xml +++ b/volume12-Healthcare-Quality-Improvement/src/docbkx/Volume 12 - Healthcare Quality Improvement.xml @@ -9,6 +9,6 @@ Healthcare Quality Improvement - + diff --git a/volume13-Global-Health-International-Collaboration/src/docbkx/Volume 13 - Global Health and International Collaboration.xml b/volume13-Global-Health-International-Collaboration/src/docbkx/Volume 13 - Global Health and International Collaboration.xml index 3ba50c5..0487a5c 100644 --- a/volume13-Global-Health-International-Collaboration/src/docbkx/Volume 13 - Global Health and International Collaboration.xml +++ b/volume13-Global-Health-International-Collaboration/src/docbkx/Volume 13 - Global Health and International Collaboration.xml @@ -9,7 +9,7 @@ Global Health and International Collaboration - + diff --git a/volume14-Emergency-Preparedness/src/docbkx/Volume 14 - Emergency Preparedness.xml b/volume14-Emergency-Preparedness/src/docbkx/Volume 14 - Emergency Preparedness.xml index 1e76b5a..8fc4e7d 100644 --- a/volume14-Emergency-Preparedness/src/docbkx/Volume 14 - Emergency Preparedness.xml +++ b/volume14-Emergency-Preparedness/src/docbkx/Volume 14 - Emergency Preparedness.xml @@ -10,5 +10,5 @@ IKM and Emergency Disaster Response - + \ No newline at end of file diff --git a/volume16-Temporal-Relationships/src/docbkx/Volume 16 - Temporal Relationships.xml b/volume16-Temporal-Relationships/src/docbkx/Volume 16 - Temporal Relationships.xml index db4bc55..ed3123d 100644 --- a/volume16-Temporal-Relationships/src/docbkx/Volume 16 - Temporal Relationships.xml +++ b/volume16-Temporal-Relationships/src/docbkx/Volume 16 - Temporal Relationships.xml @@ -9,10 +9,10 @@ Introduction to Temporal Relationships - + Advanced Examination of Temporal Relationships - +