generated from ansforge/IG-modele
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 3caf28e
Showing
235 changed files
with
4,910 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
name: IG issue template | ||
about: Issue template for ANS Implementation Guide | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
## Description du problème | ||
|
||
|
||
## Fichier•s concerné•s | ||
|
||
|
||
## Solution proposée |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
## Description des changements | ||
|
||
* [changement 1] | ||
* [changement 2] | ||
* ... | ||
|
||
## Preview | ||
|
||
https://ansforge.github.io/IG-fhir-[nom repo]/[ajouter_nom_de_la_branche]/ig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Workflow Release to IG-website-release | ||
on: | ||
workflow_call: | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
jobs: | ||
run-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
path: igSource | ||
- uses: ansforge/IG-workflows@v0.2.0 | ||
with: | ||
repo_ig: "./igSource" | ||
github_page: "true" | ||
github_page_token: ${{ secrets.GITHUB_TOKEN }} | ||
bake: "true" | ||
nos: "true" | ||
validator_cli: "true" | ||
publish_repo: "ansforge/IG-website-release" | ||
publish_repo_token : ${{ secrets.ANS_IG_API_TOKEN }} | ||
publish_path_outpout : "./IG-website-release/www/ig/fhir" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Workflow Sushi Tests gitHubpages | ||
on: | ||
workflow_call: | ||
push: | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
jobs: | ||
run-sushi-tests_gitHubPages: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
path: igSource | ||
- uses: ansforge/IG-workflows@v0.4.0 | ||
with: | ||
repo_ig: "./igSource" | ||
github_page: "true" | ||
github_page_token: ${{ secrets.GITHUB_TOKEN }} | ||
bake: "false" | ||
validator_cli: "true" | ||
generate_testscript: "false" | ||
generate_plantuml : "true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Temporary folders # | ||
##################### | ||
fsh-generated* | ||
temp* | ||
template* | ||
output* | ||
local-template* | ||
|
||
# Ignore large files and frequently changed files in input-cache # | ||
################################################################## | ||
input-cache* | ||
|
||
# OS generated files # | ||
###################### | ||
Thumbs.db | ||
.DS_Store | ||
.DS_Store? | ||
|
||
# backup files # | ||
################ | ||
*.bak | ||
|
||
# IDE generated files # | ||
####################### | ||
.vscode | ||
.idea | ||
|
||
# Microsoft Office temp files # | ||
############################### | ||
~$*.xlsx | ||
|
||
# Automated testing | ||
.classpath | ||
.project | ||
.settings/* | ||
target/* | ||
.mvn/wrapper/maven-wrapper.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2022 Github de l'Agence du Numérique en Santé (ANS) | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
[A MODIFIER : remplacer avec votre logo s'il ne s'agit pas d'un projet CI-SIS] | ||
|
||
![Logo_LEF_CI-SIS](https://user-images.githubusercontent.com/48218773/227532484-eff82649-4e42-49c6-966a-dc3ea78cf59c.png) | ||
|
||
[A MODIFIER : adapter au lien du projet] | ||
|
||
[![Workflow Init](https://github.com/ansforge/IG-fhir-partage-de-documents-de-sante/actions/workflows/fhir-workflows.yml/badge.svg)](https://github.com/ansforge/IG-fhir-partage-de-documents-de-sante/actions/workflows/fhir-workflows.yml) | ||
|
||
Cet exemple d'Implementation Guide (IG) très simplifié sert de base pour le développement de nouveaux guides d'implémentation. La démarche d'élaboration d'un nouvel IG est expliquée dans le [wiki de ce repo](https://github.com/ansforge/IG-modele/wiki). | ||
Le README ci-dessous constitue un template à adapter et compléter pour chaque projet. | ||
|
||
# Contexte | ||
|
||
## Contexte métier du projet | ||
|
||
[A COMPLETER : doit contenir la description fonctionnelle du projet destinée à un profil non technique] | ||
|
||
## Contexte technique du projet | ||
|
||
[A COMPLETER : doit expliquer brièvement quelles ressources / profils sont utilisés, exemple implémentation où IG est utilisé] | ||
|
||
# CI/CD | ||
|
||
Les workflows associés à ce repository (.github/workflows) permettent : | ||
|
||
* D'executer Sushi pour vérifier la grammaire | ||
* De faire les tests avec le validator_cli | ||
* De publier les pages : https://ansforge.github.io/{nom du repo}/ig/{nom de la branche} | ||
|
||
# Notes | ||
|
||
Ce repo "IG-modele" a été créé à partir du repo [sample-ig](https://github.com/FHIR/sample-ig) de l'organisation GitHub FHIR. | ||
|
||
[A COMPLETER: notes supplémentaires pour le lecteur de la spec] | ||
Un commentaire ? Une remarque ? Utilisez les GitHub [issues](https://docs.github.com/fr/issues) pour indiquer vos propositions d'amélioration et de correction. | ||
|
||
## Acronymes | ||
|
||
* IG : Implementation Guide | ||
* FHIR : Fast Healthcare Interoperability Resources | ||
* HL7 : Health Level Seven | ||
|
||
[A COMPLETER : acronymes utilisés dans le cadre de ce projet] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@ECHO OFF | ||
CALL ./_genonce.bat -watch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
./_genonce.sh -watch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
@ECHO OFF | ||
SET publisher_jar=publisher.jar | ||
SET input_cache_path=%CD%\input-cache | ||
|
||
ECHO Checking internet connection... | ||
PING tx.fhir.org -4 -n 1 -w 1000 | FINDSTR TTL && GOTO isonline | ||
ECHO We're offline... | ||
SET txoption=-tx n/a | ||
GOTO igpublish | ||
|
||
:isonline | ||
ECHO We're online | ||
SET txoption= | ||
|
||
:igpublish | ||
|
||
SET JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8 | ||
|
||
IF EXIST "%input_cache_path%\%publisher_jar%" ( | ||
JAVA -jar "%input_cache_path%\%publisher_jar%" -ig . %txoption% %* | ||
) ELSE If exist "..\%publisher_jar%" ( | ||
JAVA -jar "..\%publisher_jar%" -ig . %txoption% %* | ||
) ELSE ( | ||
ECHO IG Publisher NOT FOUND in input-cache or parent folder. Please run _updatePublisher. Aborting... | ||
) | ||
|
||
PAUSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
publisher_jar=publisher.jar | ||
input_cache_path=./input-cache/ | ||
echo Checking internet connection... | ||
curl -sSf tx.fhir.org > /dev/null | ||
|
||
if [ $? -eq 0 ]; then | ||
echo "Online" | ||
txoption="" | ||
else | ||
echo "Offline" | ||
txoption="-tx n/a" | ||
fi | ||
|
||
echo "$txoption" | ||
|
||
export JAVA_TOOL_OPTIONS="$JAVA_TOOL_OPTIONS -Dfile.encoding=UTF-8" | ||
|
||
publisher=$input_cache_path/$publisher_jar | ||
if test -f "$publisher"; then | ||
java -jar $publisher -ig . $txoption $* | ||
|
||
else | ||
publisher=../$publisher_jar | ||
if test -f "$publisher"; then | ||
java -jar $publisher -ig . $txoption $* | ||
else | ||
echo IG Publisher NOT FOUND in input-cache or parent folder. Please run _updatePublisher. Aborting... | ||
fi | ||
fi |
Oops, something went wrong.