-
Notifications
You must be signed in to change notification settings - Fork 58
/
CodeSystems.swift
14278 lines (10110 loc) · 489 KB
/
CodeSystems.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//
// CodeSystems.swift
// SwiftFHIR
//
// Generated from FHIR 4.0.0-a53ec6ee1b on 2019-05-21.
// 2019, SMART Health IT.
//
/**
A list of the base types defined by this version of the FHIR specification - types that are defined, but for which only
specializations actually are created.
URL: http://hl7.org/fhir/abstract-types
*/
public enum AbstractType: String {
/// A place holder that means any kind of data type
case type = "Type"
/// A place holder that means any kind of resource
case any = "Any"
}
/**
Indicates whether the account is available to be used.
URL: http://hl7.org/fhir/account-status
ValueSet: http://hl7.org/fhir/ValueSet/account-status
*/
public enum AccountStatus: String {
/// This account is active and may be used.
case active = "active"
/// This account is inactive and should not be used to track financial information.
case inactive = "inactive"
/// This instance should not have been part of this patient's medical record.
case enteredInError = "entered-in-error"
/// This account is on hold.
case onHold = "on-hold"
/// The account status is unknown.
case unknown = "unknown"
}
/**
Defines behavior for an action or a group for how many times that item may be repeated.
URL: http://hl7.org/fhir/action-cardinality-behavior
ValueSet: http://hl7.org/fhir/ValueSet/action-cardinality-behavior
*/
public enum ActionCardinalityBehavior: String {
/// The action may only be selected one time.
case single = "single"
/// The action may be selected multiple times.
case multiple = "multiple"
}
/**
Defines the kinds of conditions that can appear on actions.
URL: http://hl7.org/fhir/action-condition-kind
ValueSet: http://hl7.org/fhir/ValueSet/action-condition-kind
*/
public enum ActionConditionKind: String {
/// The condition describes whether or not a given action is applicable.
case applicability = "applicability"
/// The condition is a starting condition for the action.
case start = "start"
/// The condition is a stop, or exit condition for the action.
case stop = "stop"
}
/**
Defines organization behavior of a group.
URL: http://hl7.org/fhir/action-grouping-behavior
ValueSet: http://hl7.org/fhir/ValueSet/action-grouping-behavior
*/
public enum ActionGroupingBehavior: String {
/// Any group marked with this behavior should be displayed as a visual group to the end user.
case visualGroup = "visual-group"
/// A group with this behavior logically groups its sub-elements, and may be shown as a visual group to the end
/// user, but it is not required to do so.
case logicalGroup = "logical-group"
/// A group of related alternative actions is a sentence group if the target referenced by the action is the same in
/// all the actions and each action simply constitutes a different variation on how to specify the details for the
/// target. For example, two actions that could be in a SentenceGroup are "aspirin, 500 mg, 2 times per day" and
/// "aspirin, 300 mg, 3 times per day". In both cases, aspirin is the target referenced by the action, and the two
/// actions represent different options for how aspirin might be ordered for the patient. Note that a SentenceGroup
/// would almost always have an associated selection behavior of "AtMostOne", unless it's a required action, in
/// which case, it would be "ExactlyOne".
case sentenceGroup = "sentence-group"
}
/**
The type of participant for the action.
URL: http://hl7.org/fhir/action-participant-type
ValueSet: http://hl7.org/fhir/ValueSet/action-participant-type
*/
public enum ActionParticipantType: String {
/// The participant is the patient under evaluation.
case patient = "patient"
/// The participant is a practitioner involved in the patient's care.
case practitioner = "practitioner"
/// The participant is a person related to the patient.
case relatedPerson = "related-person"
/// The participant is a system or device used in the care of the patient.
case device = "device"
}
/**
Defines selection frequency behavior for an action or group.
URL: http://hl7.org/fhir/action-precheck-behavior
ValueSet: http://hl7.org/fhir/ValueSet/action-precheck-behavior
*/
public enum ActionPrecheckBehavior: String {
/// An action with this behavior is one of the most frequent action that is, or should be, included by an end user,
/// for the particular context in which the action occurs. The system displaying the action to the end user should
/// consider "pre-checking" such an action as a convenience for the user.
case yes = "yes"
/// An action with this behavior is one of the less frequent actions included by the end user, for the particular
/// context in which the action occurs. The system displaying the actions to the end user would typically not "pre-
/// check" such an action.
case no = "no"
}
/**
Defines the types of relationships between actions.
URL: http://hl7.org/fhir/action-relationship-type
ValueSet: http://hl7.org/fhir/ValueSet/action-relationship-type
*/
public enum ActionRelationshipType: String {
/// The action must be performed before the start of the related action.
case beforeStart = "before-start"
/// The action must be performed before the related action.
case before = "before"
/// The action must be performed before the end of the related action.
case beforeEnd = "before-end"
/// The action must be performed concurrent with the start of the related action.
case concurrentWithStart = "concurrent-with-start"
/// The action must be performed concurrent with the related action.
case concurrent = "concurrent"
/// The action must be performed concurrent with the end of the related action.
case concurrentWithEnd = "concurrent-with-end"
/// The action must be performed after the start of the related action.
case afterStart = "after-start"
/// The action must be performed after the related action.
case after = "after"
/// The action must be performed after the end of the related action.
case afterEnd = "after-end"
}
/**
Defines expectations around whether an action or action group is required.
URL: http://hl7.org/fhir/action-required-behavior
ValueSet: http://hl7.org/fhir/ValueSet/action-required-behavior
*/
public enum ActionRequiredBehavior: String {
/// An action with this behavior must be included in the actions processed by the end user; the end user SHALL NOT
/// choose not to include this action.
case must = "must"
/// An action with this behavior may be included in the set of actions processed by the end user.
case could = "could"
/// An action with this behavior must be included in the set of actions processed by the end user, unless the end
/// user provides documentation as to why the action was not included.
case mustUnlessDocumented = "must-unless-documented"
}
/**
Defines selection behavior of a group.
URL: http://hl7.org/fhir/action-selection-behavior
ValueSet: http://hl7.org/fhir/ValueSet/action-selection-behavior
*/
public enum ActionSelectionBehavior: String {
/// Any number of the actions in the group may be chosen, from zero to all.
case any = "any"
/// All the actions in the group must be selected as a single unit.
case all = "all"
/// All the actions in the group are meant to be chosen as a single unit: either all must be selected by the end
/// user, or none may be selected.
case allOrNone = "all-or-none"
/// The end user must choose one and only one of the selectable actions in the group. The user SHALL NOT choose none
/// of the actions in the group.
case exactlyOne = "exactly-one"
/// The end user may choose zero or at most one of the actions in the group.
case atMostOne = "at-most-one"
/// The end user must choose a minimum of one, and as many additional as desired.
case oneOrMore = "one-or-more"
}
/**
The type of action to be performed.
URL: http://terminology.hl7.org/CodeSystem/action-type
ValueSet: http://hl7.org/fhir/ValueSet/action-type
*/
public enum ActionType: String {
/// The action is to create a new resource.
case create = "create"
/// The action is to update an existing resource.
case update = "update"
/// The action is to remove an existing resource.
case remove = "remove"
/// The action is to fire a specific event.
case fireEvent = "fire-event"
}
/**
High-level categorization of the type of activity.
URL: http://terminology.hl7.org/CodeSystem/activity-definition-category
ValueSet: http://hl7.org/fhir/ValueSet/activity-definition-category
*/
public enum ActivityDefinitionCategory: String {
/// The activity is intended to provide or is related to treatment of the patient.
case treatment = "treatment"
/// The activity is intended to provide or is related to education of the patient.
case education = "education"
/// The activity is intended to perform or is related to assessment of the patient.
case assessment = "assessment"
}
/**
This value set includes sample additional material type codes.
URL: http://hl7.org/fhir/additionalmaterials
ValueSet: http://hl7.org/fhir/ValueSet/additionalmaterials
*/
public enum AdditionalMaterialCodes: String {
/// XRay
case xray = "xray"
/// Image
case image = "image"
/// Email
case email = "email"
/// Model
case model = "model"
/// Document
case document = "document"
/// Other
case other = "other"
}
/**
The type of an address (physical / postal).
URL: http://hl7.org/fhir/address-type
ValueSet: http://hl7.org/fhir/ValueSet/address-type
*/
public enum AddressType: String {
/// Mailing addresses - PO Boxes and care-of addresses.
case postal = "postal"
/// A physical address that can be visited.
case physical = "physical"
/// An address that is both physical and postal.
case both = "both"
}
/**
The use of an address.
URL: http://hl7.org/fhir/address-use
ValueSet: http://hl7.org/fhir/ValueSet/address-use
*/
public enum AddressUse: String {
/// A communication address at a home.
case home = "home"
/// An office address. First choice for business related contacts during business hours.
case work = "work"
/// A temporary address. The period can provide more detailed information.
case temp = "temp"
/// This address is no longer in use (or was never correct but retained for records).
case old = "old"
/// An address to be used to send bills, invoices, receipts etc.
case billing = "billing"
}
/**
This value set includes smattering of Adjudication Reason codes.
URL: http://terminology.hl7.org/CodeSystem/adjudication-reason
ValueSet: http://hl7.org/fhir/ValueSet/adjudication-reason
*/
public enum AdjudicationReasonCodes: String {
/// Not covered
case ar001 = "ar001"
/// Plan Limit Reached
case ar002 = "ar002"
}
/**
This value set includes a smattering of Adjudication Value codes which includes codes to indicate the amounts eligible
under the plan, the amount of benefit, copays etc.
URL: http://terminology.hl7.org/CodeSystem/adjudication
ValueSet: http://hl7.org/fhir/ValueSet/adjudication
*/
public enum AdjudicationValueCodes: String {
/// The total submitted amount for the claim or group or line item.
case submitted = "submitted"
/// Patient Co-Payment
case copay = "copay"
/// Amount of the change which is considered for adjudication.
case eligible = "eligible"
/// Amount deducted from the eligible amount prior to adjudication.
case deductible = "deductible"
/// The amount of deductible which could not allocated to other line items.
case unallocdeduct = "unallocdeduct"
/// Eligible Percentage.
case eligpercent = "eligpercent"
/// The amount of tax.
case tax = "tax"
/// Amount payable under the coverage
case benefit = "benefit"
}
/**
The gender of a person used for administrative purposes.
URL: http://hl7.org/fhir/administrative-gender
ValueSet: http://hl7.org/fhir/ValueSet/administrative-gender
*/
public enum AdministrativeGender: String {
/// Male.
case male = "male"
/// Female.
case female = "female"
/// Other.
case other = "other"
/// Unknown.
case unknown = "unknown"
}
/**
This value set defines a set of codes that can be used to indicate from where the patient came in.
URL: http://terminology.hl7.org/CodeSystem/admit-source
ValueSet: http://hl7.org/fhir/ValueSet/encounter-admit-source
*/
public enum AdmitSource: String {
/// The Patient has been transferred from another hospital for this encounter.
case hospTrans = "hosp-trans"
/// The patient has been transferred from the emergency department within the hospital. This is typically used in
/// the transition to an inpatient encounter
case emd = "emd"
/// The patient has been transferred from an outpatient department within the hospital.
case outp = "outp"
/// The patient is a newborn and the encounter will track the baby related activities (as opposed to the Mothers
/// encounter - that may be associated using the newborn encounters partof property)
case born = "born"
/// The patient has been admitted due to a referred from a General Practitioner.
case gp = "gp"
/// The patient has been admitted due to a referred from a Specialist (as opposed to a General Practitioner).
case mp = "mp"
/// The patient has been transferred from a nursing home.
case nursing = "nursing"
/// The patient has been transferred from a psychiatric facility.
case psych = "psych"
/// The patient has been transferred from a rehabilitation facility or clinic.
case rehab = "rehab"
/// The patient has been admitted from a source otherwise not specified here.
case other = "other"
}
/**
Overall nature of the adverse event, e.g. real or potential.
URL: http://hl7.org/fhir/adverse-event-actuality
ValueSet: http://hl7.org/fhir/ValueSet/adverse-event-actuality
*/
public enum AdverseEventActuality: String {
/// The adverse event actually happened regardless of whether anyone was affected or harmed.
case actual = "actual"
/// A potential adverse event.
case potential = "potential"
}
/**
Overall categorization of the event, e.g. product-related or situational.
URL: http://terminology.hl7.org/CodeSystem/adverse-event-category
ValueSet: http://hl7.org/fhir/ValueSet/adverse-event-category
*/
public enum AdverseEventCategory: String {
/// The adverse event pertains to a product problem.
case productProblem = "product-problem"
/// The adverse event pertains to product quality.
case productQuality = "product-quality"
/// The adverse event pertains to a product use error.
case productUseError = "product-use-error"
/// The adverse event pertains to a wrong dose.
case wrongDose = "wrong-dose"
/// The adverse event pertains to incorrect perscribing information.
case incorrectPrescribingInformation = "incorrect-prescribing-information"
/// The adverse event pertains to a wrong technique.
case wrongTechnique = "wrong-technique"
/// The adverse event pertains to a wrong route of administration.
case wrongRouteOfAdministration = "wrong-route-of-administration"
/// The adverse event pertains to a wrong rate.
case wrongRate = "wrong-rate"
/// The adverse event pertains to a wrong duration.
case wrongDuration = "wrong-duration"
/// The adverse event pertains to a wrong time.
case wrongTime = "wrong-time"
/// The adverse event pertains to an expired drug.
case expiredDrug = "expired-drug"
/// The adverse event pertains to a medical device use error.
case medicalDeviceUseError = "medical-device-use-error"
/// The adverse event pertains to a problem with a different manufacturer of the same medication.
case problemDifferentManufacturer = "problem-different-manufacturer"
/// The adverse event pertains to an unsafe physical environment.
case unsafePhysicalEnvironment = "unsafe-physical-environment"
}
/**
Codes for the assessment of whether the entity caused the event.
URL: http://terminology.hl7.org/CodeSystem/adverse-event-causality-assess
ValueSet: http://hl7.org/fhir/ValueSet/adverse-event-causality-assess
*/
public enum AdverseEventCausalityAssessment: String {
/// i) Event or laboratory test abnormality, with plausible time relationship to drug intake; ii) Cannot be
/// explained by disease or other drugs; iii) Response to withdrawal plausible (pharmacologically, pathologically);
/// iv) Event definitive pharmacologically or phenomenologically (i.e. an objective and specific medical disorder or
/// a recognized pharmacological phenomenon); or v) Re-challenge satisfactory, if necessary.
case certain = "Certain"
/// i) Event or laboratory test abnormality, with reasonable time relationship to drug intake; ii) Unlikely to be
/// attributed to disease or other drugs; iii) Response to withdrawal clinically reasonable; or iv) Re-challenge not
/// required.
case probablyLikely = "Probably-Likely"
/// i) Event or laboratory test abnormality, with reasonable time relationship to drug intake; ii) Could also be
/// explained by disease or other drugs; or iii) Information on drug withdrawal may be lacking or unclear.
case possible = "Possible"
/// i) Event or laboratory test abnormality, with a time to drug intake that makes a relationship improbable (but
/// not impossible); or ii) Disease or other drugs provide plausible explanations.
case unlikely = "Unlikely"
/// i) Event or laboratory test abnormality; ii) More data for proper assessment needed; or iii) Additional data
/// under examination.
case conditionalClassified = "Conditional-Classified"
/// i) Report suggesting an adverse reaction; ii) Cannot be judged because information is insufficient or
/// contradictory; or iii) Data cannot be supplemented or verified.
case unassessableUnclassifiable = "Unassessable-Unclassifiable"
}
/**
TODO.
URL: http://terminology.hl7.org/CodeSystem/adverse-event-causality-method
ValueSet: http://hl7.org/fhir/ValueSet/adverse-event-causality-method
*/
public enum AdverseEventCausalityMethod: String {
/// probabilityScale
case probabilityScale = "ProbabilityScale"
/// bayesian
case bayesian = "Bayesian"
/// checklist
case checklist = "Checklist"
}
/**
TODO (and should this be required?).
URL: http://terminology.hl7.org/CodeSystem/adverse-event-outcome
ValueSet: http://hl7.org/fhir/ValueSet/adverse-event-outcome
*/
public enum AdverseEventOutcome: String {
/// resolved
case resolved = "resolved"
/// recovering
case recovering = "recovering"
/// ongoing
case ongoing = "ongoing"
/// resolvedWithSequelae
case resolvedWithSequelae = "resolvedWithSequelae"
/// fatal
case fatal = "fatal"
/// unknown
case unknown = "unknown"
}
/**
Overall seriousness of this event for the patient.
URL: http://terminology.hl7.org/CodeSystem/adverse-event-seriousness
ValueSet: http://hl7.org/fhir/ValueSet/adverse-event-seriousness
*/
public enum AdverseEventSeriousness: String {
/// Non-serious.
case nonSerious = "Non-serious"
/// Serious.
case serious = "Serious"
/// Results in death.
case seriousResultsInDeath = "SeriousResultsInDeath"
/// Is Life-threatening.
case seriousIsLifeThreatening = "SeriousIsLifeThreatening"
/// Requires inpatient hospitalization or causes prolongation of existing hospitalization.
case seriousResultsInHospitalization = "SeriousResultsInHospitalization"
/// Results in persistent or significant disability/incapacity.
case seriousResultsInDisability = "SeriousResultsInDisability"
/// Is a congenital anomaly/birth defect.
case seriousIsBirthDefect = "SeriousIsBirthDefect"
/// Requires intervention to prevent permanent impairment or damage (i.e., an important medical event that requires
/// medical judgement).
case seriousRequiresPreventImpairment = "SeriousRequiresPreventImpairment"
}
/**
The severity of the adverse event itself, in direct relation to the subject.
URL: http://terminology.hl7.org/CodeSystem/adverse-event-severity
ValueSet: http://hl7.org/fhir/ValueSet/adverse-event-severity
*/
public enum AdverseEventSeverity: String {
/// mild
case mild = "mild"
/// moderate
case moderate = "moderate"
/// severe
case severe = "severe"
}
/**
How resource references can be aggregated.
URL: http://hl7.org/fhir/resource-aggregation-mode
ValueSet: http://hl7.org/fhir/ValueSet/resource-aggregation-mode
*/
public enum AggregationMode: String {
/// The reference is a local reference to a contained resource.
case contained = "contained"
/// The reference to a resource that has to be resolved externally to the resource that includes the reference.
case referenced = "referenced"
/// The resource the reference points to will be found in the same bundle as the resource that includes the
/// reference.
case bundled = "bundled"
}
/**
Category of an identified substance associated with allergies or intolerances.
URL: http://hl7.org/fhir/allergy-intolerance-category
ValueSet: http://hl7.org/fhir/ValueSet/allergy-intolerance-category
*/
public enum AllergyIntoleranceCategory: String {
/// Any substance consumed to provide nutritional support for the body.
case food = "food"
/// Substances administered to achieve a physiological effect.
case medication = "medication"
/// Any substances that are encountered in the environment, including any substance not already classified as food,
/// medication, or biologic.
case environment = "environment"
/// A preparation that is synthesized from living organisms or their products, especially a human or animal protein,
/// such as a hormone or antitoxin, that is used as a diagnostic, preventive, or therapeutic agent. Examples of
/// biologic medications include: vaccines; allergenic extracts, which are used for both diagnosis and treatment
/// (for example, allergy shots); gene therapies; cellular therapies. There are other biologic products, such as
/// tissues, which are not typically associated with allergies.
case biologic = "biologic"
}
/**
Statement about the degree of clinical certainty that a specific substance was the cause of the manifestation in a
reaction event.
URL: http://terminology.hl7.org/CodeSystem/reaction-event-certainty
ValueSet: http://hl7.org/fhir/ValueSet/reaction-event-certainty
*/
public enum AllergyIntoleranceCertainty: String {
/// There is a low level of clinical certainty that the reaction was caused by the identified substance.
case unlikely = "unlikely"
/// There is a high level of clinical certainty that the reaction was caused by the identified substance.
case likely = "likely"
/// There is a very high level of clinical certainty that the reaction was due to the identified substance, which
/// may include clinical evidence by testing or rechallenge.
case confirmed = "confirmed"
/// The clinical certainty that the reaction was caused by the identified substance is unknown. It is an explicit
/// assertion that certainty is not known.
case unknown = "unknown"
}
/**
Preferred value set for AllergyIntolerance Clinical Status.
URL: http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical
ValueSet: http://hl7.org/fhir/ValueSet/allergyintolerance-clinical
*/
public enum AllergyIntoleranceClinicalStatusCodes: String {
/// The subject is currently experiencing, or is at risk of, a reaction to the identified substance.
case active = "active"
/// The subject is no longer at risk of a reaction to the identified substance.
case inactive = "inactive"
/// A reaction to the identified substance has been clinically reassessed by testing or re-exposure and is
/// considered no longer to be present. Re-exposure could be accidental, unplanned, or outside of any clinical
/// setting.
case resolved = "resolved"
}
/**
Estimate of the potential clinical harm, or seriousness, of a reaction to an identified substance.
URL: http://hl7.org/fhir/allergy-intolerance-criticality
ValueSet: http://hl7.org/fhir/ValueSet/allergy-intolerance-criticality
*/
public enum AllergyIntoleranceCriticality: String {
/// Worst case result of a future exposure is not assessed to be life-threatening or having high potential for organ
/// system failure.
case low = "low"
/// Worst case result of a future exposure is assessed to be life-threatening or having high potential for organ
/// system failure.
case high = "high"
/// Unable to assess the worst case result of a future exposure.
case unableToAssess = "unable-to-assess"
}
/**
Clinical assessment of the severity of a reaction event as a whole, potentially considering multiple different
manifestations.
URL: http://hl7.org/fhir/reaction-event-severity
ValueSet: http://hl7.org/fhir/ValueSet/reaction-event-severity
*/
public enum AllergyIntoleranceSeverity: String {
/// Causes mild physiological effects.
case mild = "mild"
/// Causes moderate physiological effects.
case moderate = "moderate"
/// Causes severe physiological effects.
case severe = "severe"
}
/**
The risk of an adverse reaction (allergy or intolerance) for this patient upon exposure to the substance (including
pharmaceutical products).
URL: http://terminology.hl7.org/CodeSystem/allerg-intol-substance-exp-risk
ValueSet: http://hl7.org/fhir/ValueSet/allerg-intol-substance-exp-risk
*/
public enum AllergyIntoleranceSubstanceExposureRisk: String {
/// Known risk of allergy or intolerance reaction upon exposure to the specified substance.
case knownReactionRisk = "known-reaction-risk"
/// No known risk of allergy or intolerance reaction upon exposure to the specified substance.
case noKnownReactionRisk = "no-known-reaction-risk"
}
/**
Identification of the underlying physiological mechanism for a Reaction Risk.
URL: http://hl7.org/fhir/allergy-intolerance-type
ValueSet: http://hl7.org/fhir/ValueSet/allergy-intolerance-type
*/
public enum AllergyIntoleranceType: String {
/// A propensity for hypersensitive reaction(s) to a substance. These reactions are most typically type I
/// hypersensitivity, plus other "allergy-like" reactions, including pseudoallergy.
case allergy = "allergy"
/// A propensity for adverse reactions to a substance that is not judged to be allergic or "allergy-like". These
/// reactions are typically (but not necessarily) non-immune. They are to some degree idiosyncratic and/or patient-
/// specific (i.e. are not a reaction that is expected to occur with most or all patients given similar
/// circumstances).
case intolerance = "intolerance"
}
/**
Preferred value set for AllergyIntolerance Verification Status.
URL: http://terminology.hl7.org/CodeSystem/allergyintolerance-verification
ValueSet: http://hl7.org/fhir/ValueSet/allergyintolerance-verification
*/
public enum AllergyIntoleranceVerificationStatusCodes: String {
/// A low level of certainty about the propensity for a reaction to the identified substance.
case unconfirmed = "unconfirmed"
/// A high level of certainty about the propensity for a reaction to the identified substance, which may include
/// clinical evidence by testing or rechallenge.
case confirmed = "confirmed"
/// A propensity for a reaction to the identified substance has been disputed or disproven with a sufficient level
/// of clinical certainty to justify invalidating the assertion. This might or might not include testing or
/// rechallenge.
case refuted = "refuted"
/// The statement was entered in error and is not valid.
case enteredInError = "entered-in-error"
}
/**
This example value set defines a set of codes that can be used to indicate species of animal patients.
URL: http://hl7.org/fhir/animal-species
*/
public enum AnimalSpecies: String {
/// Canis lupus familiaris
case canislf = "canislf"
/// Ovis aries
case ovisa = "ovisa"
/// Serinus canaria domestica
case serinuscd = "serinuscd"
}
/**
The free/busy status of an appointment.
URL: http://hl7.org/fhir/appointmentstatus
ValueSet: http://hl7.org/fhir/ValueSet/appointmentstatus
*/
public enum AppointmentStatus: String {
/// None of the participant(s) have finalized their acceptance of the appointment request, and the start/end time
/// might not be set yet.
case proposed = "proposed"
/// Some or all of the participant(s) have not finalized their acceptance of the appointment request.
case pending = "pending"
/// All participant(s) have been considered and the appointment is confirmed to go ahead at the date/times
/// specified.
case booked = "booked"
/// The patient/patients has/have arrived and is/are waiting to be seen.
case arrived = "arrived"
/// The planning stages of the appointment are now complete, the encounter resource will exist and will track
/// further status changes. Note that an encounter may exist before the appointment status is fulfilled for many
/// reasons.
case fulfilled = "fulfilled"
/// The appointment has been cancelled.
case cancelled = "cancelled"
/// Some or all of the participant(s) have not/did not appear for the appointment (usually the patient).
case noshow = "noshow"
/// This instance should not have been part of this patient's medical record.
case enteredInError = "entered-in-error"
/// When checked in, all pre-encounter administrative work is complete, and the encounter may begin. (where multiple
/// patients are involved, they are all present).
case checkedIn = "checked-in"
/// The appointment has been placed on a waitlist, to be scheduled/confirmed in the future when a slot/service is
/// available.
/// A specific time might or might not be pre-allocated.
case waitlist = "waitlist"
}
/**
The type of direction to use for assertion.
URL: http://hl7.org/fhir/assert-direction-codes
ValueSet: http://hl7.org/fhir/ValueSet/assert-direction-codes
*/
public enum AssertionDirectionType: String {
/// The assertion is evaluated on the response. This is the default value.
case response = "response"
/// The assertion is evaluated on the request.
case request = "request"
}
/**
The type of operator to use for assertion.
URL: http://hl7.org/fhir/assert-operator-codes
ValueSet: http://hl7.org/fhir/ValueSet/assert-operator-codes
*/
public enum AssertionOperatorType: String {
/// Default value. Equals comparison.
case equals = "equals"
/// Not equals comparison.
case notEquals = "notEquals"
/// Compare value within a known set of values.
case `in` = "in"
/// Compare value not within a known set of values.
case notIn = "notIn"
/// Compare value to be greater than a known value.
case greaterThan = "greaterThan"
/// Compare value to be less than a known value.
case lessThan = "lessThan"
/// Compare value is empty.
case empty = "empty"
/// Compare value is not empty.
case notEmpty = "notEmpty"
/// Compare value string contains a known value.
case contains = "contains"
/// Compare value string does not contain a known value.
case notContains = "notContains"
/// Evaluate the FHIRPath expression as a boolean condition.
case eval = "eval"
}
/**
The type of response code to use for assertion.
URL: http://hl7.org/fhir/assert-response-code-types
ValueSet: http://hl7.org/fhir/ValueSet/assert-response-code-types