Repository: FHIR/sushi
Pull request #1164 (2022-10-29 09:43:48)

Update the IG parameters link
The link https://confluence.hl7.org/display/FHIR/Implementation+Guide+Parameters now redirects to http://build.fhir.org/ig/FHIR/fhir-tools-ig/branches/master/CodeSystem-ig-parameters.html.

qligier: Ok, the wiki content made me think it was a simple redirect, but it is seemingly much more complex.
qligier: Thank you for having updated the wiki, this PR is not needed anymore.
cmoesel: I like the idea of changing the links (to remove one step).  I just think that we need to list both links. But if you don't want to do that, that's OK.  I can ask someone on my team to do it.
qligier: Okay! I've no problem doing it; having a single link to an updated wiki page that explains the situation seemed better than updating 6 times the same comment, but if that situation is stable, I guess it's fine documenting it in the source code. I'll update the PR.
cmoesel: Thanks! I think it's nice if people don't have to click through an intermediate link just to get to the other links.  And I think the situation is stable, so it should not change again any time soon!
cmoesel: (Oops.  I clicked the wrong button and marked this "Ready for Review".  That was a mistake and I've reverted it back to "Draft". Sorry for the confusion!
qligier: Updated as discussed.

Patch:
diff --git a/src/fshtypes/Configuration.ts b/src/fshtypes/Configuration.ts
index c2e47b8..46341ce 100644
--- a/src/fshtypes/Configuration.ts
+++ b/src/fshtypes/Configuration.ts
@@ -101,8 +101,9 @@ export type Configuration = {
   // will be inferred from the file name extension.
   pages?: ImplementationGuideDefinitionPage[];
 
-  // The parameters property represents IG.definition.parameter. For a partial list of allowed
-  // parameters see: https://confluence.hl7.org/display/FHIR/Implementation+Guide+Parameters
+  // The parameters property represents IG.definition.parameter. For parameters defined by core FHIR
+  // see: http://build.fhir.org/codesystem-guide-parameter-code.html. For parameters defined by the FHIR
+  // Tools IG see: http://build.fhir.org/ig/FHIR/fhir-tools-ig/branches/master/CodeSystem-ig-parameters.html
   parameters?: ImplementationGuideDefinitionParameter[];
 
   // The templates property corresponds 1:1 with IG.definition.template. Note that plural templates
diff --git a/src/import/YAMLConfiguration.ts b/src/import/YAMLConfiguration.ts
index 7010099..4af0f68 100644
--- a/src/import/YAMLConfiguration.ts
+++ b/src/import/YAMLConfiguration.ts
@@ -133,8 +133,9 @@ export type YAMLConfiguration = {
 
   // The parameters property represents IG.definition.parameter. Rather than a list of code/value
   // pairs (as in the ImplementationGuide resource), the code is the YAML key. If a parameter allows
-  // repeating values, the value in the YAML should be a sequence/array. For a partial list of
-  // allowed parameters see: https://confluence.hl7.org/display/FHIR/Implementation+Guide+Parameters
+  // repeating values, the value in the YAML should be a sequence/array. For parameters defined by core FHIR
+  // see: http://build.fhir.org/codesystem-guide-parameter-code.html. For parameters defined by the FHIR
+  // Tools IG see: http://build.fhir.org/ig/FHIR/fhir-tools-ig/branches/master/CodeSystem-ig-parameters.html
   parameters?: YAMLConfigurationParameterMap;
 
   // The templates property corresponds 1:1 with IG.definition.template. The templates value can be
diff --git a/src/utils/init-project/sushi-config.yaml b/src/utils/init-project/sushi-config.yaml
index 77c8a46..875d893 100644
--- a/src/utils/init-project/sushi-config.yaml
+++ b/src/utils/init-project/sushi-config.yaml
@@ -56,9 +56,11 @@ publisher:
 # The parameters property represents IG.definition.parameter. Rather
 # than a list of code/value pairs (as in the ImplementationGuide
 # resource), the code is the YAML key. If a parameter allows repeating
-# values, the value in the YAML should be a sequence/array. For a
-# partial list of allowed parameters see:
-# https://confluence.hl7.org/display/FHIR/Implementation+Guide+Parameters
+# values, the value in the YAML should be a sequence/array.
+# For parameters defined by core FHIR see:
+# http://build.fhir.org/codesystem-guide-parameter-code.html
+# For parameters defined by the FHIR Tools IG see:
+# http://build.fhir.org/ig/FHIR/fhir-tools-ig/branches/master/CodeSystem-ig-parameters.html
 #
 # parameters:
 #   excludettl: true


Test patch:
diff --git a/test/import/fixtures/example-config.yaml b/test/import/fixtures/example-config.yaml
index 609a399..51ef4c7 100644
--- a/test/import/fixtures/example-config.yaml
+++ b/test/import/fixtures/example-config.yaml
@@ -191,9 +191,11 @@ menu:
 # The parameters property represents IG.definition.parameter. Rather
 # than a list of code/value pairs (as in the ImplementationGuide
 # resource), the code is the YAML key. If a parameter allows repeating
-# values, the value in the YAML should be a sequence/array. For a
-# partial list of allowed parameters see:
-# https://confluence.hl7.org/display/FHIR/Implementation+Guide+Parameters
+# values, the value in the YAML should be a sequence/array.
+# For parameters defined by core FHIR see:
+# http://build.fhir.org/codesystem-guide-parameter-code.html
+# For parameters defined by the FHIR Tools IG see:
+# http://build.fhir.org/ig/FHIR/fhir-tools-ig/branches/master/CodeSystem-ig-parameters.html
 parameters:
   excludettl: true
   validation: [allow-any-extensions, no-broken-links]
diff --git a/test/utils/fixtures/init-config/default-config.yaml b/test/utils/fixtures/init-config/default-config.yaml
index 4ee7965..66a8ab1 100644
--- a/test/utils/fixtures/init-config/default-config.yaml
+++ b/test/utils/fixtures/init-config/default-config.yaml
@@ -56,9 +56,11 @@ publisher:
 # The parameters property represents IG.definition.parameter. Rather
 # than a list of code/value pairs (as in the ImplementationGuide
 # resource), the code is the YAML key. If a parameter allows repeating
-# values, the value in the YAML should be a sequence/array. For a
-# partial list of allowed parameters see:
-# https://confluence.hl7.org/display/FHIR/Implementation+Guide+Parameters
+# values, the value in the YAML should be a sequence/array.
+# For parameters defined by core FHIR see:
+# http://build.fhir.org/codesystem-guide-parameter-code.html
+# For parameters defined by the FHIR Tools IG see:
+# http://build.fhir.org/ig/FHIR/fhir-tools-ig/branches/master/CodeSystem-ig-parameters.html
 #
 # parameters:
 #   excludettl: true
diff --git a/test/utils/fixtures/init-config/user-input-config.yaml b/test/utils/fixtures/init-config/user-input-config.yaml
index ea45347..0031b54 100644
--- a/test/utils/fixtures/init-config/user-input-config.yaml
+++ b/test/utils/fixtures/init-config/user-input-config.yaml
@@ -56,9 +56,11 @@ publisher:
 # The parameters property represents IG.definition.parameter. Rather
 # than a list of code/value pairs (as in the ImplementationGuide
 # resource), the code is the YAML key. If a parameter allows repeating
-# values, the value in the YAML should be a sequence/array. For a
-# partial list of allowed parameters see:
-# https://confluence.hl7.org/display/FHIR/Implementation+Guide+Parameters
+# values, the value in the YAML should be a sequence/array.
+# For parameters defined by core FHIR see:
+# http://build.fhir.org/codesystem-guide-parameter-code.html
+# For parameters defined by the FHIR Tools IG see:
+# http://build.fhir.org/ig/FHIR/fhir-tools-ig/branches/master/CodeSystem-ig-parameters.html
 #
 # parameters:
 #   excludettl: true