@@ -101,97 +101,4 @@ Description: "Comprehensive test plan for validating FML execution with real-wor
101101
102102// Dependency on FHIR R5 StructureMap specification
103103* dependency[0 ].description = "FHIR R5 StructureMap Resource"
104- * dependency[0 ].predecessor = "http: // hl7.org/fhir/5.0.0/StructureDefinition/StructureMap"
105-
106- // Test Script Reference for Execution
107- Instance: FMLPatientTransformTestScript
108- InstanceOf: TestScript
109- Usage: #example
110- Title: "FML Patient Transform Test Script"
111- Description: "Executable test script for patient transformation validation"
112- * url = "http: // litlfred.github.io/fmlrunner/TestScript/FMLPatientTransformTestScript"
113- * identifier.value = "fml- patient- transform- test- script"
114- * version = "1.0 .0 "
115- * name = "FMLPatientTransformTestScript"
116- * title = "FML Patient Transform Test Script"
117- * status = #active
118- * experimental = false
119- * publisher = "FML Runner Project"
120- * description = "Test script that executes patient transformation and validates results using FHIRPath assertions"
121-
122- * origin[0 ].index = 1
123- * origin[0 ].profile.system = "http: // terminology.hl7.org/CodeSystem/testscript-profile-origin-types"
124- * origin[0 ].profile.code = #FHIR- Client
125-
126- * destination[0 ].index = 1
127- * destination[0 ].profile.system = "http: // terminology.hl7.org/CodeSystem/testscript-profile-destination-types"
128- * destination[0 ].profile.code = #FHIR- Server
129-
130- // Variable definitions for test data
131- * variable[0 ].name = "inputPatient"
132- * variable[0 ].description = "Input patient data"
133- * variable[0 ].sourceId = "patient- input- fixture"
134-
135- * variable[1 ].name = "expectedOutput"
136- * variable[1 ].description = "Expected transformation output"
137- * variable[1 ].sourceId = "patient- output- fixture"
138-
139- * variable[2 ].name = "transformMap"
140- * variable[2 ].description = "Patient transformation map"
141- * variable[2 ].sourceId = "patient- map- fixture"
142-
143- // Fixtures for test data
144- * fixture[0 ].id = "patient- input- fixture"
145- * fixture[0 ].autocreate = false
146- * fixture[0 ].autodelete = false
147- * fixture[0 ].resource.reference = "testdata/ examples/ patient- input.json"
148-
149- * fixture[1 ].id = "patient- output- fixture"
150- * fixture[1 ].autocreate = false
151- * fixture[1 ].autodelete = false
152- * fixture[1 ].resource.reference = "testdata/ examples/ patient- output.json"
153-
154- * fixture[2 ].id = "patient- map- fixture"
155- * fixture[2 ].autocreate = false
156- * fixture[2 ].autodelete = false
157- * fixture[2 ].resource.reference = "testdata/ examples/ patient- transform.map"
158-
159- // Test execution steps
160- * test[0 ].id = "PatientTransformTest"
161- * test[0 ].name = "Patient Transform Validation Test"
162- * test[0 ].description = "Execute patient transformation and validate output"
163-
164- // Step 1: Execute the transformation
165- * test[0 ].action[0 ].operation.type.system = "http: // terminology.hl7.org/CodeSystem/testscript-operation-codes"
166- * test[0 ].action[0 ].operation.type.code = #create
167- * test[0 ].action[0 ].operation.description = "Execute patient transformation using StructureMap"
168- * test[0 ].action[0 ].operation.destination = 1
169- * test[0 ].action[0 ].operation.encodeRequestUrl = false
170- * test[0 ].action[0 ].operation.url = "/ StructureMap/ $transform"
171- * test[0 ].action[0 ].operation.sourceId = "patient- input- fixture"
172-
173- // Step 2: Validate transformation results
174- * test[0 ].action[1 ].assert.description = "Validate transformation was successful"
175- * test[0 ].action[1 ].assert.direction = #response
176- * test[0 ].action[1 ].assert.response = #okay
177-
178- // Step 3: Validate output structure using FHIRPath
179- * test[0 ].action[2 ].assert.description = "Validate patient name was preserved"
180- * test[0 ].action[2 ].assert.direction = #response
181- * test[0 ].action[2 ].assert.expression = "Patient.name.family = 'Doe'"
182- * test[0 ].action[2 ].assert.warningOnly = false
183-
184- * test[0 ].action[3 ].assert.description = "Validate patient given name was preserved"
185- * test[0 ].action[3 ].assert.direction = #response
186- * test[0 ].action[3 ].assert.expression = "Patient.name.given = 'John'"
187- * test[0 ].action[3 ].assert.warningOnly = false
188-
189- * test[0 ].action[4 ].assert.description = "Validate patient active status was preserved"
190- * test[0 ].action[4 ].assert.direction = #response
191- * test[0 ].action[4 ].assert.expression = "Patient.active = true"
192- * test[0 ].action[4 ].assert.warningOnly = false
193-
194- * test[0 ].action[5 ].assert.description = "Validate patient gender was preserved"
195- * test[0 ].action[5 ].assert.direction = #response
196- * test[0 ].action[5 ].assert.expression = "Patient.gender = 'male'"
197- * test[0 ].action[5 ].assert.warningOnly = false
104+ * dependency[0 ].predecessor = "http: // hl7.org/fhir/5.0.0/StructureDefinition/StructureMap"
0 commit comments