Skip to content

Commit

Permalink
Fix expected generated code (#1793)
Browse files Browse the repository at this point in the history
* Fix expected generated code

* Update PECodeGenerator.java

---------

Co-authored-by: Jens Kristian Villadsen <[email protected]>
  • Loading branch information
dotasek and jkiddo authored Oct 29, 2024
1 parent cde5d86 commit 0ebf628
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public void write(StringBuilder b, String copyright) {
w(b, "public class "+name+" extends PEGeneratedBase {");
w(b);
if (url != null) {
w(b, " private static final String CANONICAL_URL = \""+url+"\";");
w(b, " public static final String CANONICAL_URL = \""+url+"\";");
w(b);
}
if (enums.length() > 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
*/
public class TestComplexExtension extends PEGeneratedBase {

private static final String CANONICAL_URL = "http://hl7.org/fhir/test/StructureDefinition/pe-extension-complex|0.1";
public static final String CANONICAL_URL = "http://hl7.org/fhir/test/StructureDefinition/pe-extension-complex|0.1";

@Min("1") @Max("*") @Doco("Additional content defined by implementations")
@Definition("May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
*/
public class TestDatatypeProfile extends PEGeneratedBase {

private static final String CANONICAL_URL = "http://hl7.org/fhir/test/StructureDefinition/pe-profile2|0.1";
public static final String CANONICAL_URL = "http://hl7.org/fhir/test/StructureDefinition/pe-profile2|0.1";

@Min("1") @Max("2") @Doco("Code defined by a terminology system")
@Definition("A reference to a code defined by a terminology system.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
*/
public class TestProfile extends PEGeneratedBase {

private static final String CANONICAL_URL = "http://hl7.org/fhir/test/StructureDefinition/pe-profile1|0.1";
public static final String CANONICAL_URL = "http://hl7.org/fhir/test/StructureDefinition/pe-profile1|0.1";

public enum ProfileObservationCategoryCode {
LABORATORY, // "Laboratory" = http://terminology.hl7.org/CodeSystem/observation-category#laboratory
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<commons_io_version>2.17.0</commons_io_version>
<guava_version>32.0.1-jre</guava_version>
<hapi_fhir_version>6.4.1</hapi_fhir_version>
<validator_test_case_version>1.6.0</validator_test_case_version>
<validator_test_case_version>1.6.1-SNAPSHOT</validator_test_case_version>
<jackson_version>2.17.0</jackson_version>
<junit_jupiter_version>5.9.2</junit_jupiter_version>
<junit_platform_launcher_version>1.8.2</junit_platform_launcher_version>
Expand Down

0 comments on commit 0ebf628

Please sign in to comment.