Skip to content

Commit 6fc1e32

Browse files
Copilotlitlfred
andcommitted
Remove TestScript resource from test suite as requested
Co-authored-by: litlfred <662242+litlfred@users.noreply.github.com>
1 parent 95f9d8c commit 6fc1e32

File tree

2 files changed

+3
-103
lines changed

2 files changed

+3
-103
lines changed

input/README.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# FML Execution Validation Test Suite
22

3-
This directory contains a comprehensive FHIR IG-based validation test suite for FML (FHIR Mapping Language) using FHIR TestPlan and TestScript resources.
3+
This directory contains a comprehensive FHIR IG-based validation test suite for FML (FHIR Mapping Language) using FHIR TestPlan resources.
44

55
## Overview
66

@@ -66,13 +66,7 @@ The `FMLExecutionValidationTestPlan` defines:
6666
- **Test Cases**: Each mapping scenario with input/output validation
6767
- **Test Data**: References to map files, input data, and expected outputs
6868
- **Dependencies**: FHIR R5 StructureMap specification requirements
69-
70-
### TestScript Execution
71-
72-
The `FMLPatientTransformTestScript` provides:
73-
- **Executable Tests**: Actual test execution logic
74-
- **FHIRPath Assertions**: Output validation using FHIRPath expressions
75-
- **Fixtures**: Test data loading and reference management
69+
- **Validation**: Test execution expectations and requirements
7670

7771
## License Compliance
7872

@@ -91,7 +85,6 @@ License headers are automatically added by the import script to ensure complianc
9185
1. Place test files in appropriate subdirectory under `input/testdata/`
9286
2. Ensure proper license attribution headers
9387
3. Update `FMLExecutionValidationTestPlan.fsh` with new test case definitions
94-
4. Add corresponding TestScript assertions for validation
9588

9689
### Test Execution
9790

input/fsh/tests/FMLExecutionValidationTestPlan.fsh

Lines changed: 1 addition & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)