http://hl7.org/fhir/StructureDefinition/TestPlan|5.0.0
A plan for executing testing on an artifact or specifications
| Name | Flags | Card | Type | Description & Constraints |
|---|---|---|---|---|
TestPlan | 0..* | Description of intented testing | ||
Σ | 0..1 | uri | Canonical identifier for this test plan, represented as a URI (globally unique) | |
Σ | 0..* | Identifier | Business identifier identifier for the test plan | |
Σ | 0..1 | string | Business version of the test plan | |
Σ | 0..1 | How to compare versions http://hl7.org/fhir/ValueSet/version-algorithm (extensible) | ||
Σ | 0..1 | string | http://hl7.org/fhir/ValueSet/version-algorithm (extensible) | |
Σ | 0..1 | Coding | http://hl7.org/fhir/ValueSet/version-algorithm (extensible) | |
Σ | 0..1 | string | Name for this test plan (computer friendly) | |
| 0..1 | string | Name for this test plan (human friendly) | ||
?!Σ | 1..1 | code | draft | active | retired | unknown PublicationStatus (required) | |
Σ | 0..1 | boolean | For testing purposes, not real usage | |
Σ | 0..1 | dateTime | Date last changed | |
Σ | 0..1 | string | Name of the publisher/steward (organization or individual) | |
Σ | 0..* | ContactDetail | Contact details for the publisher | |
| 0..1 | markdown | Natural language description of the test plan | ||
Σ | 0..* | UsageContext | The context that the content is intended to support | |
Σ | 0..* | CodeableConcept | Intended jurisdiction where the test plan applies (if applicable) Jurisdiction (extensible) | |
| 0..1 | markdown | Why this test plan is defined | ||
| 0..1 | markdown | Use and/or publishing restrictions | ||
| 0..1 | string | Copyright holder and year(s) | ||
| 0..* | CodeableConcept | The category of the Test Plan - can be acceptance, unit, performance TestPlanCategory (example) | ||
| 0..* | Reference | What is being tested with this Test Plan - a conformance resource, or narrative criteria, or an external reference | ||
| 0..1 | markdown | A description of test tools to be used in the test plan - narrative for now | ||
| 0..* | BackboneElement | The required criteria to execute the test plan - e.g. preconditions, previous tests | ||
| 0..1 | markdown | Description of the dependency criterium | ||
| 0..1 | Reference | Link to predecessor test plans | ||
| 0..1 | markdown | The threshold or criteria for the test plan to be considered successfully executed - narrative | ||
| 0..* | BackboneElement | The test cases that constitute this plan | ||
| 0..1 | integer | Sequence of test case in the test plan | ||
| 0..* | Reference | The scope or artifact covered by the case | ||
| 0..* | BackboneElement | Required criteria to execute the test case | ||
| 0..1 | markdown | Description of the criteria | ||
| 0..1 | Reference | Link to predecessor test plans | ||
| 0..* | BackboneElement | The actual test to be executed | ||
| 0..1 | markdown | The narrative description of the tests | ||
| 0..1 | BackboneElement | The test cases in a structured language e.g. gherkin, Postman, or FHIR TestScript | ||
| 0..1 | CodeableConcept | The language for the test cases e.g. 'gherkin', 'testscript' | ||
| 0..1 | The actual content of the cases - references to TestScripts or externally defined content | |||
| 0..1 | string | |||
| 0..1 | Reference | |||
| 0..* | BackboneElement | The test data used in the test case | ||
| 1..1 | Coding | The type of test data description, e.g. 'synthea' | ||
| 0..1 | Reference | The actual test resources when they exist | ||
| 0..1 | Pointer to a definition of test resources - narrative or structured e.g. synthetic data generation, etc | |||
| 0..1 | string | |||
| 0..1 | Reference | |||
| 0..* | BackboneElement | Test assertions or expectations | ||
| 0..* | CodeableConcept | Assertion type - for example 'informative' or 'required' | ||
| 0..* | CodeableReference | The focus or object of the assertion | ||
| 0..* | CodeableReference | The actual result assertion |