@medplum/fhirtypes 0.9.34 → 0.9.36

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.
Files changed (168) hide show
  1. package/dist/Account.d.ts +1 -1
  2. package/dist/ActivityDefinition.d.ts +7 -5
  3. package/dist/Address.d.ts +7 -8
  4. package/dist/AdverseEvent.d.ts +1 -1
  5. package/dist/Age.d.ts +3 -3
  6. package/dist/AllergyIntolerance.d.ts +4 -4
  7. package/dist/Annotation.d.ts +2 -2
  8. package/dist/Appointment.d.ts +3 -3
  9. package/dist/AppointmentResponse.d.ts +1 -1
  10. package/dist/Attachment.d.ts +1 -2
  11. package/dist/AuditEvent.d.ts +3 -3
  12. package/dist/BackboneElement.d.ts +15 -0
  13. package/dist/BiologicallyDerivedProduct.d.ts +3 -3
  14. package/dist/Bundle.d.ts +3 -3
  15. package/dist/CapabilityStatement.d.ts +16 -14
  16. package/dist/CarePlan.d.ts +4 -4
  17. package/dist/CareTeam.d.ts +1 -1
  18. package/dist/CatalogEntry.d.ts +2 -2
  19. package/dist/ChargeItem.d.ts +1 -1
  20. package/dist/ChargeItemDefinition.d.ts +2 -2
  21. package/dist/Claim.d.ts +2 -2
  22. package/dist/ClaimResponse.d.ts +4 -4
  23. package/dist/ClientApplication.d.ts +3 -0
  24. package/dist/ClinicalImpression.d.ts +1 -1
  25. package/dist/CodeSystem.d.ts +5 -5
  26. package/dist/CodeableConcept.d.ts +2 -3
  27. package/dist/Coding.d.ts +1 -2
  28. package/dist/Communication.d.ts +2 -2
  29. package/dist/CommunicationRequest.d.ts +2 -2
  30. package/dist/CompartmentDefinition.d.ts +4 -3
  31. package/dist/Composition.d.ts +4 -4
  32. package/dist/ConceptMap.d.ts +3 -3
  33. package/dist/Consent.d.ts +3 -3
  34. package/dist/ContactDetail.d.ts +1 -2
  35. package/dist/ContactPoint.d.ts +4 -5
  36. package/dist/Contract.d.ts +4 -2
  37. package/dist/Contributor.d.ts +3 -4
  38. package/dist/Count.d.ts +5 -5
  39. package/dist/Coverage.d.ts +1 -1
  40. package/dist/CoverageEligibilityRequest.d.ts +2 -2
  41. package/dist/CoverageEligibilityResponse.d.ts +3 -3
  42. package/dist/DataRequirement.d.ts +3 -4
  43. package/dist/DetectedIssue.d.ts +2 -2
  44. package/dist/Device.d.ts +3 -3
  45. package/dist/DeviceDefinition.d.ts +1 -1
  46. package/dist/DeviceMetric.d.ts +5 -5
  47. package/dist/DeviceRequest.d.ts +3 -3
  48. package/dist/DeviceUseStatement.d.ts +1 -1
  49. package/dist/DiagnosticReport.d.ts +1 -1
  50. package/dist/Distance.d.ts +2 -3
  51. package/dist/DocumentManifest.d.ts +1 -1
  52. package/dist/DocumentReference.d.ts +3 -3
  53. package/dist/Dosage.d.ts +2 -2
  54. package/dist/Duration.d.ts +2 -2
  55. package/dist/EffectEvidenceSynthesis.d.ts +2 -2
  56. package/dist/Element.d.ts +1 -2
  57. package/dist/ElementDefinition.d.ts +8 -9
  58. package/dist/Encounter.d.ts +3 -3
  59. package/dist/Endpoint.d.ts +1 -1
  60. package/dist/EnrollmentRequest.d.ts +1 -1
  61. package/dist/EnrollmentResponse.d.ts +2 -2
  62. package/dist/EpisodeOfCare.d.ts +2 -2
  63. package/dist/EventDefinition.d.ts +1 -1
  64. package/dist/Evidence.d.ts +1 -1
  65. package/dist/EvidenceVariable.d.ts +3 -3
  66. package/dist/ExampleScenario.d.ts +4 -3
  67. package/dist/ExplanationOfBenefit.d.ts +4 -4
  68. package/dist/Expression.d.ts +4 -4
  69. package/dist/Extension.d.ts +1 -2
  70. package/dist/FamilyMemberHistory.d.ts +1 -1
  71. package/dist/Flag.d.ts +1 -1
  72. package/dist/Goal.d.ts +1 -1
  73. package/dist/GraphDefinition.d.ts +7 -6
  74. package/dist/Group.d.ts +1 -1
  75. package/dist/GuidanceResponse.d.ts +1 -1
  76. package/dist/HealthcareService.d.ts +1 -1
  77. package/dist/HumanName.d.ts +2 -3
  78. package/dist/Identifier.d.ts +3 -4
  79. package/dist/ImagingStudy.d.ts +1 -1
  80. package/dist/Immunization.d.ts +1 -1
  81. package/dist/ImmunizationEvaluation.d.ts +1 -1
  82. package/dist/ImplementationGuide.d.ts +56 -7
  83. package/dist/InsurancePlan.d.ts +1 -1
  84. package/dist/Invoice.d.ts +2 -2
  85. package/dist/Library.d.ts +1 -1
  86. package/dist/Linkage.d.ts +1 -1
  87. package/dist/List.d.ts +2 -2
  88. package/dist/Location.d.ts +3 -3
  89. package/dist/Login.d.ts +1 -1
  90. package/dist/MarketingStatus.d.ts +3 -3
  91. package/dist/Measure.d.ts +1 -1
  92. package/dist/MeasureReport.d.ts +2 -2
  93. package/dist/Media.d.ts +1 -1
  94. package/dist/Medication.d.ts +1 -1
  95. package/dist/MedicationAdministration.d.ts +1 -1
  96. package/dist/MedicationDispense.d.ts +1 -1
  97. package/dist/MedicationKnowledge.d.ts +1 -1
  98. package/dist/MedicationRequest.d.ts +3 -3
  99. package/dist/MedicationStatement.d.ts +1 -1
  100. package/dist/MessageDefinition.d.ts +5 -4
  101. package/dist/MessageHeader.d.ts +1 -1
  102. package/dist/Meta.d.ts +3 -4
  103. package/dist/MolecularSequence.d.ts +5 -5
  104. package/dist/Money.d.ts +1 -2
  105. package/dist/NamingSystem.d.ts +3 -3
  106. package/dist/Narrative.d.ts +3 -4
  107. package/dist/NutritionOrder.d.ts +2 -2
  108. package/dist/Observation.d.ts +1 -1
  109. package/dist/ObservationDefinition.d.ts +4 -3
  110. package/dist/OperationDefinition.d.ts +7 -6
  111. package/dist/OperationOutcome.d.ts +5 -2
  112. package/dist/ParameterDefinition.d.ts +4 -5
  113. package/dist/Patient.d.ts +3 -3
  114. package/dist/PaymentNotice.d.ts +1 -1
  115. package/dist/PaymentReconciliation.d.ts +3 -3
  116. package/dist/Period.d.ts +1 -2
  117. package/dist/Person.d.ts +2 -2
  118. package/dist/PlanDefinition.d.ts +11 -10
  119. package/dist/Population.d.ts +1 -2
  120. package/dist/Practitioner.d.ts +1 -1
  121. package/dist/PractitionerRole.d.ts +1 -1
  122. package/dist/Procedure.d.ts +1 -1
  123. package/dist/ProdCharacteristic.d.ts +3 -3
  124. package/dist/ProductShelfLife.d.ts +2 -3
  125. package/dist/Project.d.ts +8 -0
  126. package/dist/Provenance.d.ts +1 -1
  127. package/dist/Quantity.d.ts +2 -5
  128. package/dist/Questionnaire.d.ts +7 -5
  129. package/dist/QuestionnaireResponse.d.ts +1 -1
  130. package/dist/Range.d.ts +1 -2
  131. package/dist/Ratio.d.ts +2 -2
  132. package/dist/Reference.d.ts +1 -2
  133. package/dist/RelatedArtifact.d.ts +3 -4
  134. package/dist/RelatedPerson.d.ts +1 -1
  135. package/dist/RequestGroup.d.ts +12 -11
  136. package/dist/ResearchDefinition.d.ts +1 -1
  137. package/dist/ResearchElementDefinition.d.ts +5 -5
  138. package/dist/ResearchStudy.d.ts +3 -1
  139. package/dist/ResearchSubject.d.ts +3 -1
  140. package/dist/RiskAssessment.d.ts +1 -1
  141. package/dist/RiskEvidenceSynthesis.d.ts +1 -1
  142. package/dist/SampledData.d.ts +2 -3
  143. package/dist/SearchParameter.d.ts +8 -7
  144. package/dist/ServiceRequest.d.ts +3 -3
  145. package/dist/Signature.d.ts +6 -6
  146. package/dist/Slot.d.ts +1 -1
  147. package/dist/Specimen.d.ts +1 -1
  148. package/dist/SpecimenDefinition.d.ts +1 -1
  149. package/dist/StructureDefinition.d.ts +6 -5
  150. package/dist/StructureMap.d.ts +9 -8
  151. package/dist/Subscription.d.ts +2 -2
  152. package/dist/Substance.d.ts +1 -1
  153. package/dist/SubstanceAmount.d.ts +7 -8
  154. package/dist/SupplyDelivery.d.ts +1 -1
  155. package/dist/SupplyRequest.d.ts +2 -2
  156. package/dist/Task.d.ts +4 -3
  157. package/dist/TerminologyCapabilities.d.ts +3 -3
  158. package/dist/TestReport.d.ts +5 -5
  159. package/dist/TestScript.d.ts +7 -6
  160. package/dist/Timing.d.ts +12 -10
  161. package/dist/TriggerDefinition.d.ts +3 -4
  162. package/dist/UsageContext.d.ts +5 -5
  163. package/dist/User.d.ts +1 -1
  164. package/dist/ValueSet.d.ts +4 -4
  165. package/dist/VerificationResult.d.ts +1 -1
  166. package/dist/VisionPrescription.d.ts +3 -3
  167. package/dist/index.d.ts +1 -0
  168. package/package.json +1 -1
package/dist/Account.d.ts CHANGED
@@ -113,7 +113,7 @@ export interface Account {
113
113
  /**
114
114
  * Indicates whether the account is presently used/usable or not.
115
115
  */
116
- status?: string;
116
+ status?: 'active' | 'inactive' | 'entered-in-error' | 'on-hold' | 'unknown';
117
117
 
118
118
  /**
119
119
  * Categorizes the account for reporting and searching purposes.
@@ -166,7 +166,7 @@ export interface ActivityDefinition {
166
166
  * The status of this activity definition. Enables tracking the
167
167
  * life-cycle of the content.
168
168
  */
169
- status?: string;
169
+ status?: 'draft' | 'active' | 'retired' | 'unknown';
170
170
 
171
171
  /**
172
172
  * A Boolean value to indicate that this activity definition is authored
@@ -317,7 +317,9 @@ export interface ActivityDefinition {
317
317
  * CommunicationRequest. Typically, but not always, this is a Request
318
318
  * resource.
319
319
  */
320
- kind?: string;
320
+ kind?: 'Appointment' | 'AppointmentResponse' | 'CarePlan' | 'Claim' | 'CommunicationRequest' | 'Contract' |
321
+ 'DeviceRequest' | 'EnrollmentRequest' | 'ImmunizationRecommendation' | 'MedicationRequest' | 'NutritionOrder' |
322
+ 'ServiceRequest' | 'SupplyRequest' | 'Task' | 'VisionPrescription';
321
323
 
322
324
  /**
323
325
  * A profile to which the target of the activity definition is expected
@@ -335,13 +337,13 @@ export interface ActivityDefinition {
335
337
  * Indicates the level of authority/intentionality associated with the
336
338
  * activity and where the request should fit into the workflow chain.
337
339
  */
338
- intent?: string;
340
+ intent?: 'proposal' | 'plan' | 'directive' | 'order' | 'original-order' | 'reflex-order' | 'filler-order' | 'instance-order' | 'option';
339
341
 
340
342
  /**
341
343
  * Indicates how quickly the activity should be addressed with respect
342
344
  * to other requests.
343
345
  */
344
- priority?: string;
346
+ priority?: 'routine' | 'urgent' | 'asap' | 'stat';
345
347
 
346
348
  /**
347
349
  * Set this to true if the definition is to indicate that a particular
@@ -570,7 +572,7 @@ export interface ActivityDefinitionParticipant {
570
572
  /**
571
573
  * The type of participant in the action.
572
574
  */
573
- type?: string;
575
+ type?: 'patient' | 'practitioner' | 'related-person' | 'device';
574
576
 
575
577
  /**
576
578
  * The role the participant should play in performing the described
package/dist/Address.d.ts CHANGED
@@ -7,12 +7,11 @@ import { Extension } from './Extension';
7
7
  import { Period } from './Period';
8
8
 
9
9
  /**
10
- * Base StructureDefinition for Address Type: An address expressed using
11
- * postal conventions (as opposed to GPS or other location definition
12
- * formats). This data type may be used to convey addresses for use in
13
- * delivering mail as well as for visiting locations which might not be
14
- * valid for mail delivery. There are a variety of postal address
15
- * formats defined around the world.
10
+ * An address expressed using postal conventions (as opposed to GPS or
11
+ * other location definition formats). This data type may be used to
12
+ * convey addresses for use in delivering mail as well as for visiting
13
+ * locations which might not be valid for mail delivery. There are a
14
+ * variety of postal address formats defined around the world.
16
15
  */
17
16
  export interface Address {
18
17
 
@@ -35,14 +34,14 @@ export interface Address {
35
34
  /**
36
35
  * The purpose of this address.
37
36
  */
38
- use?: string;
37
+ use?: 'home' | 'work' | 'temp' | 'old' | 'billing';
39
38
 
40
39
  /**
41
40
  * Distinguishes between physical addresses (those you can visit) and
42
41
  * mailing addresses (e.g. PO Boxes and care-of addresses). Most
43
42
  * addresses are both.
44
43
  */
45
- type?: string;
44
+ type?: 'postal' | 'physical' | 'both';
46
45
 
47
46
  /**
48
47
  * Specifies the entire address as it should be displayed e.g. on a
@@ -128,7 +128,7 @@ export interface AdverseEvent {
128
128
  * Note that this is independent of whether anyone was affected or harmed
129
129
  * or how severely.
130
130
  */
131
- actuality?: string;
131
+ actuality?: 'actual' | 'potential';
132
132
 
133
133
  /**
134
134
  * The overall type of event, intended for search and filtering purposes.
package/dist/Age.d.ts CHANGED
@@ -6,8 +6,8 @@
6
6
  import { Extension } from './Extension';
7
7
 
8
8
  /**
9
- * Base StructureDefinition for Age Type: A duration of time during which
10
- * an organism (or a process) has existed.
9
+ * A duration of time during which an organism (or a process) has
10
+ * existed.
11
11
  */
12
12
  export interface Age {
13
13
 
@@ -39,7 +39,7 @@ export interface Age {
39
39
  * measurement issues; e.g. if the comparator is "<" , then the real
40
40
  * value is < stated value.
41
41
  */
42
- comparator?: string;
42
+ comparator?: '<' | '<=' | '>=' | '>';
43
43
 
44
44
  /**
45
45
  * A human-readable form of the unit.
@@ -125,18 +125,18 @@ export interface AllergyIntolerance {
125
125
  * Identification of the underlying physiological mechanism for the
126
126
  * reaction risk.
127
127
  */
128
- type?: string;
128
+ type?: 'allergy' | 'intolerance';
129
129
 
130
130
  /**
131
131
  * Category of the identified substance.
132
132
  */
133
- category?: string[];
133
+ category?: ('food' | 'medication' | 'environment' | 'biologic')[];
134
134
 
135
135
  /**
136
136
  * Estimate of the potential clinical harm, or seriousness, of the
137
137
  * reaction to the identified substance.
138
138
  */
139
- criticality?: string;
139
+ criticality?: 'low' | 'high' | 'unable-to-assess';
140
140
 
141
141
  /**
142
142
  * Code for an allergy or intolerance statement (either a positive or a
@@ -313,7 +313,7 @@ export interface AllergyIntoleranceReaction {
313
313
  * Clinical assessment of the severity of the reaction event as a whole,
314
314
  * potentially considering multiple different manifestations.
315
315
  */
316
- severity?: string;
316
+ severity?: 'mild' | 'moderate' | 'severe';
317
317
 
318
318
  /**
319
319
  * Identification of the route by which the subject was exposed to the
@@ -11,8 +11,8 @@ import { Reference } from './Reference';
11
11
  import { RelatedPerson } from './RelatedPerson';
12
12
 
13
13
  /**
14
- * Base StructureDefinition for Annotation Type: A text note which also
15
- * contains information about who made the statement and when.
14
+ * A text note which also contains information about who made the
15
+ * statement and when.
16
16
  */
17
17
  export interface Annotation {
18
18
 
@@ -121,7 +121,7 @@ export interface Appointment {
121
121
  * their own participation status which indicates their involvement in
122
122
  * the process, however this status indicates the shared status.
123
123
  */
124
- status?: string;
124
+ status?: 'proposed' | 'pending' | 'booked' | 'arrived' | 'fulfilled' | 'cancelled' | 'noshow' | 'entered-in-error' | 'checked-in' | 'waitlist';
125
125
 
126
126
  /**
127
127
  * The coded reason for the appointment being cancelled. This is often
@@ -316,12 +316,12 @@ export interface AppointmentParticipant {
316
316
  * results for a specific patient, and the patient is not required to be
317
317
  * present.
318
318
  */
319
- required?: string;
319
+ required?: 'required' | 'optional' | 'information-only';
320
320
 
321
321
  /**
322
322
  * Participation status of the actor.
323
323
  */
324
- status?: string;
324
+ status?: 'accepted' | 'declined' | 'tentative' | 'needs-action';
325
325
 
326
326
  /**
327
327
  * Participation period of the actor.
@@ -145,7 +145,7 @@ export interface AppointmentResponse {
145
145
  * When the status is accepted, the times can either be the time of the
146
146
  * appointment (as a confirmation of the time) or can be empty.
147
147
  */
148
- participantStatus?: string;
148
+ participantStatus?: 'accepted' | 'declined' | 'tentative' | 'needs-action';
149
149
 
150
150
  /**
151
151
  * Additional comments about the appointment.
@@ -6,8 +6,7 @@
6
6
  import { Extension } from './Extension';
7
7
 
8
8
  /**
9
- * Base StructureDefinition for Attachment Type: For referring to data
10
- * content defined in other formats.
9
+ * For referring to data content defined in other formats.
11
10
  */
12
11
  export interface Attachment {
13
12
 
@@ -118,7 +118,7 @@ export interface AuditEvent {
118
118
  * Indicator for type of action performed during the event that generated
119
119
  * the audit.
120
120
  */
121
- action?: string;
121
+ action?: 'C' | 'R' | 'U' | 'D' | 'E';
122
122
 
123
123
  /**
124
124
  * The period during which the activity occurred.
@@ -133,7 +133,7 @@ export interface AuditEvent {
133
133
  /**
134
134
  * Indicates whether the event succeeded or failed.
135
135
  */
136
- outcome?: string;
136
+ outcome?: '0' | '4' | '8' | '12';
137
137
 
138
138
  /**
139
139
  * A free text description of the outcome of the event.
@@ -324,7 +324,7 @@ export interface AuditEventAgentNetwork {
324
324
  * An identifier for the type of network access point that originated the
325
325
  * audit event.
326
326
  */
327
- type?: string;
327
+ type?: '1' | '2' | '3' | '4' | '5';
328
328
  }
329
329
 
330
330
  /**
@@ -0,0 +1,15 @@
1
+ /*
2
+ * Generated by @medplum/generator
3
+ * Do not edit manually.
4
+ */
5
+
6
+ import { Extension } from './Extension';
7
+
8
+ export interface BackboneElement {
9
+
10
+ id?: string;
11
+
12
+ extension?: Extension[];
13
+
14
+ modifierExtension?: Extension[];
15
+ }
@@ -113,7 +113,7 @@ export interface BiologicallyDerivedProduct {
113
113
  /**
114
114
  * Broad category of this product.
115
115
  */
116
- productCategory?: string;
116
+ productCategory?: 'organ' | 'tissue' | 'fluid' | 'cells' | 'biologicalAgent';
117
117
 
118
118
  /**
119
119
  * A code that identifies the kind of this biologically derived product
@@ -124,7 +124,7 @@ export interface BiologicallyDerivedProduct {
124
124
  /**
125
125
  * Whether the product is currently available.
126
126
  */
127
- status?: string;
127
+ status?: 'available' | 'unavailable';
128
128
 
129
129
  /**
130
130
  * Procedure request to obtain this biologically derived product.
@@ -407,7 +407,7 @@ export interface BiologicallyDerivedProductStorage {
407
407
  /**
408
408
  * Temperature scale used.
409
409
  */
410
- scale?: string;
410
+ scale?: 'farenheit' | 'celsius' | 'kelvin';
411
411
 
412
412
  /**
413
413
  * Storage timeperiod.
package/dist/Bundle.d.ts CHANGED
@@ -54,7 +54,7 @@ export interface Bundle<T extends Resource = Resource> {
54
54
  /**
55
55
  * Indicates the purpose of this bundle - how it is intended to be used.
56
56
  */
57
- type?: string;
57
+ type?: 'document' | 'message' | 'transaction' | 'transaction-response' | 'batch' | 'batch-response' | 'history' | 'searchset' | 'collection';
58
58
 
59
59
  /**
60
60
  * The date/time that the bundle was assembled - i.e. when the resources
@@ -220,7 +220,7 @@ export interface BundleEntryRequest {
220
220
  * this entry. In a history bundle, this indicates the HTTP action that
221
221
  * occurred.
222
222
  */
223
- method?: string;
223
+ method?: 'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
224
224
 
225
225
  /**
226
226
  * The URL for this entry, relative to the root (the address to which the
@@ -377,7 +377,7 @@ export interface BundleEntrySearch {
377
377
  * or because of an _include requirement, or to convey information or
378
378
  * warning information about the search process.
379
379
  */
380
- mode?: string;
380
+ mode?: 'match' | 'include' | 'outcome';
381
381
 
382
382
  /**
383
383
  * When searching, the server's search ranking score for the entry.
@@ -12,6 +12,7 @@ import { Narrative } from './Narrative';
12
12
  import { Organization } from './Organization';
13
13
  import { Reference } from './Reference';
14
14
  import { Resource } from './Resource';
15
+ import { ResourceType } from './ResourceType';
15
16
  import { UsageContext } from './UsageContext';
16
17
 
17
18
  /**
@@ -138,7 +139,7 @@ export interface CapabilityStatement {
138
139
  * The status of this capability statement. Enables tracking the
139
140
  * life-cycle of the content.
140
141
  */
141
- status?: string;
142
+ status?: 'draft' | 'active' | 'retired' | 'unknown';
142
143
 
143
144
  /**
144
145
  * A Boolean value to indicate that this capability statement is authored
@@ -211,7 +212,7 @@ export interface CapabilityStatement {
211
212
  * instance of software) or a class of implementation (e.g. a desired
212
213
  * purchase).
213
214
  */
214
- kind?: string;
215
+ kind?: 'instance' | 'capability' | 'requirements';
215
216
 
216
217
  /**
217
218
  * Reference to a canonical URL of another CapabilityStatement that this
@@ -251,7 +252,8 @@ export interface CapabilityStatement {
251
252
  * describes (which SHALL be the same as the FHIR version of the
252
253
  * CapabilityStatement itself). There is no default value.
253
254
  */
254
- fhirVersion?: string;
255
+ fhirVersion?: '0.01' | '0.05' | '0.06' | '0.11' | '0.0.80' | '0.0.81' | '0.0.82' | '0.4.0' | '0.5.0' | '1.0.0' |
256
+ '1.0.1' | '1.0.2' | '1.1.0' | '1.4.0' | '1.6.0' | '1.8.0' | '3.0.0' | '3.0.1' | '3.3.0' | '3.5.0' | '4.0.0' | '4.0.1';
255
257
 
256
258
  /**
257
259
  * A list of the formats supported by this implementation using their
@@ -331,7 +333,7 @@ export interface CapabilityStatementDocument {
331
333
  * Mode of this document declaration - whether an application is a
332
334
  * producer or consumer.
333
335
  */
334
- mode?: string;
336
+ mode?: 'producer' | 'consumer';
335
337
 
336
338
  /**
337
339
  * A description of how the application supports or uses the specified
@@ -575,7 +577,7 @@ export interface CapabilityStatementMessagingSupportedMessage {
575
577
  * The mode of this event declaration - whether application is sender or
576
578
  * receiver.
577
579
  */
578
- mode?: string;
580
+ mode?: 'sender' | 'receiver';
579
581
 
580
582
  /**
581
583
  * Points to a message definition that identifies the messaging event,
@@ -628,7 +630,7 @@ export interface CapabilityStatementRest {
628
630
  * Identifies whether this portion of the statement is describing the
629
631
  * ability to initiate or receive restful operations.
630
632
  */
631
- mode?: string;
633
+ mode?: 'client' | 'server';
632
634
 
633
635
  /**
634
636
  * Information about the system's restful capabilities that apply across
@@ -718,7 +720,7 @@ export interface CapabilityStatementRestInteraction {
718
720
  /**
719
721
  * A coded identifier of the operation, supported by the system.
720
722
  */
721
- code?: string;
723
+ code?: 'transaction' | 'batch' | 'search-system' | 'history-system';
722
724
 
723
725
  /**
724
726
  * Guidance specific to the implementation of this operation, such as
@@ -772,7 +774,7 @@ export interface CapabilityStatementRestResource {
772
774
  /**
773
775
  * A type of resource exposed via the restful interface.
774
776
  */
775
- type?: string;
777
+ type?: ResourceType;
776
778
 
777
779
  /**
778
780
  * A specification of the profile that describes the solution's overall
@@ -812,7 +814,7 @@ export interface CapabilityStatementRestResource {
812
814
  * 'versioned-update', then the server supports all the versioning
813
815
  * features, including using e-tags for version integrity in the API.
814
816
  */
815
- versioning?: string;
817
+ versioning?: 'no-version' | 'versioned' | 'versioned-update';
816
818
 
817
819
  /**
818
820
  * A flag for whether the server is able to return past versions as part
@@ -837,7 +839,7 @@ export interface CapabilityStatementRestResource {
837
839
  /**
838
840
  * A code that indicates how the server supports conditional read.
839
841
  */
840
- conditionalRead?: string;
842
+ conditionalRead?: 'not-supported' | 'modified-since' | 'not-match' | 'full-support';
841
843
 
842
844
  /**
843
845
  * A flag that indicates that the server supports conditional update.
@@ -847,12 +849,12 @@ export interface CapabilityStatementRestResource {
847
849
  /**
848
850
  * A code that indicates how the server supports conditional delete.
849
851
  */
850
- conditionalDelete?: string;
852
+ conditionalDelete?: 'not-supported' | 'single' | 'multiple';
851
853
 
852
854
  /**
853
855
  * A set of flags that defines how references are supported.
854
856
  */
855
- referencePolicy?: string[];
857
+ referencePolicy?: ('literal' | 'logical' | 'resolves' | 'enforced' | 'local')[];
856
858
 
857
859
  /**
858
860
  * A list of _include values supported by the server.
@@ -924,7 +926,7 @@ export interface CapabilityStatementRestResourceInteraction {
924
926
  /**
925
927
  * Coded identifier of the operation, supported by the system resource.
926
928
  */
927
- code?: string;
929
+ code?: 'read' | 'vread' | 'update' | 'patch' | 'delete' | 'history-instance' | 'history-type' | 'create' | 'search-type';
928
930
 
929
931
  /**
930
932
  * Guidance specific to the implementation of this operation, such as
@@ -1067,7 +1069,7 @@ export interface CapabilityStatementRestResourceSearchParam {
1067
1069
  * The type of value a search parameter refers to, and how the content is
1068
1070
  * interpreted.
1069
1071
  */
1070
- type?: string;
1072
+ type?: 'number' | 'date' | 'string' | 'token' | 'reference' | 'composite' | 'quantity' | 'uri' | 'special';
1071
1073
 
1072
1074
  /**
1073
1075
  * This allows documentation of any distinct behaviors about how the
@@ -168,13 +168,13 @@ export interface CarePlan {
168
168
  * Indicates whether the plan is currently being acted upon, represents
169
169
  * future intentions or is now a historical record.
170
170
  */
171
- status?: string;
171
+ status?: 'draft' | 'active' | 'on-hold' | 'revoked' | 'completed' | 'entered-in-error' | 'unknown';
172
172
 
173
173
  /**
174
174
  * Indicates the level of authority/intentionality associated with the
175
175
  * care plan and where the care plan fits into the workflow chain.
176
176
  */
177
- intent?: string;
177
+ intent?: 'proposal' | 'plan' | 'order' | 'option';
178
178
 
179
179
  /**
180
180
  * Identifies what &quot;kind&quot; of plan this is to support differentiation
@@ -394,7 +394,7 @@ export interface CarePlanActivityDetail {
394
394
  * CarePlan.activity.reference. For example, a MedicationRequest, a
395
395
  * ServiceRequest, or a CommunicationRequest.
396
396
  */
397
- kind?: string;
397
+ kind?: 'Appointment' | 'CommunicationRequest' | 'DeviceRequest' | 'MedicationRequest' | 'NutritionOrder' | 'Task' | 'ServiceRequest' | 'VisionPrescription';
398
398
 
399
399
  /**
400
400
  * The URL pointing to a FHIR-defined protocol, guideline, questionnaire
@@ -439,7 +439,7 @@ export interface CarePlanActivityDetail {
439
439
  /**
440
440
  * Identifies what progress is being made for the specific activity.
441
441
  */
442
- status?: string;
442
+ status?: 'not-started' | 'scheduled' | 'in-progress' | 'on-hold' | 'completed' | 'cancelled' | 'stopped' | 'unknown' | 'entered-in-error';
443
443
 
444
444
  /**
445
445
  * Provides reason why the activity isn't yet started, is on hold, was
@@ -114,7 +114,7 @@ export interface CareTeam {
114
114
  /**
115
115
  * Indicates the current state of the care team.
116
116
  */
117
- status?: string;
117
+ status?: 'proposed' | 'active' | 'suspended' | 'inactive' | 'entered-in-error';
118
118
 
119
119
  /**
120
120
  * Identifies what kind of team. This is to support differentiation
@@ -141,7 +141,7 @@ export interface CatalogEntry {
141
141
  * Used to support catalog exchange even for unsupported products, e.g.
142
142
  * getting list of medications even if not prescribable.
143
143
  */
144
- status?: string;
144
+ status?: 'draft' | 'active' | 'retired' | 'unknown';
145
145
 
146
146
  /**
147
147
  * The time period in which this catalog entry is expected to be active.
@@ -221,7 +221,7 @@ export interface CatalogEntryRelatedEntry {
221
221
  * The type of relation to the related item: child, parent,
222
222
  * packageContent, containerPackage, usedIn, uses, requires, etc.
223
223
  */
224
- relationtype?: string;
224
+ relationtype?: 'triggers' | 'is-replaced-by';
225
225
 
226
226
  /**
227
227
  * The reference to the related item.
@@ -143,7 +143,7 @@ export interface ChargeItem {
143
143
  /**
144
144
  * The current state of the ChargeItem.
145
145
  */
146
- status?: string;
146
+ status?: 'planned' | 'billable' | 'not-billable' | 'aborted' | 'billed' | 'entered-in-error' | 'unknown';
147
147
 
148
148
  /**
149
149
  * ChargeItems can be grouped to larger ChargeItems covering the whole
@@ -164,7 +164,7 @@ export interface ChargeItemDefinition {
164
164
  /**
165
165
  * The current state of the ChargeItemDefinition.
166
166
  */
167
- status?: string;
167
+ status?: 'draft' | 'active' | 'retired' | 'unknown';
168
168
 
169
169
  /**
170
170
  * A Boolean value to indicate that this charge item definition is
@@ -439,7 +439,7 @@ export interface ChargeItemDefinitionPropertyGroupPriceComponent {
439
439
  /**
440
440
  * This code identifies the type of the component.
441
441
  */
442
- type?: string;
442
+ type?: 'base' | 'surcharge' | 'deduction' | 'discount' | 'tax' | 'informational';
443
443
 
444
444
  /**
445
445
  * A code that identifies the component. Codes may be used to
package/dist/Claim.d.ts CHANGED
@@ -123,7 +123,7 @@ export interface Claim {
123
123
  /**
124
124
  * The status of the resource instance.
125
125
  */
126
- status?: string;
126
+ status?: 'active' | 'cancelled' | 'draft' | 'entered-in-error';
127
127
 
128
128
  /**
129
129
  * The category of claim, e.g. oral, pharmacy, vision, institutional,
@@ -145,7 +145,7 @@ export interface Claim {
145
145
  * or requesting the non-binding adjudication of the listed products and
146
146
  * services which could be provided in the future.
147
147
  */
148
- use?: string;
148
+ use?: 'claim' | 'preauthorization' | 'predetermination';
149
149
 
150
150
  /**
151
151
  * The party to whom the professional services and/or products have been
@@ -114,7 +114,7 @@ export interface ClaimResponse {
114
114
  /**
115
115
  * The status of the resource instance.
116
116
  */
117
- status?: string;
117
+ status?: 'active' | 'cancelled' | 'draft' | 'entered-in-error';
118
118
 
119
119
  /**
120
120
  * A finer grained suite of claim type codes which may convey additional
@@ -137,7 +137,7 @@ export interface ClaimResponse {
137
137
  * or requesting the non-binding adjudication of the listed products and
138
138
  * services which could be provided in the future.
139
139
  */
140
- use?: string;
140
+ use?: 'claim' | 'preauthorization' | 'predetermination';
141
141
 
142
142
  /**
143
143
  * The party to whom the professional services and/or products have been
@@ -172,7 +172,7 @@ export interface ClaimResponse {
172
172
  * The outcome of the claim, predetermination, or preauthorization
173
173
  * processing.
174
174
  */
175
- outcome?: string;
175
+ outcome?: 'queued' | 'complete' | 'error' | 'partial';
176
176
 
177
177
  /**
178
178
  * A human readable description of the status of the adjudication.
@@ -1134,7 +1134,7 @@ export interface ClaimResponseProcessNote {
1134
1134
  /**
1135
1135
  * The business purpose of the note text.
1136
1136
  */
1137
- type?: string;
1137
+ type?: 'display' | 'print' | 'printoper';
1138
1138
 
1139
1139
  /**
1140
1140
  * The explanation or description associated with the processing.
@@ -5,6 +5,9 @@
5
5
 
6
6
  import { Meta } from './Meta';
7
7
 
8
+ /**
9
+ * Medplum client application for automated access.
10
+ */
8
11
  export interface ClientApplication {
9
12
 
10
13
  /**
@@ -125,7 +125,7 @@ export interface ClinicalImpression {
125
125
  /**
126
126
  * Identifies the workflow status of the assessment.
127
127
  */
128
- status?: string;
128
+ status?: 'in-progress' | 'completed' | 'entered-in-error';
129
129
 
130
130
  /**
131
131
  * Captures the reason for the current state of the ClinicalImpression.
@@ -143,7 +143,7 @@ export interface CodeSystem {
143
143
  * The date (and optionally time) when the code system resource was
144
144
  * created or revised.
145
145
  */
146
- status?: string;
146
+ status?: 'draft' | 'active' | 'retired' | 'unknown';
147
147
 
148
148
  /**
149
149
  * A Boolean value to indicate that this code system is authored for
@@ -222,7 +222,7 @@ export interface CodeSystem {
222
222
  * The meaning of the hierarchy of concepts as represented in this
223
223
  * resource.
224
224
  */
225
- hierarchyMeaning?: string;
225
+ hierarchyMeaning?: 'grouped-by' | 'is-a' | 'part-of' | 'classified-with';
226
226
 
227
227
  /**
228
228
  * The code system defines a compositional (post-coordination) grammar.
@@ -240,7 +240,7 @@ export interface CodeSystem {
240
240
  * The extent of the content of the code system (the concepts and codes
241
241
  * it defines) are represented in this resource instance.
242
242
  */
243
- content?: string;
243
+ content?: 'not-present' | 'example' | 'fragment' | 'complete' | 'supplement';
244
244
 
245
245
  /**
246
246
  * The canonical URL of the code system that this code system supplement
@@ -549,7 +549,7 @@ export interface CodeSystemFilter {
549
549
  /**
550
550
  * A list of operators that can be used with the filter.
551
551
  */
552
- operator?: string[];
552
+ operator?: ('=' | 'is-a' | 'descendent-of' | 'is-not-a' | 'regex' | 'in' | 'not-in' | 'generalizes' | 'exists')[];
553
553
 
554
554
  /**
555
555
  * A description of what the value for the filter should be.
@@ -623,5 +623,5 @@ export interface CodeSystemProperty {
623
623
  * code defined by the code system (e.g. a reference to another defined
624
624
  * concept).
625
625
  */
626
- type?: string;
626
+ type?: 'code' | 'Coding' | 'string' | 'integer' | 'boolean' | 'dateTime' | 'decimal';
627
627
  }