Skip to content

Commit

Permalink
Fix template header
Browse files Browse the repository at this point in the history
The template header had a typo in it that was surprisingly prominent:
it said "GENERATE CODE" not GENERATED CODE. Whoops! This fixes the
typo and regenerates the r4 core content.
  • Loading branch information
bitwizeshift committed Jun 27, 2024
1 parent eacfb33 commit 9ef2174
Show file tree
Hide file tree
Showing 252 changed files with 386 additions and 259 deletions.
22 changes: 12 additions & 10 deletions .fhenix/r4/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ transformations:
- input:
type: StructureDefinition
if: '{{ eq .Kind "primitive-type" }}'
output: '{{ .Package | replace "." "/" | cutprefix "hl7/fhir/" }}/{{ .Name | snakecase }}.go'
output: 'r4/core/{{ .Name | snakecase }}.go'
template: 'templates/primitive.go.tmpl'
- input:
type: StructureDefinition
if: '{{ and (eq .Kind "complex-type") .IsSpecialization }}'
output: '{{ .Package | replace "." "/" | cutprefix "hl7/fhir/" }}/{{ .Name | snakecase }}.go'
output: 'r4/core/{{ .Name | snakecase }}.go'
template: 'templates/complex.go.tmpl'
- input:
type: StructureDefinition
if: '{{ and (not .IsConstraint) (eq .Kind "resource") (not .IsAbstract) }}'
output: '{{ .Package | replace "." "/" | cutprefix "hl7/fhir/" }}/resources/{{ .Name | lowercase }}/{{ .Name | snakecase }}.go'
output: 'r4/core/resources/{{ .Name | lowercase }}/{{ .Name | snakecase }}.go'
template:
default: 'templates/resource.go.tmpl'
resource-field-type: 'templates/utils/resource-field-type.go.tmpl'
Expand All @@ -53,17 +53,19 @@ transformations:
- input:
type: StructureDefinition
if: '{{ .IsAbstract }}'
output: '{{ .Package | replace "." "/" | cutprefix "hl7/fhir/" }}/{{ .Name | snakecase }}.go'
output: 'r4/core/{{ .Name | snakecase }}.go'
template: 'templates/base-profile.go.tmpl'

- input:
type: StructureDefinition
if: '{{ or .IsAbstract .HasDerived }}'
output: '{{ .Package | replace "." "/" | cutprefix "hl7/fhir/" }}/internal/profileimpl/{{ .Name | snakecase }}.go'
output: 'r4/core/internal/profileimpl/{{ .Name | snakecase }}.go'
template: 'templates/profileimpl.go.tmpl'

# - input:
# type: StructureDefinition
# if: '{{ or .IsAbstract .HasDerived }}'
# output: '{{ .Package | replace "." "/" | cutprefix "hl7/fhir/" }}/profiles/{{ .Name | snakecase }}.go'
# template: 'templates/profile.go.tmpl'
- input:
type: StructureDefinition
if: '{{ and (eq .Kind "primitive-type") .HasDerived }}'
output: 'r4/core/profiles/{{ .Name | snakecase }}.go'
template:
default: 'templates/profile.go.tmpl'
resource-field-type: 'templates/utils/resource-field-type.go.tmpl'
3 changes: 2 additions & 1 deletion .fhenix/r4/templates/base-profile.go.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.

package fhir

import (
Expand Down
3 changes: 2 additions & 1 deletion .fhenix/r4/templates/codes.go.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.

package codes

import (
Expand Down
2 changes: 1 addition & 1 deletion .fhenix/r4/templates/complex.go.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion .fhenix/r4/templates/primitive.go.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
4 changes: 2 additions & 2 deletions .fhenix/r4/templates/profile.go.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand All @@ -14,7 +14,7 @@ import (
type {{ template "struct-name" . }} interface {
{{- range .Fields }}
{{ template "field-header" . }}
Get{{- template "field-name" . -}}() {{- template "field-type" . }}
Get{{- template "field-name" . -}}() {{- template "resource-field-type" . }}
{{ end }}
// Implement base {{ template "struct-name" . }}Profile
profileimpl.{{ template "struct-name" . }}Profile
Expand Down
2 changes: 1 addition & 1 deletion .fhenix/r4/templates/profileimpl.go.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion .fhenix/r4/templates/resource.go.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/address.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/age.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/annotation.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/attachment.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
3 changes: 2 additions & 1 deletion r4/core/backbone_element.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.

package fhir

import (
Expand Down
2 changes: 1 addition & 1 deletion r4/core/base_64_binary.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/boolean.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/canonical.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/code.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/codeable_concept.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/coding.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/contact_detail.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/contact_point.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/contributor.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/count.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/data_requirement.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/date.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/date_time.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/decimal.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/distance.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
3 changes: 2 additions & 1 deletion r4/core/document_section_library.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.

package fhir

import (
Expand Down
3 changes: 2 additions & 1 deletion r4/core/domain_resource.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.

package fhir

import (
Expand Down
2 changes: 1 addition & 1 deletion r4/core/dosage.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/duration.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
3 changes: 2 additions & 1 deletion r4/core/element.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.

package fhir

import (
Expand Down
2 changes: 1 addition & 1 deletion r4/core/element_definition.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/expression.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/extension.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/human_name.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/id.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/identifier.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/instant.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/integer.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/internal/profileimpl/activity_definition.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/internal/profileimpl/audit_event.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/internal/profileimpl/backbone_element.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/internal/profileimpl/code_system.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/internal/profileimpl/composition.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/internal/profileimpl/diagnostic_report.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/internal/profileimpl/document_section_library.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/internal/profileimpl/domain_resource.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/internal/profileimpl/element.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/internal/profileimpl/element_definition.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/internal/profileimpl/evidence.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/internal/profileimpl/evidence_variable.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
2 changes: 1 addition & 1 deletion r4/core/internal/profileimpl/extension.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// GENERATE CODE - DO NOT EDIT
// GENERATED CODE - DO NOT EDIT
//
// This file is generated by the FHIR Fhenix code generator tool, which can be
// located at https://github.com/friendly-fhir/fhenix.
Expand Down
Loading

0 comments on commit 9ef2174

Please sign in to comment.