Skip to content

Commit 8e7483e

Browse files
Merge branch 'fusionSectionsCDA' of https://github.com/ansforge/IG-document-core into fusionSectionsCDA
2 parents fcadc18 + f935e1d commit 8e7483e

50 files changed

Lines changed: 380 additions & 78 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

_build.bat

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,34 @@ IF EXIST "%input_cache_path%%publisher_jar%" (
2525
) ELSE (
2626
SET "jar_location=not_found"
2727
SET "default_choice=1"
28+
SET "default_reason=publisher not found"
2829
ECHO publisher.jar not found in input-cache or parent folder
2930
)
3031
)
3132

3233

3334
:: Handle command-line argument to bypass the menu
34-
IF NOT "%~1"=="" (
35-
IF /I "%~1"=="update" SET "userChoice=1"
36-
IF /I "%~1"=="build" SET "userChoice=2"
37-
IF /I "%~1"=="nosushi" SET "userChoice=3"
38-
IF /I "%~1"=="notx" SET "userChoice=4"
39-
IF /I "%~1"=="jekyll" SET "userChoice=5"
40-
IF /I "%~1"=="clean" SET "userChoice=6"
41-
IF /I "%~1"=="exit" SET "userChoice=0"
42-
GOTO executeChoice
43-
)
35+
:: Known first arguments select a menu option; anything else is passed through to the publisher
36+
SET "extraArgs="
37+
IF "%~1"=="" GOTO showMenu
38+
IF /I "%~1"=="update" SET "userChoice=1" & GOTO parseExtra
39+
IF /I "%~1"=="build" SET "userChoice=2" & GOTO parseExtra
40+
IF /I "%~1"=="nosushi" SET "userChoice=3" & GOTO parseExtra
41+
IF /I "%~1"=="notx" SET "userChoice=4" & GOTO parseExtra
42+
IF /I "%~1"=="jekyll" SET "userChoice=5" & GOTO parseExtra
43+
IF /I "%~1"=="clean" SET "userChoice=6" & GOTO parseExtra
44+
IF /I "%~1"=="exit" SET "userChoice=0" & GOTO parseExtra
45+
:: Unknown first arg - default to build, pass all args through
46+
SET "userChoice=2"
47+
GOTO collectArgs
48+
:parseExtra
49+
SHIFT
50+
:collectArgs
51+
IF "%~1"=="" GOTO executeChoice
52+
SET "extraArgs=!extraArgs! %1"
53+
SHIFT
54+
GOTO collectArgs
55+
:showMenu
4456

4557
echo ---------------------------------------------------------------
4658
ECHO Checking internet connection...
@@ -53,10 +65,14 @@ IF "%online_status%"=="true" (
5365
SET "latest_version=!latest_version: =!"
5466
SET "latest_version=!latest_version:~0,-1!"
5567
) ELSE (
56-
ECHO We're offline or tx.fhir.org is not available, can only run the publisher without TX...
68+
ECHO.
69+
ECHO *** WARNING: Working offline - this is not the normal mode.
70+
ECHO Some features (e.g. terminology rendering) will not work.
71+
ECHO.
5772
SET "txoption=-tx n/a"
5873
SET "latest_version=unknown"
5974
SET "default_choice=4"
75+
SET "default_reason=working offline"
6076
)
6177

6278
echo ---------------------------------------------------------------
@@ -79,9 +95,11 @@ IF NOT "%online_status%"=="true" (
7995
IF NOT "!publisher_version!"=="!latest_version!" (
8096
ECHO An update is recommended.
8197
SET "default_choice=1"
98+
SET "default_reason=newer version available"
8299
) ELSE (
83100
ECHO Publisher is up to date.
84101
SET "default_choice=2"
102+
SET "default_reason=publisher is up to date"
85103
)
86104
)
87105

@@ -96,12 +114,9 @@ echo 4. Build IG - force no TX server
96114
echo 5. Jekyll build
97115
echo 6. Clean up temp directories
98116
echo 0. Exit
99-
:: echo [Press Enter for default (%default_choice%) or type an option number:]
100117
echo.
101118

102-
:: Using CHOICE to handle input with timeout
103-
:: ECHO [Enter=Continue, 1-7=Option, 0=Exit]
104-
choice /C 12345670 /N /CS /D %default_choice% /T 5 /M "Choose an option number or wait 5 seconds for default (%default_choice%):"
119+
choice /C 12345670 /N /CS /D %default_choice% /T 5 /M "Choose an option number or wait 5 seconds for default (%default_choice% - %default_reason%):"
105120
SET "userChoice=%ERRORLEVEL%"
106121

107122

@@ -115,15 +130,12 @@ IF "%userChoice%"=="4" GOTO publish_notx
115130
IF "%userChoice%"=="5" GOTO debugjekyll
116131
IF "%userChoice%"=="6" GOTO clean
117132
IF "%userChoice%"=="0" EXIT /B
118-
119-
:end
120-
121-
133+
GOTO endscript
122134

123135
:debugjekyll
124136
echo Running Jekyll build...
125137
jekyll build -s temp/pages -d output
126-
GOTO end
138+
GOTO endscript
127139

128140

129141
:clean
@@ -152,10 +164,7 @@ GOTO end
152164
echo Removed: .\template
153165
)
154166

155-
GOTO end
156-
157-
158-
167+
GOTO endscript
159168

160169

161170
:downloadpublisher
@@ -198,7 +207,7 @@ IF DEFINED FORCE (
198207
GOTO download
199208
)
200209

201-
IF "%skipPrompts%"=="y" (
210+
IF "%skipPrompts%"=="true" (
202211
SET create=Y
203212
) ELSE (
204213
SET /p create="Download? (Y/N) "
@@ -211,7 +220,7 @@ IF /I "%create%"=="Y" (
211220
GOTO done
212221

213222
:upgrade
214-
IF "%skipPrompts%"=="y" (
223+
IF "%skipPrompts%"=="true" (
215224
SET overwrite=Y
216225
) ELSE (
217226
SET /p overwrite="Overwrite %jarlocation%? (Y/N) "
@@ -265,15 +274,15 @@ GOTO done
265274

266275
ECHO.
267276
ECHO Updating scripts
268-
IF "%skipPrompts%"=="y" (
277+
IF "%skipPrompts%"=="true" (
269278
SET updateScripts=Y
270279
) ELSE (
271280
SET /p updateScripts="Update scripts? (Y/N) "
272281
)
273282
IF /I "%updateScripts%"=="Y" (
274283
GOTO scripts
275284
)
276-
GOTO end
285+
GOTO endscript
277286

278287

279288
:scripts
@@ -299,27 +308,28 @@ ECHO Updating _build.bat
299308
call POWERSHELL -command if ('System.Net.WebClient' -as [type]) {(new-object System.Net.WebClient).DownloadFile(\"%build_bat_url%\",\"_build.new.bat\") } else { Invoke-WebRequest -Uri "%build_bat_url%" -Outfile "_build.new.bat" }
300309
if %ERRORLEVEL% == 0 goto upd_script_2
301310
echo "Errors encountered during download: %errorlevel%"
302-
goto end
311+
goto endscript
303312
:upd_script_2
304313
start copy /y "_build.new.bat" "_build.bat" ^&^& del "_build.new.bat" ^&^& exit
305314

306315

307-
GOTO end
316+
GOTO endscript
308317

309318

310319
:publish_once
311320

312321
SET JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8
313322

314323
:: Debugging statements before running publisher
315-
ECHO 1jar_location is: %jar_location%
324+
ECHO jar_location is: %jar_location%
316325
IF NOT "%jar_location%"=="not_found" (
317-
java %JAVA_OPTS% -jar "%jar_location%" -ig . %txoption% %*
326+
ECHO IG Publisher FOUND, Publishing...
327+
java %JAVA_OPTS% -jar "%jar_location%" -ig . %txoption% %extraArgs%
318328
) ELSE (
319329
ECHO IG Publisher NOT FOUND in input-cache or parent folder. Please run _updatePublisher. Aborting...
320330
)
321331

322-
GOTO end
332+
GOTO endscript
323333

324334

325335

@@ -328,14 +338,14 @@ GOTO end
328338
SET JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8
329339

330340
:: Debugging statements before running publisher
331-
ECHO 3jar_location is: %jar_location%
341+
ECHO jar_location is: %jar_location%
332342
IF NOT "%jar_location%"=="not_found" (
333-
java %JAVA_OPTS% -jar "%jar_location%" -ig . %txoption% -no-sushi %*
343+
java %JAVA_OPTS% -jar "%jar_location%" -ig . %txoption% -no-sushi %extraArgs%
334344
) ELSE (
335345
ECHO IG Publisher NOT FOUND in input-cache or parent folder. Please run _updatePublisher. Aborting...
336346
)
337347

338-
GOTO end
348+
GOTO endscript
339349

340350

341351
:publish_notx
@@ -344,43 +354,33 @@ SET txoption=-tx n/a
344354
SET JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8
345355

346356
:: Debugging statements before running publisher
347-
ECHO 2jar_location is: %jar_location%
357+
ECHO jar_location is: %jar_location%
348358
IF NOT "%jar_location%"=="not_found" (
349-
java %JAVA_OPTS% -jar "%jar_location%" -ig . %txoption% %*
359+
java %JAVA_OPTS% -jar "%jar_location%" -ig . %txoption% %extraArgs%
350360
) ELSE (
351361
ECHO IG Publisher NOT FOUND in input-cache or parent folder. Please run _updatePublisher. Aborting...
352362
)
353363

354-
GOTO end
355-
356-
364+
GOTO endscript
357365

358366

359367
:publish_continuous
360368

361369
SET JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8
362370

363-
:: Debugging statements before running publisher
364-
ECHO Checking %input_cache_path% for publisher.jar
365-
IF EXIST "%input_cache_path%\%publisher_jar%" (
366-
java %JAVA_OPTS% -jar "%input_cache_path%\%publisher_jar%" -ig . %txoption% -watch %*
371+
ECHO jar_location is: %jar_location%
372+
IF NOT "%jar_location%"=="not_found" (
373+
java %JAVA_OPTS% -jar "%jar_location%" -ig . %txoption% -watch %extraArgs%
367374
) ELSE (
368-
ECHO Checking %upper_path% for publisher.jar
369-
IF EXIST "..\%publisher_jar%" (
370-
java %JAVA_OPTS% -jar "..\%publisher_jar%" -ig . %txoption% -watch %*
371-
) ELSE (
372-
ECHO IG Publisher NOT FOUND in input-cache or parent folder. Please run _updatePublisher. Aborting...
373-
)
375+
ECHO IG Publisher NOT FOUND in input-cache or parent folder. Please run _updatePublisher. Aborting...
374376
)
375377

376-
GOTO end
378+
GOTO endscript
377379

378380

379-
:end
381+
:endscript
380382

381383
:: Pausing at the end
382-
383-
384384
IF NOT "%skipPrompts%"=="true" (
385385
PAUSE
386386
)

input/fsh/RessourcesCDACorps/profils/sections/FRCDASectionAllergiesEtHypersensibilites.fsh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,18 @@ and frSectionAllergiesEtHypersensibilites 1..1
1717
* templateId[ccdAlertsSection] ^short = "Déclaration de conformité de la section aux spécifications C-CDA"
1818
* templateId[frSectionAllergiesEtHypersensibilites].root = "1.2.250.1.213.1.1.2.137"
1919
* templateId[frSectionAllergiesEtHypersensibilites] ^short = "Déclaration de conformité de la section aux spécifications CI-SIS"
20+
* id MS
21+
* id ^short = "Identifiant de la section"
22+
* id ^definition = "Identifiant de la section"
2023
* code MS
2124
* code 1..1
2225
* code ^short = "Code de la section"
2326
* code ^definition = "Code de la section"
27+
* code.code 1..1
2428
* code.code = #48765-2
29+
* code.displayName 1..1
2530
* code.displayName = "Allergies et hypersensibilités"
31+
* code.codeSystem 1..1
2632
* code.codeSystem = "2.16.840.1.113883.6.1"
2733
* code.codeSystemName = "LOINC"
2834
* title 1..1

input/fsh/RessourcesCDACorps/profils/sections/FRCDASectionAntecedentsFamiliaux.fsh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Parent: http://hl7.org/cda/stds/core/StructureDefinition/Section
33
Id: fr-cda-section-antecedents-familiaux
44
Title: "CDA - FR Antecedents familiaux"
55
Description: "IHE-PCC Coded-Family-Medical-History
6-
- Liste codée des antécédents familiaux."
6+
- Liste codée des antécédents familiaux"
77
* templateId 1..4
88
* templateId ^slicing.discriminator.type = #value
99
* templateId ^slicing.discriminator.path = "root"
@@ -20,12 +20,18 @@ and frSectionAntecedentsFamiliaux 1..1
2020
* templateId[ccdFamilyHistorySection] ^short = "Déclaration de conformité de la section aux spécifications C-CDA"
2121
* templateId[frSectionAntecedentsFamiliaux].root = "1.2.250.1.213.1.1.2.139"
2222
* templateId[frSectionAntecedentsFamiliaux] ^short = "Déclaration de conformité de la section aux spécifications CI-SIS"
23+
* id MS
24+
* id ^short = "Identifiant de la section"
25+
* id ^definition = "Identifiant de la section"
2326
* code MS
2427
* code 1..1
2528
* code ^short = "Code de la section"
2629
* code ^definition = "Code de la section"
30+
* code.code 1..1
2731
* code.code = #10157-6
32+
* code.displayName 1..1
2833
* code.displayName = "Historique des pathologies familiales"
34+
* code.codeSystem 1..1
2935
* code.codeSystem = "2.16.840.1.113883.6.1"
3036
* code.codeSystemName = "LOINC"
3137
* title MS

input/fsh/RessourcesCDACorps/profils/sections/FRCDASectionAntecedentsMedicaux.fsh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,18 @@ and frSectionAntecedentsMedicaux 1..1
1414
* templateId[iheHistoryOfPastIllnessSection] ^short = "Déclaration de conformité de la section aux spécifications IHE PCC"
1515
* templateId[frSectionAntecedentsMedicaux].root = "1.2.250.1.213.1.1.2.134"
1616
* templateId[frSectionAntecedentsMedicaux] ^short = "Déclaration de conformité de la section aux spécifications CI-SIS"
17+
* id MS
18+
* id ^short = "Identifiant de la section"
19+
* id ^definition = "Identifiant de la section"
1720
* code MS
1821
* code 1..1
1922
* code ^short = "Code de la section"
2023
* code ^definition = "Code de la section"
24+
* code.code 1..1
2125
* code.code = #11348-0
26+
* code.displayName 1..1
2227
* code.displayName = "Antécédents médicaux"
28+
* code.codeSystem 1..1
2329
* code.codeSystem = "2.16.840.1.113883.6.1"
2430
* code.codeSystemName = "LOINC"
2531
* title 1..1

input/fsh/RessourcesCDACorps/profils/sections/FRCDASectionCRBIOChapitre.fsh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ Parent: http://hl7.org/cda/stds/core/StructureDefinition/Section
33
Id: fr-cda-cr-bio-chapitre
44
Title: "CDA - FR CR BIO Chapitre"
55
Description: "IHE-PaLM - Laboratory Specialty Section
6-
- Une section de premier niveau est appelée 'Chapitre' et correspond à une sous-discipline de la biologie médicale (par exemple « biochimie »).Elle contient :soit directement la présentation des résultats d'examens de biologie médicale obtenus pour ce chapitre : dans ce cas, il y a un unique élément <text> (présentation du contenu pour le lecteur) et un unique élément <entry> (données codées pour les SIS dont procède le contenu de l'élément <text>)soit une liste de sections de second niveau, appelés sous-chapitres (par exemple « Gaz du sang ») : dans ce cas, il y a une liste d'éléments <component> dont chacun introduit une <section> de second niveau présentant un sous-ensemble de un ou plusieurs résultats d'examens de biologie médicale.Remarque : L'arborescence du corps du compte rendu d'examens de biologie médicale est choisie par le LPS producteur du document selon la logique de présentation définie par le laboratoire."
6+
- Une section de premier niveau est appelée 'Chapitre' et correspond à une sous-discipline de la biologie médicale (par exemple « biochimie »). Elle contient :
7+
- soit directement la présentation des résultats d'examens de biologie médicale obtenus pour ce chapitre : dans ce cas, il y a un unique élément <text> (présentation du contenu pour le lecteur) et un unique élément <entry> (données codées pour les SIS dont procède le contenu de l'élément <text>)
8+
- soit une liste de sections de second niveau, appelés sous-chapitres (par exemple « Gaz du sang ») : dans ce cas, il y a une liste d'éléments <component> dont chacun introduit une <section> de second niveau présentant un sous-ensemble de un ou plusieurs résultats d'examens de biologie médicale.Remarque : L'arborescence du corps du compte rendu d'examens de biologie médicale est choisie par le LPS producteur du document selon la logique de présentation définie par le laboratoire."
79
* templateId 1..2
810
* templateId ^slicing.discriminator.type = #value
911
* templateId ^slicing.discriminator.path = "root"
@@ -14,10 +16,16 @@ and frSectionCrBioChapitre 1..1
1416
* templateId[iheLaboratorySpecialtySection] ^short = "Déclaration de conformité de la section aux spécifications IHE PCC"
1517
* templateId[frSectionCrBioChapitre].root = "1.2.250.1.213.1.1.2.70"
1618
* templateId[frSectionCrBioChapitre] ^short = "Déclaration de conformité de la section aux spécifications CI-SIS"
19+
* id MS
20+
* id ^short = "Identifiant de la section"
21+
* id ^definition = "Identifiant de la section"
1722
* code MS
1823
* code 1..1
1924
* code ^short = "Code du chapitre. Le code du chapitre doit être un code issu du jeu de valeurs Circuit de la biologie (disponible sur bioloinc.fr), onglet ‘2.Chapitres LOINC’ et contenant les codes et libellés traduits en français pour la biologie."
2025
* code ^definition = "Code du chapitre"
26+
* code.code 1..1
27+
* code.displayName 1..1
28+
* code.codeSystem 1..1
2129
* title MS
2230
* title ^short = "Titre du chapitre"
2331
* title ^definition = "Titre du chapitre"

input/fsh/RessourcesCDACorps/profils/sections/FRCDASectionCRBIOSousChapitre.fsh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,16 @@ and frSectionCrBioSousChapitre 1..1
1414
* templateId[iheLaboratoryReportItemSection] ^short = "Déclaration de conformité de la section aux spécifications IHE PCC"
1515
* templateId[frSectionCrBioSousChapitre].root = "1.2.250.1.213.1.1.2.71"
1616
* templateId[frSectionCrBioSousChapitre] ^short = "Déclaration de conformité de la section aux spécifications CI-SIS"
17+
* id MS
18+
* id ^short = "Identifiant de la section"
19+
* id ^definition = "Identifiant de la section"
1720
* code MS
1821
* code 1..1
1922
* code ^short = "Code du sous-chapitre Le code du sous-chapitre doit être un code issu du jeu de valeurs Circuit de la biologie (disponible sur bioloinc.fr) onglet ‘2.Chapitres LOINC’ et contenant les codes et libellés traduits en français pour la biologie."
2023
* code ^definition = "Code du sous-chapitre"
24+
* code.code 1..1
25+
* code.displayName 1..1
26+
* code.codeSystem 1..1
2127
* title MS
2228
* title ^short = "Titre du sous-chapitre Identique au @displayName du <code>"
2329
* title ^definition = "Titre du sous-chapitre"

input/fsh/RessourcesCDACorps/profils/sections/FRCDASectionCodeABarres.fsh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,18 @@ Description: "Cette section permet d'enregistrer des codes à barres"
1010
* templateId contains frSectionCodeABarres 1..1
1111
* templateId[frSectionCodeABarres].root = "1.2.250.1.213.1.1.2.223"
1212
* templateId[frSectionCodeABarres] ^short = "Conformité de la section aux spécifications CI-SIS"
13+
* id 1..1 MS
14+
* id ^short = "Identifiant de la section"
15+
* id ^definition = "Identifiant de la section"
1316
* code MS
1417
* code 1..1
1518
* code ^short = "Code de la section"
1619
* code ^definition = "Code de la section"
20+
* code.code 1..1
1721
* code.code = #57723-9
22+
* code.displayName 1..1
1823
* code.displayName = "Numéro de code à barres unique"
24+
* code.codeSystem 1..1
1925
* code.codeSystem = "2.16.840.1.113883.6.1"
2026
* code.codeSystemName = "LOINC"
2127
* title MS

0 commit comments

Comments
 (0)