-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.bake.yaml
117 lines (101 loc) · 3.18 KB
/
package.bake.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# See the FHIR Package Specification for the valid format of a FHIR package: https://confluence.hl7.org/display/FHIR/NPM+Package+Specification
# Documentation on the format of a bake file is available here: https://simplifier.net/docs/bake
# Transform all resources to JSON (Mandatory according to the specification)
transform-to-json:
- source: input
- category: Resource
# - filter: status!='retired'
- transform: json
- target: bucket1
# Generate snapshots for all Profiles/StructureDefinitions (Optional)
# Note, since the file names stay the same the files will be overwritten and we do not need an extra bucket.
# generate-snapshots:
# - source: bucket1
# - category: Profile
# - action: snapshot
# - target: bucket1
# Move all conformance resources to the /package folder (Mandatory according to the specification)
move-conformance-resources:
- source: bucket1
- category: Conformance
- move: /package
- target: output
# Move all codesystem resources to the /package folder
move-codesystem-resources:
- source: bucket1
- category: CodeSystem
- move: /package
- target: output
# Move all valueset resources to the /package folder
move-valueset-resources:
- source: bucket1
- category: ValueSet
- move: /package
- target: output
# Move all capabilitystatement resources to the /package folder
move-capabilitystatement-resources:
- source: bucket1
- category: CapabilityStatement
- move: /package
- target: output
# Move all operationdefinition resources to the /package folder
move-operationdefinition-resources:
- source: bucket1
- category: OperationDefinition
- move: /package
- target: output
# Move all namingsystem resources to the /package folder
move-namingsystem-resources:
- source: bucket1
- category: NamingSystem
- move: /package
- target: output
# Move all conceptmap resources to the /package folder
move-conceptmap-resources:
- source: bucket1
- category: ConceptMap
- move: /package
- target: output
# Move all structuremap resources to the /package folder
move-structuremap-resources:
- source: bucket1
- category: StructureMap
- move: /package
- target: output
# Move all extension resources to the /package folder
move-extension-resources:
- source: bucket1
- category: Extension
- move: /package
- target: output
# Move all implementationguide resources to the /package folder
move-implementationguide-resources:
- source: bucket1
- category: ImplementationGuide
- move: /package
- target: output
# Move all examples to the /package/examples folder
move-examples:
- source: bucket1
- category: Instance
- move: /package/examples
- target: output
# Move all messagedefinitions to the /package folder
move-messagedefinitions:
- source: bucket1
- category: MessageDefinition
- move: /package
- target: output
# Move the Package Manifest to the /package folder (Mandatory according to the specification)
manifest:
- source: input
- files: package.json
- move: /package
- target: output
# Generate an .index.json file with all files in the package (Optional)
index-file:
- source: output
- files: /package/**/*.json
- action: create-package-index
- move: /package
- target: output