Skip to content

Commit

Permalink
synchronisation du guide
Browse files Browse the repository at this point in the history
  • Loading branch information
souadbenmustapha committed Dec 18, 2024
0 parents commit 3caf28e
Show file tree
Hide file tree
Showing 235 changed files with 4,910 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/ISSUE_TEMPLATE/ig-issue-template.md
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
9 changes: 9 additions & 0 deletions .github/pull_request_template.md
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
24 changes: 24 additions & 0 deletions .github/workflows/fhir-release.yml
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"
22 changes: 22 additions & 0 deletions .github/workflows/fhir-workflows.yml
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"
37 changes: 37 additions & 0 deletions .gitignore
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
21 changes: 21 additions & 0 deletions LICENSE
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.
43 changes: 43 additions & 0 deletions README.md
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]
2 changes: 2 additions & 0 deletions _gencontinuous.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@ECHO OFF
CALL ./_genonce.bat -watch
2 changes: 2 additions & 0 deletions _gencontinuous.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
./_genonce.sh -watch
27 changes: 27 additions & 0 deletions _genonce.bat
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
30 changes: 30 additions & 0 deletions _genonce.sh
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
Loading

0 comments on commit 3caf28e

Please sign in to comment.