@medplum/fhirtypes 0.5.2 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -3
- package/dist/AccessPolicy.d.ts +19 -13
- package/dist/Account.d.ts +30 -30
- package/dist/ActivityDefinition.d.ts +71 -71
- package/dist/Address.d.ts +12 -12
- package/dist/AdverseEvent.d.ts +41 -41
- package/dist/Age.d.ts +7 -7
- package/dist/AllergyIntolerance.d.ts +38 -38
- package/dist/Annotation.d.ts +6 -6
- package/dist/Appointment.d.ts +38 -38
- package/dist/AppointmentResponse.d.ts +16 -16
- package/dist/Attachment.d.ts +10 -10
- package/dist/AuditEvent.d.ts +62 -62
- package/dist/Basic.d.ts +13 -13
- package/dist/Binary.d.ts +8 -8
- package/dist/BiologicallyDerivedProduct.d.ts +47 -47
- package/dist/BodyStructure.d.ts +16 -16
- package/dist/Bot.d.ts +19 -8
- package/dist/Bundle.d.ts +47 -47
- package/dist/CapabilityStatement.d.ts +129 -129
- package/dist/CarePlan.d.ts +63 -63
- package/dist/CareTeam.d.ts +28 -28
- package/dist/CatalogEntry.d.ts +27 -27
- package/dist/ChargeItem.d.ts +43 -43
- package/dist/ChargeItemDefinition.d.ts +49 -49
- package/dist/Claim.d.ts +159 -159
- package/dist/ClaimResponse.d.ts +145 -145
- package/dist/ClientApplication.d.ts +8 -8
- package/dist/ClinicalImpression.d.ts +40 -40
- package/dist/CodeSystem.d.ts +74 -74
- package/dist/CodeableConcept.d.ts +4 -4
- package/dist/Coding.d.ts +7 -7
- package/dist/Communication.d.ts +37 -37
- package/dist/CommunicationRequest.d.ts +37 -37
- package/dist/CompartmentDefinition.d.ts +28 -28
- package/dist/Composition.d.ts +54 -54
- package/dist/ConceptMap.d.ts +66 -66
- package/dist/Condition.d.ts +44 -44
- package/dist/Consent.d.ts +57 -57
- package/dist/ContactDetail.d.ts +4 -4
- package/dist/ContactPoint.d.ts +7 -7
- package/dist/Contract.d.ts +202 -202
- package/dist/Contributor.d.ts +5 -5
- package/dist/Count.d.ts +7 -7
- package/dist/Coverage.d.ts +43 -43
- package/dist/CoverageEligibilityRequest.d.ts +53 -53
- package/dist/CoverageEligibilityResponse.d.ts +62 -62
- package/dist/DataRequirement.d.ts +28 -28
- package/dist/DetectedIssue.d.ts +32 -32
- package/dist/Device.d.ts +65 -65
- package/dist/DeviceDefinition.d.ts +64 -64
- package/dist/DeviceMetric.d.ts +24 -24
- package/dist/DeviceRequest.d.ts +43 -43
- package/dist/DeviceUseStatement.d.ts +23 -23
- package/dist/DiagnosticReport.d.ts +32 -32
- package/dist/Distance.d.ts +7 -7
- package/dist/DocumentManifest.d.ts +25 -25
- package/dist/DocumentReference.d.ts +44 -44
- package/dist/Dosage.d.ts +25 -25
- package/dist/Duration.d.ts +7 -7
- package/dist/EffectEvidenceSynthesis.d.ts +82 -82
- package/dist/Element.d.ts +2 -2
- package/dist/ElementDefinition.d.ts +295 -295
- package/dist/Encounter.d.ts +72 -72
- package/dist/Endpoint.d.ts +19 -19
- package/dist/EnrollmentRequest.d.ts +15 -15
- package/dist/EnrollmentResponse.d.ts +16 -16
- package/dist/EpisodeOfCare.d.ts +31 -31
- package/dist/EventDefinition.d.ts +37 -37
- package/dist/Evidence.d.ts +36 -36
- package/dist/EvidenceVariable.d.ts +53 -53
- package/dist/ExampleScenario.d.ts +85 -85
- package/dist/ExplanationOfBenefit.d.ts +272 -272
- package/dist/Expression.d.ts +7 -7
- package/dist/Extension.d.ts +53 -53
- package/dist/FamilyMemberHistory.d.ts +45 -45
- package/dist/Flag.d.ts +16 -16
- package/dist/Goal.d.ts +38 -38
- package/dist/GraphDefinition.d.ts +48 -48
- package/dist/Group.d.ts +35 -35
- package/dist/GuidanceResponse.d.ts +25 -25
- package/dist/HealthcareService.d.ts +49 -49
- package/dist/HumanName.d.ts +9 -9
- package/dist/Identifier.d.ts +8 -8
- package/dist/ImagingStudy.d.ts +55 -55
- package/dist/Immunization.d.ts +65 -65
- package/dist/ImmunizationEvaluation.d.ts +23 -23
- package/dist/ImmunizationRecommendation.d.ts +35 -35
- package/dist/ImplementationGuide.d.ts +102 -102
- package/dist/InsurancePlan.d.ts +79 -79
- package/dist/Invoice.d.ts +43 -43
- package/dist/JsonWebKey.d.ts +20 -20
- package/dist/Library.d.ts +40 -40
- package/dist/Linkage.d.ts +16 -16
- package/dist/List.d.ts +28 -28
- package/dist/Location.d.ts +38 -38
- package/dist/Login.d.ts +21 -21
- package/dist/MarketingStatus.d.ts +8 -8
- package/dist/Measure.d.ts +83 -83
- package/dist/MeasureReport.d.ts +55 -55
- package/dist/Media.d.ts +31 -31
- package/dist/Medication.d.ts +28 -28
- package/dist/MedicationAdministration.d.ts +44 -44
- package/dist/MedicationDispense.d.ts +46 -46
- package/dist/MedicationKnowledge.d.ts +121 -121
- package/dist/MedicationRequest.d.ts +63 -63
- package/dist/MedicationStatement.d.ts +27 -27
- package/dist/MedicinalProduct.d.ts +65 -65
- package/dist/MedicinalProductAuthorization.d.ts +40 -40
- package/dist/MedicinalProductContraindication.d.ts +21 -21
- package/dist/MedicinalProductIndication.d.ts +23 -23
- package/dist/MedicinalProductIngredient.d.ts +44 -44
- package/dist/MedicinalProductInteraction.d.ts +20 -20
- package/dist/MedicinalProductManufactured.d.ts +15 -15
- package/dist/MedicinalProductPackaged.d.ts +37 -37
- package/dist/MedicinalProductPharmaceutical.d.ts +41 -41
- package/dist/MedicinalProductUndesirableEffect.d.ts +13 -13
- package/dist/MessageDefinition.d.ts +45 -45
- package/dist/MessageHeader.d.ts +41 -41
- package/dist/Meta.d.ts +11 -11
- package/dist/MolecularSequence.d.ts +100 -100
- package/dist/Money.d.ts +4 -4
- package/dist/NamingSystem.d.ts +29 -29
- package/dist/Narrative.d.ts +4 -4
- package/dist/NutritionOrder.d.ts +71 -71
- package/dist/Observation.d.ts +72 -72
- package/dist/ObservationDefinition.d.ts +39 -39
- package/dist/OperationDefinition.d.ts +63 -63
- package/dist/OperationOutcome.d.ts +18 -18
- package/dist/Organization.d.ts +25 -25
- package/dist/OrganizationAffiliation.d.ts +20 -20
- package/dist/ParameterDefinition.d.ts +9 -9
- package/dist/Parameters.d.ts +61 -61
- package/dist/PasswordChangeRequest.d.ts +8 -8
- package/dist/Patient.d.ts +46 -46
- package/dist/PaymentNotice.d.ts +20 -20
- package/dist/PaymentReconciliation.d.ts +41 -41
- package/dist/Period.d.ts +4 -4
- package/dist/Person.d.ts +23 -23
- package/dist/PlanDefinition.d.ts +117 -117
- package/dist/Population.d.ts +8 -8
- package/dist/Practitioner.d.ts +25 -25
- package/dist/PractitionerRole.d.ts +34 -34
- package/dist/Procedure.d.ts +51 -51
- package/dist/ProdCharacteristic.d.ts +14 -14
- package/dist/ProductShelfLife.d.ts +7 -7
- package/dist/Project.d.ts +9 -9
- package/dist/ProjectMembership.d.ts +11 -10
- package/dist/Provenance.d.ts +32 -32
- package/dist/Quantity.d.ts +7 -7
- package/dist/Questionnaire.d.ts +89 -89
- package/dist/QuestionnaireResponse.d.ts +43 -43
- package/dist/Range.d.ts +4 -4
- package/dist/Ratio.d.ts +4 -4
- package/dist/Reference.d.ts +7 -7
- package/dist/RelatedArtifact.d.ts +9 -9
- package/dist/RelatedPerson.d.ts +25 -25
- package/dist/RequestGroup.d.ts +65 -65
- package/dist/ResearchDefinition.d.ts +43 -43
- package/dist/ResearchElementDefinition.d.ts +66 -66
- package/dist/ResearchStudy.d.ts +43 -43
- package/dist/ResearchSubject.d.ts +16 -16
- package/dist/RiskAssessment.d.ts +37 -37
- package/dist/RiskEvidenceSynthesis.d.ts +74 -74
- package/dist/SampledData.d.ts +9 -9
- package/dist/Schedule.d.ts +16 -16
- package/dist/SearchParameter.d.ts +39 -39
- package/dist/ServiceRequest.d.ts +46 -46
- package/dist/Signature.d.ts +9 -9
- package/dist/Slot.d.ts +19 -19
- package/dist/Specimen.d.ts +51 -51
- package/dist/SpecimenDefinition.d.ts +49 -49
- package/dist/StructureDefinition.d.ts +55 -55
- package/dist/StructureMap.d.ts +145 -145
- package/dist/Subscription.d.ts +22 -22
- package/dist/Substance.d.ts +27 -27
- package/dist/SubstanceAmount.d.ts +13 -13
- package/dist/SubstanceNucleicAcid.d.ts +37 -37
- package/dist/SubstancePolymer.d.ts +52 -52
- package/dist/SubstanceProtein.d.ts +23 -23
- package/dist/SubstanceReferenceInformation.d.ts +45 -45
- package/dist/SubstanceSourceMaterial.d.ts +62 -62
- package/dist/SubstanceSpecification.d.ts +121 -121
- package/dist/SupplyDelivery.d.ts +27 -27
- package/dist/SupplyRequest.d.ts +34 -34
- package/dist/Task.d.ts +153 -153
- package/dist/TerminologyCapabilities.d.ts +87 -87
- package/dist/TestReport.d.ts +66 -66
- package/dist/TestScript.d.ts +157 -157
- package/dist/Timing.d.ts +25 -25
- package/dist/TriggerDefinition.d.ts +10 -10
- package/dist/UsageContext.d.ts +7 -7
- package/dist/User.d.ts +7 -7
- package/dist/UserConfiguration.d.ts +20 -20
- package/dist/ValueSet.d.ts +90 -90
- package/dist/VerificationResult.d.ts +49 -49
- package/dist/VisionPrescription.d.ts +38 -38
- package/package.json +1 -1
package/dist/TestScript.d.ts
CHANGED
|
@@ -29,14 +29,14 @@ export interface TestScript {
|
|
|
29
29
|
* The logical id of the resource, as used in the URL for the resource.
|
|
30
30
|
* Once assigned, this value never changes.
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
id?: string;
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
35
|
* The metadata about the resource. This is content that is maintained by
|
|
36
36
|
* the infrastructure. Changes to the content might not always be
|
|
37
37
|
* associated with version changes to the resource.
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
meta?: Meta;
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
* A reference to a set of rules that were followed when the resource was
|
|
@@ -44,12 +44,12 @@ export interface TestScript {
|
|
|
44
44
|
* Often, this is a reference to an implementation guide that defines the
|
|
45
45
|
* special rules along with other profiles etc.
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
implicitRules?: string;
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* The base language in which the resource is written.
|
|
51
51
|
*/
|
|
52
|
-
|
|
52
|
+
language?: string;
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
55
|
* A human-readable narrative that contains a summary of the resource and
|
|
@@ -59,14 +59,14 @@ export interface TestScript {
|
|
|
59
59
|
* just read the narrative. Resource definitions may define what content
|
|
60
60
|
* should be represented in the narrative to ensure clinical safety.
|
|
61
61
|
*/
|
|
62
|
-
|
|
62
|
+
text?: Narrative;
|
|
63
63
|
|
|
64
64
|
/**
|
|
65
65
|
* These resources do not have an independent existence apart from the
|
|
66
66
|
* resource that contains them - they cannot be identified independently,
|
|
67
67
|
* and nor can they have their own independent transaction scope.
|
|
68
68
|
*/
|
|
69
|
-
|
|
69
|
+
contained?: Resource[];
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
72
|
* May be used to represent additional information that is not part of
|
|
@@ -76,7 +76,7 @@ export interface TestScript {
|
|
|
76
76
|
* define an extension, there is a set of requirements that SHALL be met
|
|
77
77
|
* as part of the definition of the extension.
|
|
78
78
|
*/
|
|
79
|
-
|
|
79
|
+
extension?: Extension[];
|
|
80
80
|
|
|
81
81
|
/**
|
|
82
82
|
* May be used to represent additional information that is not part of
|
|
@@ -94,7 +94,7 @@ export interface TestScript {
|
|
|
94
94
|
* Resource or DomainResource (including cannot change the meaning of
|
|
95
95
|
* modifierExtension itself).
|
|
96
96
|
*/
|
|
97
|
-
|
|
97
|
+
modifierExtension?: Extension[];
|
|
98
98
|
|
|
99
99
|
/**
|
|
100
100
|
* An absolute URI that is used to identify this test script when it is
|
|
@@ -105,14 +105,14 @@ export interface TestScript {
|
|
|
105
105
|
* be the target of a canonical reference. It SHALL remain the same when
|
|
106
106
|
* the test script is stored on different servers.
|
|
107
107
|
*/
|
|
108
|
-
|
|
108
|
+
url?: string;
|
|
109
109
|
|
|
110
110
|
/**
|
|
111
111
|
* A formal identifier that is used to identify this test script when it
|
|
112
112
|
* is represented in other formats, or referenced in a specification,
|
|
113
113
|
* model, design or an instance.
|
|
114
114
|
*/
|
|
115
|
-
|
|
115
|
+
identifier?: Identifier;
|
|
116
116
|
|
|
117
117
|
/**
|
|
118
118
|
* The identifier that is used to identify this version of the test
|
|
@@ -123,32 +123,32 @@ export interface TestScript {
|
|
|
123
123
|
* is also no expectation that versions can be placed in a
|
|
124
124
|
* lexicographical sequence.
|
|
125
125
|
*/
|
|
126
|
-
|
|
126
|
+
version?: string;
|
|
127
127
|
|
|
128
128
|
/**
|
|
129
129
|
* A natural language name identifying the test script. This name should
|
|
130
130
|
* be usable as an identifier for the module by machine processing
|
|
131
131
|
* applications such as code generation.
|
|
132
132
|
*/
|
|
133
|
-
|
|
133
|
+
name?: string;
|
|
134
134
|
|
|
135
135
|
/**
|
|
136
136
|
* A short, descriptive, user-friendly title for the test script.
|
|
137
137
|
*/
|
|
138
|
-
|
|
138
|
+
title?: string;
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
141
|
* The status of this test script. Enables tracking the life-cycle of the
|
|
142
142
|
* content.
|
|
143
143
|
*/
|
|
144
|
-
|
|
144
|
+
status?: string;
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
147
|
* A Boolean value to indicate that this test script is authored for
|
|
148
148
|
* testing purposes (or education/evaluation/marketing) and is not
|
|
149
149
|
* intended to be used for genuine usage.
|
|
150
150
|
*/
|
|
151
|
-
|
|
151
|
+
experimental?: boolean;
|
|
152
152
|
|
|
153
153
|
/**
|
|
154
154
|
* The date (and optionally time) when the test script was published.
|
|
@@ -156,25 +156,25 @@ export interface TestScript {
|
|
|
156
156
|
* change if the status code changes. In addition, it should change when
|
|
157
157
|
* the substantive content of the test script changes.
|
|
158
158
|
*/
|
|
159
|
-
|
|
159
|
+
date?: string;
|
|
160
160
|
|
|
161
161
|
/**
|
|
162
162
|
* The name of the organization or individual that published the test
|
|
163
163
|
* script.
|
|
164
164
|
*/
|
|
165
|
-
|
|
165
|
+
publisher?: string;
|
|
166
166
|
|
|
167
167
|
/**
|
|
168
168
|
* Contact details to assist a user in finding and communicating with the
|
|
169
169
|
* publisher.
|
|
170
170
|
*/
|
|
171
|
-
|
|
171
|
+
contact?: ContactDetail[];
|
|
172
172
|
|
|
173
173
|
/**
|
|
174
174
|
* A free text natural language description of the test script from a
|
|
175
175
|
* consumer's perspective.
|
|
176
176
|
*/
|
|
177
|
-
|
|
177
|
+
description?: string;
|
|
178
178
|
|
|
179
179
|
/**
|
|
180
180
|
* The content was developed with a focus and intent of supporting the
|
|
@@ -183,77 +183,77 @@ export interface TestScript {
|
|
|
183
183
|
* (insurance plans, studies, ...) and may be used to assist with
|
|
184
184
|
* indexing and searching for appropriate test script instances.
|
|
185
185
|
*/
|
|
186
|
-
|
|
186
|
+
useContext?: UsageContext[];
|
|
187
187
|
|
|
188
188
|
/**
|
|
189
189
|
* A legal or geographic region in which the test script is intended to
|
|
190
190
|
* be used.
|
|
191
191
|
*/
|
|
192
|
-
|
|
192
|
+
jurisdiction?: CodeableConcept[];
|
|
193
193
|
|
|
194
194
|
/**
|
|
195
195
|
* Explanation of why this test script is needed and why it has been
|
|
196
196
|
* designed as it has.
|
|
197
197
|
*/
|
|
198
|
-
|
|
198
|
+
purpose?: string;
|
|
199
199
|
|
|
200
200
|
/**
|
|
201
201
|
* A copyright statement relating to the test script and/or its contents.
|
|
202
202
|
* Copyright statements are generally legal restrictions on the use and
|
|
203
203
|
* publishing of the test script.
|
|
204
204
|
*/
|
|
205
|
-
|
|
205
|
+
copyright?: string;
|
|
206
206
|
|
|
207
207
|
/**
|
|
208
208
|
* An abstract server used in operations within this test script in the
|
|
209
209
|
* origin element.
|
|
210
210
|
*/
|
|
211
|
-
|
|
211
|
+
origin?: TestScriptOrigin[];
|
|
212
212
|
|
|
213
213
|
/**
|
|
214
214
|
* An abstract server used in operations within this test script in the
|
|
215
215
|
* destination element.
|
|
216
216
|
*/
|
|
217
|
-
|
|
217
|
+
destination?: TestScriptDestination[];
|
|
218
218
|
|
|
219
219
|
/**
|
|
220
220
|
* The required capability must exist and are assumed to function
|
|
221
221
|
* correctly on the FHIR server being tested.
|
|
222
222
|
*/
|
|
223
|
-
|
|
223
|
+
metadata?: TestScriptMetadata;
|
|
224
224
|
|
|
225
225
|
/**
|
|
226
226
|
* Fixture in the test script - by reference (uri). All fixtures are
|
|
227
227
|
* required for the test script to execute.
|
|
228
228
|
*/
|
|
229
|
-
|
|
229
|
+
fixture?: TestScriptFixture[];
|
|
230
230
|
|
|
231
231
|
/**
|
|
232
232
|
* Reference to the profile to be used for validation.
|
|
233
233
|
*/
|
|
234
|
-
|
|
234
|
+
profile?: Reference<Resource>[];
|
|
235
235
|
|
|
236
236
|
/**
|
|
237
237
|
* Variable is set based either on element value in response body or on
|
|
238
238
|
* header field value in the response headers.
|
|
239
239
|
*/
|
|
240
|
-
|
|
240
|
+
variable?: TestScriptVariable[];
|
|
241
241
|
|
|
242
242
|
/**
|
|
243
243
|
* A series of required setup operations before tests are executed.
|
|
244
244
|
*/
|
|
245
|
-
|
|
245
|
+
setup?: TestScriptSetup;
|
|
246
246
|
|
|
247
247
|
/**
|
|
248
248
|
* A test in this script.
|
|
249
249
|
*/
|
|
250
|
-
|
|
250
|
+
test?: TestScriptTest[];
|
|
251
251
|
|
|
252
252
|
/**
|
|
253
253
|
* A series of operations required to clean up after all the tests are
|
|
254
254
|
* executed (successfully or otherwise).
|
|
255
255
|
*/
|
|
256
|
-
|
|
256
|
+
teardown?: TestScriptTeardown;
|
|
257
257
|
}
|
|
258
258
|
|
|
259
259
|
/**
|
|
@@ -266,7 +266,7 @@ export interface TestScriptDestination {
|
|
|
266
266
|
* Unique id for the element within a resource (for internal references).
|
|
267
267
|
* This may be any string value that does not contain spaces.
|
|
268
268
|
*/
|
|
269
|
-
|
|
269
|
+
id?: string;
|
|
270
270
|
|
|
271
271
|
/**
|
|
272
272
|
* May be used to represent additional information that is not part of
|
|
@@ -276,7 +276,7 @@ export interface TestScriptDestination {
|
|
|
276
276
|
* define an extension, there is a set of requirements that SHALL be met
|
|
277
277
|
* as part of the definition of the extension.
|
|
278
278
|
*/
|
|
279
|
-
|
|
279
|
+
extension?: Extension[];
|
|
280
280
|
|
|
281
281
|
/**
|
|
282
282
|
* May be used to represent additional information that is not part of
|
|
@@ -295,18 +295,18 @@ export interface TestScriptDestination {
|
|
|
295
295
|
* Resource or DomainResource (including cannot change the meaning of
|
|
296
296
|
* modifierExtension itself).
|
|
297
297
|
*/
|
|
298
|
-
|
|
298
|
+
modifierExtension?: Extension[];
|
|
299
299
|
|
|
300
300
|
/**
|
|
301
301
|
* Abstract name given to a destination server in this test script. The
|
|
302
302
|
* name is provided as a number starting at 1.
|
|
303
303
|
*/
|
|
304
|
-
|
|
304
|
+
index?: number;
|
|
305
305
|
|
|
306
306
|
/**
|
|
307
307
|
* The type of destination profile the test system supports.
|
|
308
308
|
*/
|
|
309
|
-
|
|
309
|
+
profile?: Coding;
|
|
310
310
|
}
|
|
311
311
|
|
|
312
312
|
/**
|
|
@@ -319,7 +319,7 @@ export interface TestScriptFixture {
|
|
|
319
319
|
* Unique id for the element within a resource (for internal references).
|
|
320
320
|
* This may be any string value that does not contain spaces.
|
|
321
321
|
*/
|
|
322
|
-
|
|
322
|
+
id?: string;
|
|
323
323
|
|
|
324
324
|
/**
|
|
325
325
|
* May be used to represent additional information that is not part of
|
|
@@ -329,7 +329,7 @@ export interface TestScriptFixture {
|
|
|
329
329
|
* define an extension, there is a set of requirements that SHALL be met
|
|
330
330
|
* as part of the definition of the extension.
|
|
331
331
|
*/
|
|
332
|
-
|
|
332
|
+
extension?: Extension[];
|
|
333
333
|
|
|
334
334
|
/**
|
|
335
335
|
* May be used to represent additional information that is not part of
|
|
@@ -348,7 +348,7 @@ export interface TestScriptFixture {
|
|
|
348
348
|
* Resource or DomainResource (including cannot change the meaning of
|
|
349
349
|
* modifierExtension itself).
|
|
350
350
|
*/
|
|
351
|
-
|
|
351
|
+
modifierExtension?: Extension[];
|
|
352
352
|
|
|
353
353
|
/**
|
|
354
354
|
* Whether or not to implicitly create the fixture during setup. If true,
|
|
@@ -356,7 +356,7 @@ export interface TestScriptFixture {
|
|
|
356
356
|
* during setup, therefore no create operation is required for this
|
|
357
357
|
* fixture in the TestScript.setup section.
|
|
358
358
|
*/
|
|
359
|
-
|
|
359
|
+
autocreate?: boolean;
|
|
360
360
|
|
|
361
361
|
/**
|
|
362
362
|
* Whether or not to implicitly delete the fixture during teardown. If
|
|
@@ -364,13 +364,13 @@ export interface TestScriptFixture {
|
|
|
364
364
|
* during teardown, therefore no delete operation is required for this
|
|
365
365
|
* fixture in the TestScript.teardown section.
|
|
366
366
|
*/
|
|
367
|
-
|
|
367
|
+
autodelete?: boolean;
|
|
368
368
|
|
|
369
369
|
/**
|
|
370
370
|
* Reference to the resource (containing the contents of the resource
|
|
371
371
|
* needed for operations).
|
|
372
372
|
*/
|
|
373
|
-
|
|
373
|
+
resource?: Reference<Resource>;
|
|
374
374
|
}
|
|
375
375
|
|
|
376
376
|
/**
|
|
@@ -383,7 +383,7 @@ export interface TestScriptMetadata {
|
|
|
383
383
|
* Unique id for the element within a resource (for internal references).
|
|
384
384
|
* This may be any string value that does not contain spaces.
|
|
385
385
|
*/
|
|
386
|
-
|
|
386
|
+
id?: string;
|
|
387
387
|
|
|
388
388
|
/**
|
|
389
389
|
* May be used to represent additional information that is not part of
|
|
@@ -393,7 +393,7 @@ export interface TestScriptMetadata {
|
|
|
393
393
|
* define an extension, there is a set of requirements that SHALL be met
|
|
394
394
|
* as part of the definition of the extension.
|
|
395
395
|
*/
|
|
396
|
-
|
|
396
|
+
extension?: Extension[];
|
|
397
397
|
|
|
398
398
|
/**
|
|
399
399
|
* May be used to represent additional information that is not part of
|
|
@@ -412,18 +412,18 @@ export interface TestScriptMetadata {
|
|
|
412
412
|
* Resource or DomainResource (including cannot change the meaning of
|
|
413
413
|
* modifierExtension itself).
|
|
414
414
|
*/
|
|
415
|
-
|
|
415
|
+
modifierExtension?: Extension[];
|
|
416
416
|
|
|
417
417
|
/**
|
|
418
418
|
* A link to the FHIR specification that this test is covering.
|
|
419
419
|
*/
|
|
420
|
-
|
|
420
|
+
link?: TestScriptMetadataLink[];
|
|
421
421
|
|
|
422
422
|
/**
|
|
423
423
|
* Capabilities that must exist and are assumed to function correctly on
|
|
424
424
|
* the FHIR server being tested.
|
|
425
425
|
*/
|
|
426
|
-
|
|
426
|
+
capability?: TestScriptMetadataCapability[];
|
|
427
427
|
}
|
|
428
428
|
|
|
429
429
|
/**
|
|
@@ -436,7 +436,7 @@ export interface TestScriptMetadataCapability {
|
|
|
436
436
|
* Unique id for the element within a resource (for internal references).
|
|
437
437
|
* This may be any string value that does not contain spaces.
|
|
438
438
|
*/
|
|
439
|
-
|
|
439
|
+
id?: string;
|
|
440
440
|
|
|
441
441
|
/**
|
|
442
442
|
* May be used to represent additional information that is not part of
|
|
@@ -446,7 +446,7 @@ export interface TestScriptMetadataCapability {
|
|
|
446
446
|
* define an extension, there is a set of requirements that SHALL be met
|
|
447
447
|
* as part of the definition of the extension.
|
|
448
448
|
*/
|
|
449
|
-
|
|
449
|
+
extension?: Extension[];
|
|
450
450
|
|
|
451
451
|
/**
|
|
452
452
|
* May be used to represent additional information that is not part of
|
|
@@ -465,48 +465,48 @@ export interface TestScriptMetadataCapability {
|
|
|
465
465
|
* Resource or DomainResource (including cannot change the meaning of
|
|
466
466
|
* modifierExtension itself).
|
|
467
467
|
*/
|
|
468
|
-
|
|
468
|
+
modifierExtension?: Extension[];
|
|
469
469
|
|
|
470
470
|
/**
|
|
471
471
|
* Whether or not the test execution will require the given capabilities
|
|
472
472
|
* of the server in order for this test script to execute.
|
|
473
473
|
*/
|
|
474
|
-
|
|
474
|
+
required?: boolean;
|
|
475
475
|
|
|
476
476
|
/**
|
|
477
477
|
* Whether or not the test execution will validate the given capabilities
|
|
478
478
|
* of the server in order for this test script to execute.
|
|
479
479
|
*/
|
|
480
|
-
|
|
480
|
+
validated?: boolean;
|
|
481
481
|
|
|
482
482
|
/**
|
|
483
483
|
* Description of the capabilities that this test script is requiring the
|
|
484
484
|
* server to support.
|
|
485
485
|
*/
|
|
486
|
-
|
|
486
|
+
description?: string;
|
|
487
487
|
|
|
488
488
|
/**
|
|
489
489
|
* Which origin server these requirements apply to.
|
|
490
490
|
*/
|
|
491
|
-
|
|
491
|
+
origin?: number[];
|
|
492
492
|
|
|
493
493
|
/**
|
|
494
494
|
* Which server these requirements apply to.
|
|
495
495
|
*/
|
|
496
|
-
|
|
496
|
+
destination?: number;
|
|
497
497
|
|
|
498
498
|
/**
|
|
499
499
|
* Links to the FHIR specification that describes this interaction and
|
|
500
500
|
* the resources involved in more detail.
|
|
501
501
|
*/
|
|
502
|
-
|
|
502
|
+
link?: string[];
|
|
503
503
|
|
|
504
504
|
/**
|
|
505
505
|
* Minimum capabilities required of server for test script to execute
|
|
506
506
|
* successfully. If server does not meet at a minimum the referenced
|
|
507
507
|
* capability statement, then all tests in this script are skipped.
|
|
508
508
|
*/
|
|
509
|
-
|
|
509
|
+
capabilities?: string;
|
|
510
510
|
}
|
|
511
511
|
|
|
512
512
|
/**
|
|
@@ -518,7 +518,7 @@ export interface TestScriptMetadataLink {
|
|
|
518
518
|
* Unique id for the element within a resource (for internal references).
|
|
519
519
|
* This may be any string value that does not contain spaces.
|
|
520
520
|
*/
|
|
521
|
-
|
|
521
|
+
id?: string;
|
|
522
522
|
|
|
523
523
|
/**
|
|
524
524
|
* May be used to represent additional information that is not part of
|
|
@@ -528,7 +528,7 @@ export interface TestScriptMetadataLink {
|
|
|
528
528
|
* define an extension, there is a set of requirements that SHALL be met
|
|
529
529
|
* as part of the definition of the extension.
|
|
530
530
|
*/
|
|
531
|
-
|
|
531
|
+
extension?: Extension[];
|
|
532
532
|
|
|
533
533
|
/**
|
|
534
534
|
* May be used to represent additional information that is not part of
|
|
@@ -547,18 +547,18 @@ export interface TestScriptMetadataLink {
|
|
|
547
547
|
* Resource or DomainResource (including cannot change the meaning of
|
|
548
548
|
* modifierExtension itself).
|
|
549
549
|
*/
|
|
550
|
-
|
|
550
|
+
modifierExtension?: Extension[];
|
|
551
551
|
|
|
552
552
|
/**
|
|
553
553
|
* URL to a particular requirement or feature within the FHIR
|
|
554
554
|
* specification.
|
|
555
555
|
*/
|
|
556
|
-
|
|
556
|
+
url?: string;
|
|
557
557
|
|
|
558
558
|
/**
|
|
559
559
|
* Short description of the link.
|
|
560
560
|
*/
|
|
561
|
-
|
|
561
|
+
description?: string;
|
|
562
562
|
}
|
|
563
563
|
|
|
564
564
|
/**
|
|
@@ -571,7 +571,7 @@ export interface TestScriptOrigin {
|
|
|
571
571
|
* Unique id for the element within a resource (for internal references).
|
|
572
572
|
* This may be any string value that does not contain spaces.
|
|
573
573
|
*/
|
|
574
|
-
|
|
574
|
+
id?: string;
|
|
575
575
|
|
|
576
576
|
/**
|
|
577
577
|
* May be used to represent additional information that is not part of
|
|
@@ -581,7 +581,7 @@ export interface TestScriptOrigin {
|
|
|
581
581
|
* define an extension, there is a set of requirements that SHALL be met
|
|
582
582
|
* as part of the definition of the extension.
|
|
583
583
|
*/
|
|
584
|
-
|
|
584
|
+
extension?: Extension[];
|
|
585
585
|
|
|
586
586
|
/**
|
|
587
587
|
* May be used to represent additional information that is not part of
|
|
@@ -600,18 +600,18 @@ export interface TestScriptOrigin {
|
|
|
600
600
|
* Resource or DomainResource (including cannot change the meaning of
|
|
601
601
|
* modifierExtension itself).
|
|
602
602
|
*/
|
|
603
|
-
|
|
603
|
+
modifierExtension?: Extension[];
|
|
604
604
|
|
|
605
605
|
/**
|
|
606
606
|
* Abstract name given to an origin server in this test script. The name
|
|
607
607
|
* is provided as a number starting at 1.
|
|
608
608
|
*/
|
|
609
|
-
|
|
609
|
+
index?: number;
|
|
610
610
|
|
|
611
611
|
/**
|
|
612
612
|
* The type of origin profile the test system supports.
|
|
613
613
|
*/
|
|
614
|
-
|
|
614
|
+
profile?: Coding;
|
|
615
615
|
}
|
|
616
616
|
|
|
617
617
|
/**
|
|
@@ -623,7 +623,7 @@ export interface TestScriptSetup {
|
|
|
623
623
|
* Unique id for the element within a resource (for internal references).
|
|
624
624
|
* This may be any string value that does not contain spaces.
|
|
625
625
|
*/
|
|
626
|
-
|
|
626
|
+
id?: string;
|
|
627
627
|
|
|
628
628
|
/**
|
|
629
629
|
* May be used to represent additional information that is not part of
|
|
@@ -633,7 +633,7 @@ export interface TestScriptSetup {
|
|
|
633
633
|
* define an extension, there is a set of requirements that SHALL be met
|
|
634
634
|
* as part of the definition of the extension.
|
|
635
635
|
*/
|
|
636
|
-
|
|
636
|
+
extension?: Extension[];
|
|
637
637
|
|
|
638
638
|
/**
|
|
639
639
|
* May be used to represent additional information that is not part of
|
|
@@ -652,12 +652,12 @@ export interface TestScriptSetup {
|
|
|
652
652
|
* Resource or DomainResource (including cannot change the meaning of
|
|
653
653
|
* modifierExtension itself).
|
|
654
654
|
*/
|
|
655
|
-
|
|
655
|
+
modifierExtension?: Extension[];
|
|
656
656
|
|
|
657
657
|
/**
|
|
658
658
|
* Action would contain either an operation or an assertion.
|
|
659
659
|
*/
|
|
660
|
-
|
|
660
|
+
action?: TestScriptSetupAction[];
|
|
661
661
|
}
|
|
662
662
|
|
|
663
663
|
/**
|
|
@@ -669,7 +669,7 @@ export interface TestScriptSetupAction {
|
|
|
669
669
|
* Unique id for the element within a resource (for internal references).
|
|
670
670
|
* This may be any string value that does not contain spaces.
|
|
671
671
|
*/
|
|
672
|
-
|
|
672
|
+
id?: string;
|
|
673
673
|
|
|
674
674
|
/**
|
|
675
675
|
* May be used to represent additional information that is not part of
|
|
@@ -679,7 +679,7 @@ export interface TestScriptSetupAction {
|
|
|
679
679
|
* define an extension, there is a set of requirements that SHALL be met
|
|
680
680
|
* as part of the definition of the extension.
|
|
681
681
|
*/
|
|
682
|
-
|
|
682
|
+
extension?: Extension[];
|
|
683
683
|
|
|
684
684
|
/**
|
|
685
685
|
* May be used to represent additional information that is not part of
|
|
@@ -698,18 +698,18 @@ export interface TestScriptSetupAction {
|
|
|
698
698
|
* Resource or DomainResource (including cannot change the meaning of
|
|
699
699
|
* modifierExtension itself).
|
|
700
700
|
*/
|
|
701
|
-
|
|
701
|
+
modifierExtension?: Extension[];
|
|
702
702
|
|
|
703
703
|
/**
|
|
704
704
|
* The operation to perform.
|
|
705
705
|
*/
|
|
706
|
-
|
|
706
|
+
operation?: TestScriptSetupActionOperation;
|
|
707
707
|
|
|
708
708
|
/**
|
|
709
709
|
* Evaluates the results of previous operations to determine if the
|
|
710
710
|
* server under test behaves appropriately.
|
|
711
711
|
*/
|
|
712
|
-
|
|
712
|
+
assert?: TestScriptSetupActionAssert;
|
|
713
713
|
}
|
|
714
714
|
|
|
715
715
|
/**
|
|
@@ -722,7 +722,7 @@ export interface TestScriptSetupActionAssert {
|
|
|
722
722
|
* Unique id for the element within a resource (for internal references).
|
|
723
723
|
* This may be any string value that does not contain spaces.
|
|
724
724
|
*/
|
|
725
|
-
|
|
725
|
+
id?: string;
|
|
726
726
|
|
|
727
727
|
/**
|
|
728
728
|
* May be used to represent additional information that is not part of
|
|
@@ -732,7 +732,7 @@ export interface TestScriptSetupActionAssert {
|
|
|
732
732
|
* define an extension, there is a set of requirements that SHALL be met
|
|
733
733
|
* as part of the definition of the extension.
|
|
734
734
|
*/
|
|
735
|
-
|
|
735
|
+
extension?: Extension[];
|
|
736
736
|
|
|
737
737
|
/**
|
|
738
738
|
* May be used to represent additional information that is not part of
|
|
@@ -751,135 +751,135 @@ export interface TestScriptSetupActionAssert {
|
|
|
751
751
|
* Resource or DomainResource (including cannot change the meaning of
|
|
752
752
|
* modifierExtension itself).
|
|
753
753
|
*/
|
|
754
|
-
|
|
754
|
+
modifierExtension?: Extension[];
|
|
755
755
|
|
|
756
756
|
/**
|
|
757
757
|
* The label would be used for tracking/logging purposes by test engines.
|
|
758
758
|
*/
|
|
759
|
-
|
|
759
|
+
label?: string;
|
|
760
760
|
|
|
761
761
|
/**
|
|
762
762
|
* The description would be used by test engines for tracking and
|
|
763
763
|
* reporting purposes.
|
|
764
764
|
*/
|
|
765
|
-
|
|
765
|
+
description?: string;
|
|
766
766
|
|
|
767
767
|
/**
|
|
768
768
|
* The direction to use for the assertion.
|
|
769
769
|
*/
|
|
770
|
-
|
|
770
|
+
direction?: string;
|
|
771
771
|
|
|
772
772
|
/**
|
|
773
773
|
* Id of the source fixture used as the contents to be evaluated by
|
|
774
774
|
* either the "source/expression" or "sourceId/path" definition.
|
|
775
775
|
*/
|
|
776
|
-
|
|
776
|
+
compareToSourceId?: string;
|
|
777
777
|
|
|
778
778
|
/**
|
|
779
779
|
* The FHIRPath expression to evaluate against the source fixture. When
|
|
780
780
|
* compareToSourceId is defined, either compareToSourceExpression or
|
|
781
781
|
* compareToSourcePath must be defined, but not both.
|
|
782
782
|
*/
|
|
783
|
-
|
|
783
|
+
compareToSourceExpression?: string;
|
|
784
784
|
|
|
785
785
|
/**
|
|
786
786
|
* XPath or JSONPath expression to evaluate against the source fixture.
|
|
787
787
|
* When compareToSourceId is defined, either compareToSourceExpression or
|
|
788
788
|
* compareToSourcePath must be defined, but not both.
|
|
789
789
|
*/
|
|
790
|
-
|
|
790
|
+
compareToSourcePath?: string;
|
|
791
791
|
|
|
792
792
|
/**
|
|
793
793
|
* The mime-type contents to compare against the request or response
|
|
794
794
|
* message 'Content-Type' header.
|
|
795
795
|
*/
|
|
796
|
-
|
|
796
|
+
contentType?: string;
|
|
797
797
|
|
|
798
798
|
/**
|
|
799
799
|
* The FHIRPath expression to be evaluated against the request or
|
|
800
800
|
* response message contents - HTTP headers and payload.
|
|
801
801
|
*/
|
|
802
|
-
|
|
802
|
+
expression?: string;
|
|
803
803
|
|
|
804
804
|
/**
|
|
805
805
|
* The HTTP header field name e.g. 'Location'.
|
|
806
806
|
*/
|
|
807
|
-
|
|
807
|
+
headerField?: string;
|
|
808
808
|
|
|
809
809
|
/**
|
|
810
810
|
* The ID of a fixture. Asserts that the response contains at a minimum
|
|
811
811
|
* the fixture specified by minimumId.
|
|
812
812
|
*/
|
|
813
|
-
|
|
813
|
+
minimumId?: string;
|
|
814
814
|
|
|
815
815
|
/**
|
|
816
816
|
* Whether or not the test execution performs validation on the bundle
|
|
817
817
|
* navigation links.
|
|
818
818
|
*/
|
|
819
|
-
|
|
819
|
+
navigationLinks?: boolean;
|
|
820
820
|
|
|
821
821
|
/**
|
|
822
822
|
* The operator type defines the conditional behavior of the assert. If
|
|
823
823
|
* not defined, the default is equals.
|
|
824
824
|
*/
|
|
825
|
-
|
|
825
|
+
operator?: string;
|
|
826
826
|
|
|
827
827
|
/**
|
|
828
828
|
* The XPath or JSONPath expression to be evaluated against the fixture
|
|
829
829
|
* representing the response received from server.
|
|
830
830
|
*/
|
|
831
|
-
|
|
831
|
+
path?: string;
|
|
832
832
|
|
|
833
833
|
/**
|
|
834
834
|
* The request method or HTTP operation code to compare against that used
|
|
835
835
|
* by the client system under test.
|
|
836
836
|
*/
|
|
837
|
-
|
|
837
|
+
requestMethod?: string;
|
|
838
838
|
|
|
839
839
|
/**
|
|
840
840
|
* The value to use in a comparison against the request URL path string.
|
|
841
841
|
*/
|
|
842
|
-
|
|
842
|
+
requestURL?: string;
|
|
843
843
|
|
|
844
844
|
/**
|
|
845
845
|
* The type of the resource. See
|
|
846
846
|
* http://build.fhir.org/resourcelist.html.
|
|
847
847
|
*/
|
|
848
|
-
|
|
848
|
+
resource?: string;
|
|
849
849
|
|
|
850
850
|
/**
|
|
851
851
|
* okay | created | noContent | notModified | bad | forbidden | notFound
|
|
852
852
|
* | methodNotAllowed | conflict | gone | preconditionFailed |
|
|
853
853
|
* unprocessable.
|
|
854
854
|
*/
|
|
855
|
-
|
|
855
|
+
response?: string;
|
|
856
856
|
|
|
857
857
|
/**
|
|
858
858
|
* The value of the HTTP response code to be tested.
|
|
859
859
|
*/
|
|
860
|
-
|
|
860
|
+
responseCode?: string;
|
|
861
861
|
|
|
862
862
|
/**
|
|
863
863
|
* Fixture to evaluate the XPath/JSONPath expression or the headerField
|
|
864
864
|
* against.
|
|
865
865
|
*/
|
|
866
|
-
|
|
866
|
+
sourceId?: string;
|
|
867
867
|
|
|
868
868
|
/**
|
|
869
869
|
* The ID of the Profile to validate against.
|
|
870
870
|
*/
|
|
871
|
-
|
|
871
|
+
validateProfileId?: string;
|
|
872
872
|
|
|
873
873
|
/**
|
|
874
874
|
* The value to compare to.
|
|
875
875
|
*/
|
|
876
|
-
|
|
876
|
+
value?: string;
|
|
877
877
|
|
|
878
878
|
/**
|
|
879
879
|
* Whether or not the test execution will produce a warning only on error
|
|
880
880
|
* for this assert.
|
|
881
881
|
*/
|
|
882
|
-
|
|
882
|
+
warningOnly?: boolean;
|
|
883
883
|
}
|
|
884
884
|
|
|
885
885
|
/**
|
|
@@ -891,7 +891,7 @@ export interface TestScriptSetupActionOperation {
|
|
|
891
891
|
* Unique id for the element within a resource (for internal references).
|
|
892
892
|
* This may be any string value that does not contain spaces.
|
|
893
893
|
*/
|
|
894
|
-
|
|
894
|
+
id?: string;
|
|
895
895
|
|
|
896
896
|
/**
|
|
897
897
|
* May be used to represent additional information that is not part of
|
|
@@ -901,7 +901,7 @@ export interface TestScriptSetupActionOperation {
|
|
|
901
901
|
* define an extension, there is a set of requirements that SHALL be met
|
|
902
902
|
* as part of the definition of the extension.
|
|
903
903
|
*/
|
|
904
|
-
|
|
904
|
+
extension?: Extension[];
|
|
905
905
|
|
|
906
906
|
/**
|
|
907
907
|
* May be used to represent additional information that is not part of
|
|
@@ -920,46 +920,46 @@ export interface TestScriptSetupActionOperation {
|
|
|
920
920
|
* Resource or DomainResource (including cannot change the meaning of
|
|
921
921
|
* modifierExtension itself).
|
|
922
922
|
*/
|
|
923
|
-
|
|
923
|
+
modifierExtension?: Extension[];
|
|
924
924
|
|
|
925
925
|
/**
|
|
926
926
|
* Server interaction or operation type.
|
|
927
927
|
*/
|
|
928
|
-
|
|
928
|
+
type?: Coding;
|
|
929
929
|
|
|
930
930
|
/**
|
|
931
931
|
* The type of the resource. See
|
|
932
932
|
* http://build.fhir.org/resourcelist.html.
|
|
933
933
|
*/
|
|
934
|
-
|
|
934
|
+
resource?: string;
|
|
935
935
|
|
|
936
936
|
/**
|
|
937
937
|
* The label would be used for tracking/logging purposes by test engines.
|
|
938
938
|
*/
|
|
939
|
-
|
|
939
|
+
label?: string;
|
|
940
940
|
|
|
941
941
|
/**
|
|
942
942
|
* The description would be used by test engines for tracking and
|
|
943
943
|
* reporting purposes.
|
|
944
944
|
*/
|
|
945
|
-
|
|
945
|
+
description?: string;
|
|
946
946
|
|
|
947
947
|
/**
|
|
948
948
|
* The mime-type to use for RESTful operation in the 'Accept' header.
|
|
949
949
|
*/
|
|
950
|
-
|
|
950
|
+
accept?: string;
|
|
951
951
|
|
|
952
952
|
/**
|
|
953
953
|
* The mime-type to use for RESTful operation in the 'Content-Type'
|
|
954
954
|
* header.
|
|
955
955
|
*/
|
|
956
|
-
|
|
956
|
+
contentType?: string;
|
|
957
957
|
|
|
958
958
|
/**
|
|
959
959
|
* The server where the request message is destined for. Must be one of
|
|
960
960
|
* the server numbers listed in TestScript.destination section.
|
|
961
961
|
*/
|
|
962
|
-
|
|
962
|
+
destination?: number;
|
|
963
963
|
|
|
964
964
|
/**
|
|
965
965
|
* Whether or not to implicitly send the request url in encoded format.
|
|
@@ -967,56 +967,56 @@ export interface TestScriptSetupActionOperation {
|
|
|
967
967
|
* to false when communicating with a server that does not support
|
|
968
968
|
* encoded url paths.
|
|
969
969
|
*/
|
|
970
|
-
|
|
970
|
+
encodeRequestUrl?: boolean;
|
|
971
971
|
|
|
972
972
|
/**
|
|
973
973
|
* The HTTP method the test engine MUST use for this operation regardless
|
|
974
974
|
* of any other operation details.
|
|
975
975
|
*/
|
|
976
|
-
|
|
976
|
+
method?: string;
|
|
977
977
|
|
|
978
978
|
/**
|
|
979
979
|
* The server where the request message originates from. Must be one of
|
|
980
980
|
* the server numbers listed in TestScript.origin section.
|
|
981
981
|
*/
|
|
982
|
-
|
|
982
|
+
origin?: number;
|
|
983
983
|
|
|
984
984
|
/**
|
|
985
985
|
* Path plus parameters after [type]. Used to set parts of the request
|
|
986
986
|
* URL explicitly.
|
|
987
987
|
*/
|
|
988
|
-
|
|
988
|
+
params?: string;
|
|
989
989
|
|
|
990
990
|
/**
|
|
991
991
|
* Header elements would be used to set HTTP headers.
|
|
992
992
|
*/
|
|
993
|
-
|
|
993
|
+
requestHeader?: TestScriptSetupActionOperationRequestHeader[];
|
|
994
994
|
|
|
995
995
|
/**
|
|
996
996
|
* The fixture id (maybe new) to map to the request.
|
|
997
997
|
*/
|
|
998
|
-
|
|
998
|
+
requestId?: string;
|
|
999
999
|
|
|
1000
1000
|
/**
|
|
1001
1001
|
* The fixture id (maybe new) to map to the response.
|
|
1002
1002
|
*/
|
|
1003
|
-
|
|
1003
|
+
responseId?: string;
|
|
1004
1004
|
|
|
1005
1005
|
/**
|
|
1006
1006
|
* The id of the fixture used as the body of a PUT or POST request.
|
|
1007
1007
|
*/
|
|
1008
|
-
|
|
1008
|
+
sourceId?: string;
|
|
1009
1009
|
|
|
1010
1010
|
/**
|
|
1011
1011
|
* Id of fixture used for extracting the [id], [type], and [vid] for GET
|
|
1012
1012
|
* requests.
|
|
1013
1013
|
*/
|
|
1014
|
-
|
|
1014
|
+
targetId?: string;
|
|
1015
1015
|
|
|
1016
1016
|
/**
|
|
1017
1017
|
* Complete request URL.
|
|
1018
1018
|
*/
|
|
1019
|
-
|
|
1019
|
+
url?: string;
|
|
1020
1020
|
}
|
|
1021
1021
|
|
|
1022
1022
|
/**
|
|
@@ -1028,7 +1028,7 @@ export interface TestScriptSetupActionOperationRequestHeader {
|
|
|
1028
1028
|
* Unique id for the element within a resource (for internal references).
|
|
1029
1029
|
* This may be any string value that does not contain spaces.
|
|
1030
1030
|
*/
|
|
1031
|
-
|
|
1031
|
+
id?: string;
|
|
1032
1032
|
|
|
1033
1033
|
/**
|
|
1034
1034
|
* May be used to represent additional information that is not part of
|
|
@@ -1038,7 +1038,7 @@ export interface TestScriptSetupActionOperationRequestHeader {
|
|
|
1038
1038
|
* define an extension, there is a set of requirements that SHALL be met
|
|
1039
1039
|
* as part of the definition of the extension.
|
|
1040
1040
|
*/
|
|
1041
|
-
|
|
1041
|
+
extension?: Extension[];
|
|
1042
1042
|
|
|
1043
1043
|
/**
|
|
1044
1044
|
* May be used to represent additional information that is not part of
|
|
@@ -1057,17 +1057,17 @@ export interface TestScriptSetupActionOperationRequestHeader {
|
|
|
1057
1057
|
* Resource or DomainResource (including cannot change the meaning of
|
|
1058
1058
|
* modifierExtension itself).
|
|
1059
1059
|
*/
|
|
1060
|
-
|
|
1060
|
+
modifierExtension?: Extension[];
|
|
1061
1061
|
|
|
1062
1062
|
/**
|
|
1063
1063
|
* The HTTP header field e.g. "Accept".
|
|
1064
1064
|
*/
|
|
1065
|
-
|
|
1065
|
+
field?: string;
|
|
1066
1066
|
|
|
1067
1067
|
/**
|
|
1068
1068
|
* The value of the header e.g. "application/fhir+xml".
|
|
1069
1069
|
*/
|
|
1070
|
-
|
|
1070
|
+
value?: string;
|
|
1071
1071
|
}
|
|
1072
1072
|
|
|
1073
1073
|
/**
|
|
@@ -1080,7 +1080,7 @@ export interface TestScriptTeardown {
|
|
|
1080
1080
|
* Unique id for the element within a resource (for internal references).
|
|
1081
1081
|
* This may be any string value that does not contain spaces.
|
|
1082
1082
|
*/
|
|
1083
|
-
|
|
1083
|
+
id?: string;
|
|
1084
1084
|
|
|
1085
1085
|
/**
|
|
1086
1086
|
* May be used to represent additional information that is not part of
|
|
@@ -1090,7 +1090,7 @@ export interface TestScriptTeardown {
|
|
|
1090
1090
|
* define an extension, there is a set of requirements that SHALL be met
|
|
1091
1091
|
* as part of the definition of the extension.
|
|
1092
1092
|
*/
|
|
1093
|
-
|
|
1093
|
+
extension?: Extension[];
|
|
1094
1094
|
|
|
1095
1095
|
/**
|
|
1096
1096
|
* May be used to represent additional information that is not part of
|
|
@@ -1109,12 +1109,12 @@ export interface TestScriptTeardown {
|
|
|
1109
1109
|
* Resource or DomainResource (including cannot change the meaning of
|
|
1110
1110
|
* modifierExtension itself).
|
|
1111
1111
|
*/
|
|
1112
|
-
|
|
1112
|
+
modifierExtension?: Extension[];
|
|
1113
1113
|
|
|
1114
1114
|
/**
|
|
1115
1115
|
* The teardown action will only contain an operation.
|
|
1116
1116
|
*/
|
|
1117
|
-
|
|
1117
|
+
action?: TestScriptTeardownAction[];
|
|
1118
1118
|
}
|
|
1119
1119
|
|
|
1120
1120
|
/**
|
|
@@ -1126,7 +1126,7 @@ export interface TestScriptTeardownAction {
|
|
|
1126
1126
|
* Unique id for the element within a resource (for internal references).
|
|
1127
1127
|
* This may be any string value that does not contain spaces.
|
|
1128
1128
|
*/
|
|
1129
|
-
|
|
1129
|
+
id?: string;
|
|
1130
1130
|
|
|
1131
1131
|
/**
|
|
1132
1132
|
* May be used to represent additional information that is not part of
|
|
@@ -1136,7 +1136,7 @@ export interface TestScriptTeardownAction {
|
|
|
1136
1136
|
* define an extension, there is a set of requirements that SHALL be met
|
|
1137
1137
|
* as part of the definition of the extension.
|
|
1138
1138
|
*/
|
|
1139
|
-
|
|
1139
|
+
extension?: Extension[];
|
|
1140
1140
|
|
|
1141
1141
|
/**
|
|
1142
1142
|
* May be used to represent additional information that is not part of
|
|
@@ -1155,12 +1155,12 @@ export interface TestScriptTeardownAction {
|
|
|
1155
1155
|
* Resource or DomainResource (including cannot change the meaning of
|
|
1156
1156
|
* modifierExtension itself).
|
|
1157
1157
|
*/
|
|
1158
|
-
|
|
1158
|
+
modifierExtension?: Extension[];
|
|
1159
1159
|
|
|
1160
1160
|
/**
|
|
1161
1161
|
* An operation would involve a REST request to a server.
|
|
1162
1162
|
*/
|
|
1163
|
-
|
|
1163
|
+
operation?: TestScriptSetupActionOperation;
|
|
1164
1164
|
}
|
|
1165
1165
|
|
|
1166
1166
|
/**
|
|
@@ -1172,7 +1172,7 @@ export interface TestScriptTest {
|
|
|
1172
1172
|
* Unique id for the element within a resource (for internal references).
|
|
1173
1173
|
* This may be any string value that does not contain spaces.
|
|
1174
1174
|
*/
|
|
1175
|
-
|
|
1175
|
+
id?: string;
|
|
1176
1176
|
|
|
1177
1177
|
/**
|
|
1178
1178
|
* May be used to represent additional information that is not part of
|
|
@@ -1182,7 +1182,7 @@ export interface TestScriptTest {
|
|
|
1182
1182
|
* define an extension, there is a set of requirements that SHALL be met
|
|
1183
1183
|
* as part of the definition of the extension.
|
|
1184
1184
|
*/
|
|
1185
|
-
|
|
1185
|
+
extension?: Extension[];
|
|
1186
1186
|
|
|
1187
1187
|
/**
|
|
1188
1188
|
* May be used to represent additional information that is not part of
|
|
@@ -1201,24 +1201,24 @@ export interface TestScriptTest {
|
|
|
1201
1201
|
* Resource or DomainResource (including cannot change the meaning of
|
|
1202
1202
|
* modifierExtension itself).
|
|
1203
1203
|
*/
|
|
1204
|
-
|
|
1204
|
+
modifierExtension?: Extension[];
|
|
1205
1205
|
|
|
1206
1206
|
/**
|
|
1207
1207
|
* The name of this test used for tracking/logging purposes by test
|
|
1208
1208
|
* engines.
|
|
1209
1209
|
*/
|
|
1210
|
-
|
|
1210
|
+
name?: string;
|
|
1211
1211
|
|
|
1212
1212
|
/**
|
|
1213
1213
|
* A short description of the test used by test engines for tracking and
|
|
1214
1214
|
* reporting purposes.
|
|
1215
1215
|
*/
|
|
1216
|
-
|
|
1216
|
+
description?: string;
|
|
1217
1217
|
|
|
1218
1218
|
/**
|
|
1219
1219
|
* Action would contain either an operation or an assertion.
|
|
1220
1220
|
*/
|
|
1221
|
-
|
|
1221
|
+
action?: TestScriptTestAction[];
|
|
1222
1222
|
}
|
|
1223
1223
|
|
|
1224
1224
|
/**
|
|
@@ -1230,7 +1230,7 @@ export interface TestScriptTestAction {
|
|
|
1230
1230
|
* Unique id for the element within a resource (for internal references).
|
|
1231
1231
|
* This may be any string value that does not contain spaces.
|
|
1232
1232
|
*/
|
|
1233
|
-
|
|
1233
|
+
id?: string;
|
|
1234
1234
|
|
|
1235
1235
|
/**
|
|
1236
1236
|
* May be used to represent additional information that is not part of
|
|
@@ -1240,7 +1240,7 @@ export interface TestScriptTestAction {
|
|
|
1240
1240
|
* define an extension, there is a set of requirements that SHALL be met
|
|
1241
1241
|
* as part of the definition of the extension.
|
|
1242
1242
|
*/
|
|
1243
|
-
|
|
1243
|
+
extension?: Extension[];
|
|
1244
1244
|
|
|
1245
1245
|
/**
|
|
1246
1246
|
* May be used to represent additional information that is not part of
|
|
@@ -1259,18 +1259,18 @@ export interface TestScriptTestAction {
|
|
|
1259
1259
|
* Resource or DomainResource (including cannot change the meaning of
|
|
1260
1260
|
* modifierExtension itself).
|
|
1261
1261
|
*/
|
|
1262
|
-
|
|
1262
|
+
modifierExtension?: Extension[];
|
|
1263
1263
|
|
|
1264
1264
|
/**
|
|
1265
1265
|
* An operation would involve a REST request to a server.
|
|
1266
1266
|
*/
|
|
1267
|
-
|
|
1267
|
+
operation?: TestScriptSetupActionOperation;
|
|
1268
1268
|
|
|
1269
1269
|
/**
|
|
1270
1270
|
* Evaluates the results of previous operations to determine if the
|
|
1271
1271
|
* server under test behaves appropriately.
|
|
1272
1272
|
*/
|
|
1273
|
-
|
|
1273
|
+
assert?: TestScriptSetupActionAssert;
|
|
1274
1274
|
}
|
|
1275
1275
|
|
|
1276
1276
|
/**
|
|
@@ -1283,7 +1283,7 @@ export interface TestScriptVariable {
|
|
|
1283
1283
|
* Unique id for the element within a resource (for internal references).
|
|
1284
1284
|
* This may be any string value that does not contain spaces.
|
|
1285
1285
|
*/
|
|
1286
|
-
|
|
1286
|
+
id?: string;
|
|
1287
1287
|
|
|
1288
1288
|
/**
|
|
1289
1289
|
* May be used to represent additional information that is not part of
|
|
@@ -1293,7 +1293,7 @@ export interface TestScriptVariable {
|
|
|
1293
1293
|
* define an extension, there is a set of requirements that SHALL be met
|
|
1294
1294
|
* as part of the definition of the extension.
|
|
1295
1295
|
*/
|
|
1296
|
-
|
|
1296
|
+
extension?: Extension[];
|
|
1297
1297
|
|
|
1298
1298
|
/**
|
|
1299
1299
|
* May be used to represent additional information that is not part of
|
|
@@ -1312,53 +1312,53 @@ export interface TestScriptVariable {
|
|
|
1312
1312
|
* Resource or DomainResource (including cannot change the meaning of
|
|
1313
1313
|
* modifierExtension itself).
|
|
1314
1314
|
*/
|
|
1315
|
-
|
|
1315
|
+
modifierExtension?: Extension[];
|
|
1316
1316
|
|
|
1317
1317
|
/**
|
|
1318
1318
|
* Descriptive name for this variable.
|
|
1319
1319
|
*/
|
|
1320
|
-
|
|
1320
|
+
name?: string;
|
|
1321
1321
|
|
|
1322
1322
|
/**
|
|
1323
1323
|
* A default, hard-coded, or user-defined value for this variable.
|
|
1324
1324
|
*/
|
|
1325
|
-
|
|
1325
|
+
defaultValue?: string;
|
|
1326
1326
|
|
|
1327
1327
|
/**
|
|
1328
1328
|
* A free text natural language description of the variable and its
|
|
1329
1329
|
* purpose.
|
|
1330
1330
|
*/
|
|
1331
|
-
|
|
1331
|
+
description?: string;
|
|
1332
1332
|
|
|
1333
1333
|
/**
|
|
1334
1334
|
* The FHIRPath expression to evaluate against the fixture body. When
|
|
1335
1335
|
* variables are defined, only one of either expression, headerField or
|
|
1336
1336
|
* path must be specified.
|
|
1337
1337
|
*/
|
|
1338
|
-
|
|
1338
|
+
expression?: string;
|
|
1339
1339
|
|
|
1340
1340
|
/**
|
|
1341
1341
|
* Will be used to grab the HTTP header field value from the headers that
|
|
1342
1342
|
* sourceId is pointing to.
|
|
1343
1343
|
*/
|
|
1344
|
-
|
|
1344
|
+
headerField?: string;
|
|
1345
1345
|
|
|
1346
1346
|
/**
|
|
1347
1347
|
* Displayable text string with hint help information to the user when
|
|
1348
1348
|
* entering a default value.
|
|
1349
1349
|
*/
|
|
1350
|
-
|
|
1350
|
+
hint?: string;
|
|
1351
1351
|
|
|
1352
1352
|
/**
|
|
1353
1353
|
* XPath or JSONPath to evaluate against the fixture body. When
|
|
1354
1354
|
* variables are defined, only one of either expression, headerField or
|
|
1355
1355
|
* path must be specified.
|
|
1356
1356
|
*/
|
|
1357
|
-
|
|
1357
|
+
path?: string;
|
|
1358
1358
|
|
|
1359
1359
|
/**
|
|
1360
1360
|
* Fixture to evaluate the XPath/JSONPath expression or the headerField
|
|
1361
1361
|
* against within this variable.
|
|
1362
1362
|
*/
|
|
1363
|
-
|
|
1363
|
+
sourceId?: string;
|
|
1364
1364
|
}
|