1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package ca.uhn.fhir.model.dstu.resource;
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40 import java.util.Date;
41 import java.util.List;
42
43 import ca.uhn.fhir.model.api.BaseIdentifiableElement;
44 import ca.uhn.fhir.model.api.BaseResource;
45 import ca.uhn.fhir.model.api.IDatatype;
46 import ca.uhn.fhir.model.api.IElement;
47 import ca.uhn.fhir.model.api.IResource;
48 import ca.uhn.fhir.model.api.IResourceBlock;
49 import ca.uhn.fhir.model.api.Include;
50 import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
51 import ca.uhn.fhir.model.api.annotation.Block;
52 import ca.uhn.fhir.model.api.annotation.Child;
53 import ca.uhn.fhir.model.api.annotation.Description;
54 import ca.uhn.fhir.model.api.annotation.ResourceDef;
55 import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
56 import ca.uhn.fhir.model.dstu.composite.CodingDt;
57 import ca.uhn.fhir.model.dstu.composite.ContactDt;
58 import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum;
59 import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum;
60 import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum;
61 import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum;
62 import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum;
63 import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum;
64 import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum;
65 import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum;
66 import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum;
67 import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum;
68 import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum;
69 import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum;
70 import ca.uhn.fhir.model.primitive.BooleanDt;
71 import ca.uhn.fhir.model.primitive.BoundCodeDt;
72 import ca.uhn.fhir.model.primitive.CodeDt;
73 import ca.uhn.fhir.model.primitive.DateTimeDt;
74 import ca.uhn.fhir.model.primitive.IdDt;
75 import ca.uhn.fhir.model.primitive.IntegerDt;
76 import ca.uhn.fhir.model.primitive.StringDt;
77 import ca.uhn.fhir.model.primitive.UriDt;
78 import ca.uhn.fhir.rest.gclient.DateClientParam;
79 import ca.uhn.fhir.rest.gclient.ReferenceClientParam;
80 import ca.uhn.fhir.rest.gclient.StringClientParam;
81 import ca.uhn.fhir.rest.gclient.TokenClientParam;
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104 @ResourceDef(name="Profile", profile="http://hl7.org/fhir/profiles/Profile", id="profile")
105 public class Profile extends BaseResource implements IResource {
106
107
108
109
110
111
112
113
114
115 @SearchParamDefinition(name="identifier", path="Profile.identifier", description="The identifier of the profile", type="token" )
116 public static final String SP_IDENTIFIER = "identifier";
117
118
119
120
121
122
123
124
125
126 public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER);
127
128
129
130
131
132
133
134
135
136 @SearchParamDefinition(name="version", path="Profile.version", description="The version identifier of the profile", type="token" )
137 public static final String SP_VERSION = "version";
138
139
140
141
142
143
144
145
146
147 public static final TokenClientParam VERSION = new TokenClientParam(SP_VERSION);
148
149
150
151
152
153
154
155
156
157 @SearchParamDefinition(name="name", path="Profile.name", description="Name of the profile", type="string" )
158 public static final String SP_NAME = "name";
159
160
161
162
163
164
165
166
167
168 public static final StringClientParam NAME = new StringClientParam(SP_NAME);
169
170
171
172
173
174
175
176
177
178 @SearchParamDefinition(name="publisher", path="Profile.publisher", description="Name of the publisher of the profile", type="string" )
179 public static final String SP_PUBLISHER = "publisher";
180
181
182
183
184
185
186
187
188
189 public static final StringClientParam PUBLISHER = new StringClientParam(SP_PUBLISHER);
190
191
192
193
194
195
196
197
198
199 @SearchParamDefinition(name="description", path="Profile.description", description="Text search in the description of the profile", type="string" )
200 public static final String SP_DESCRIPTION = "description";
201
202
203
204
205
206
207
208
209
210 public static final StringClientParam DESCRIPTION = new StringClientParam(SP_DESCRIPTION);
211
212
213
214
215
216
217
218
219
220 @SearchParamDefinition(name="status", path="Profile.status", description="The current status of the profile", type="token" )
221 public static final String SP_STATUS = "status";
222
223
224
225
226
227
228
229
230
231 public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS);
232
233
234
235
236
237
238
239
240
241 @SearchParamDefinition(name="date", path="Profile.date", description="The profile publication date", type="date" )
242 public static final String SP_DATE = "date";
243
244
245
246
247
248
249
250
251
252 public static final DateClientParam DATE = new DateClientParam(SP_DATE);
253
254
255
256
257
258
259
260
261
262 @SearchParamDefinition(name="code", path="Profile.code", description="A code for the profile in the format uri::code (server may choose to do subsumption)", type="token" )
263 public static final String SP_CODE = "code";
264
265
266
267
268
269
270
271
272
273 public static final TokenClientParam CODE = new TokenClientParam(SP_CODE);
274
275
276
277
278
279
280
281
282
283 @SearchParamDefinition(name="extension", path="Profile.extensionDefn.code", description="An extension code (use or definition)", type="token" )
284 public static final String SP_EXTENSION = "extension";
285
286
287
288
289
290
291
292
293
294 public static final TokenClientParam EXTENSION = new TokenClientParam(SP_EXTENSION);
295
296
297
298
299
300
301
302
303
304 @SearchParamDefinition(name="valueset", path="Profile.structure.element.definition.binding.reference[x]", description="A vocabulary binding code", type="reference" )
305 public static final String SP_VALUESET = "valueset";
306
307
308
309
310
311
312
313
314
315 public static final ReferenceClientParam VALUESET = new ReferenceClientParam(SP_VALUESET);
316
317
318
319
320
321 public static final Include INCLUDE_STRUCTURE_ELEMENT_DEFINITION_BINDING_REFERENCE = new Include("Profile.structure.element.definition.binding.reference[x]");
322
323
324
325
326
327
328
329
330
331 @SearchParamDefinition(name="type", path="Profile.structure.type", description="Type of resource that is constrained in the profile", type="token" )
332 public static final String SP_TYPE = "type";
333
334
335
336
337
338
339
340
341
342 public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE);
343
344
345 @Child(name="identifier", type=StringDt.class, order=0, min=0, max=1)
346 @Description(
347 shortDefinition="Logical id to reference this profile",
348 formalDefinition="The identifier that is used to identify this profile when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI)"
349 )
350 private StringDt myIdentifier;
351
352 @Child(name="version", type=StringDt.class, order=1, min=0, max=1)
353 @Description(
354 shortDefinition="Logical id for this version of the profile",
355 formalDefinition="The identifier that is used to identify this version of the profile when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp"
356 )
357 private StringDt myVersion;
358
359 @Child(name="name", type=StringDt.class, order=2, min=1, max=1)
360 @Description(
361 shortDefinition="Informal name for this profile",
362 formalDefinition="A free text natural language name identifying the Profile"
363 )
364 private StringDt myName;
365
366 @Child(name="publisher", type=StringDt.class, order=3, min=0, max=1)
367 @Description(
368 shortDefinition="Name of the publisher (Organization or individual)",
369 formalDefinition="Details of the individual or organization who accepts responsibility for publishing the profile"
370 )
371 private StringDt myPublisher;
372
373 @Child(name="telecom", type=ContactDt.class, order=4, min=0, max=Child.MAX_UNLIMITED)
374 @Description(
375 shortDefinition="Contact information of the publisher",
376 formalDefinition="Contact details to assist a user in finding and communicating with the publisher"
377 )
378 private java.util.List<ContactDt> myTelecom;
379
380 @Child(name="description", type=StringDt.class, order=5, min=0, max=1)
381 @Description(
382 shortDefinition="Natural language description of the profile",
383 formalDefinition="A free text natural language description of the profile and its use"
384 )
385 private StringDt myDescription;
386
387 @Child(name="code", type=CodingDt.class, order=6, min=0, max=Child.MAX_UNLIMITED)
388 @Description(
389 shortDefinition="Assist with indexing and finding",
390 formalDefinition="A set of terms from external terminologies that may be used to assist with indexing and searching of templates."
391 )
392 private java.util.List<CodingDt> myCode;
393
394 @Child(name="status", type=CodeDt.class, order=7, min=1, max=1)
395 @Description(
396 shortDefinition="draft | active | retired",
397 formalDefinition="The status of the profile"
398 )
399 private BoundCodeDt<ResourceProfileStatusEnum> myStatus;
400
401 @Child(name="experimental", type=BooleanDt.class, order=8, min=0, max=1)
402 @Description(
403 shortDefinition="If for testing purposes, not real usage",
404 formalDefinition="This profile was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage"
405 )
406 private BooleanDt myExperimental;
407
408 @Child(name="date", type=DateTimeDt.class, order=9, min=0, max=1)
409 @Description(
410 shortDefinition="Date for this version of the profile",
411 formalDefinition="The date that this version of the profile was published"
412 )
413 private DateTimeDt myDate;
414
415 @Child(name="requirements", type=StringDt.class, order=10, min=0, max=1)
416 @Description(
417 shortDefinition="Scope and Usage this profile is for",
418 formalDefinition="The Scope and Usage that this profile was created to meet"
419 )
420 private StringDt myRequirements;
421
422 @Child(name="fhirVersion", type=IdDt.class, order=11, min=0, max=1)
423 @Description(
424 shortDefinition="FHIR Version this profile targets",
425 formalDefinition="The version of the FHIR specification on which this profile is based"
426 )
427 private IdDt myFhirVersion;
428
429 @Child(name="mapping", order=12, min=0, max=Child.MAX_UNLIMITED)
430 @Description(
431 shortDefinition="External specification that the content is mapped to",
432 formalDefinition="An external specification that the content is mapped to"
433 )
434 private java.util.List<Mapping> myMapping;
435
436 @Child(name="structure", order=13, min=0, max=Child.MAX_UNLIMITED)
437 @Description(
438 shortDefinition="A constraint on a resource or a data type",
439 formalDefinition="A constraint statement about what contents a resource or data type may have"
440 )
441 private java.util.List<Structure> myStructure;
442
443 @Child(name="extensionDefn", order=14, min=0, max=Child.MAX_UNLIMITED)
444 @Description(
445 shortDefinition="Definition of an extension",
446 formalDefinition="An extension defined as part of the profile"
447 )
448 private java.util.List<ExtensionDefn> myExtensionDefn;
449
450 @Child(name="query", order=15, min=0, max=Child.MAX_UNLIMITED)
451 @Description(
452 shortDefinition="Definition of a named query",
453 formalDefinition="Definition of a named query and its parameters and their meaning"
454 )
455 private java.util.List<Query> myQuery;
456
457
458 @Override
459 public boolean isEmpty() {
460 return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myVersion, myName, myPublisher, myTelecom, myDescription, myCode, myStatus, myExperimental, myDate, myRequirements, myFhirVersion, myMapping, myStructure, myExtensionDefn, myQuery);
461 }
462
463 @Override
464 public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
465 return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myVersion, myName, myPublisher, myTelecom, myDescription, myCode, myStatus, myExperimental, myDate, myRequirements, myFhirVersion, myMapping, myStructure, myExtensionDefn, myQuery);
466 }
467
468
469
470
471
472
473
474
475
476
477
478 public StringDt getIdentifier() {
479 if (myIdentifier == null) {
480 myIdentifier = new StringDt();
481 }
482 return myIdentifier;
483 }
484
485
486
487
488
489
490
491
492
493 public Profile setIdentifier(StringDt theValue) {
494 myIdentifier = theValue;
495 return this;
496 }
497
498
499
500
501
502
503
504
505
506 public Profile setIdentifier( String theString) {
507 myIdentifier = new StringDt(theString);
508 return this;
509 }
510
511
512
513
514
515
516
517
518
519
520
521
522 public StringDt getVersion() {
523 if (myVersion == null) {
524 myVersion = new StringDt();
525 }
526 return myVersion;
527 }
528
529
530
531
532
533
534
535
536
537 public Profile setVersion(StringDt theValue) {
538 myVersion = theValue;
539 return this;
540 }
541
542
543
544
545
546
547
548
549
550 public Profile setVersion( String theString) {
551 myVersion = new StringDt(theString);
552 return this;
553 }
554
555
556
557
558
559
560
561
562
563
564
565
566 public StringDt getName() {
567 if (myName == null) {
568 myName = new StringDt();
569 }
570 return myName;
571 }
572
573
574
575
576
577
578
579
580
581 public Profile setName(StringDt theValue) {
582 myName = theValue;
583 return this;
584 }
585
586
587
588
589
590
591
592
593
594 public Profile setName( String theString) {
595 myName = new StringDt(theString);
596 return this;
597 }
598
599
600
601
602
603
604
605
606
607
608
609
610 public StringDt getPublisher() {
611 if (myPublisher == null) {
612 myPublisher = new StringDt();
613 }
614 return myPublisher;
615 }
616
617
618
619
620
621
622
623
624
625 public Profile setPublisher(StringDt theValue) {
626 myPublisher = theValue;
627 return this;
628 }
629
630
631
632
633
634
635
636
637
638 public Profile setPublisher( String theString) {
639 myPublisher = new StringDt(theString);
640 return this;
641 }
642
643
644
645
646
647
648
649
650
651
652
653
654 public java.util.List<ContactDt> getTelecom() {
655 if (myTelecom == null) {
656 myTelecom = new java.util.ArrayList<ContactDt>();
657 }
658 return myTelecom;
659 }
660
661
662
663
664
665
666
667
668
669 public Profile setTelecom(java.util.List<ContactDt> theValue) {
670 myTelecom = theValue;
671 return this;
672 }
673
674
675
676
677
678
679
680
681
682 public ContactDt addTelecom() {
683 ContactDt newType = new ContactDt();
684 getTelecom().add(newType);
685 return newType;
686 }
687
688
689
690
691
692
693
694
695
696
697 public ContactDt getTelecomFirstRep() {
698 if (getTelecom().isEmpty()) {
699 return addTelecom();
700 }
701 return getTelecom().get(0);
702 }
703
704
705
706
707
708
709
710
711
712
713 public Profile addTelecom( ContactUseEnum theContactUse, String theValue) {
714 if (myTelecom == null) {
715 myTelecom = new java.util.ArrayList<ContactDt>();
716 }
717 myTelecom.add(new ContactDt(theContactUse, theValue));
718 return this;
719 }
720
721
722
723
724
725
726
727
728
729
730
731 public Profile addTelecom( String theValue) {
732 if (myTelecom == null) {
733 myTelecom = new java.util.ArrayList<ContactDt>();
734 }
735 myTelecom.add(new ContactDt(theValue));
736 return this;
737 }
738
739
740
741
742
743
744
745
746
747
748
749
750 public StringDt getDescription() {
751 if (myDescription == null) {
752 myDescription = new StringDt();
753 }
754 return myDescription;
755 }
756
757
758
759
760
761
762
763
764
765 public Profile setDescription(StringDt theValue) {
766 myDescription = theValue;
767 return this;
768 }
769
770
771
772
773
774
775
776
777
778 public Profile setDescription( String theString) {
779 myDescription = new StringDt(theString);
780 return this;
781 }
782
783
784
785
786
787
788
789
790
791
792
793
794 public java.util.List<CodingDt> getCode() {
795 if (myCode == null) {
796 myCode = new java.util.ArrayList<CodingDt>();
797 }
798 return myCode;
799 }
800
801
802
803
804
805
806
807
808
809 public Profile setCode(java.util.List<CodingDt> theValue) {
810 myCode = theValue;
811 return this;
812 }
813
814
815
816
817
818
819
820
821
822 public CodingDt addCode() {
823 CodingDt newType = new CodingDt();
824 getCode().add(newType);
825 return newType;
826 }
827
828
829
830
831
832
833
834
835
836
837 public CodingDt getCodeFirstRep() {
838 if (getCode().isEmpty()) {
839 return addCode();
840 }
841 return getCode().get(0);
842 }
843
844
845
846
847
848
849
850
851
852
853
854 public BoundCodeDt<ResourceProfileStatusEnum> getStatus() {
855 if (myStatus == null) {
856 myStatus = new BoundCodeDt<ResourceProfileStatusEnum>(ResourceProfileStatusEnum.VALUESET_BINDER);
857 }
858 return myStatus;
859 }
860
861
862
863
864
865
866
867
868
869 public Profile setStatus(BoundCodeDt<ResourceProfileStatusEnum> theValue) {
870 myStatus = theValue;
871 return this;
872 }
873
874
875
876
877
878
879
880
881
882 public Profile setStatus(ResourceProfileStatusEnum theValue) {
883 getStatus().setValueAsEnum(theValue);
884 return this;
885 }
886
887
888
889
890
891
892
893
894
895
896
897
898 public BooleanDt getExperimental() {
899 if (myExperimental == null) {
900 myExperimental = new BooleanDt();
901 }
902 return myExperimental;
903 }
904
905
906
907
908
909
910
911
912
913 public Profile setExperimental(BooleanDt theValue) {
914 myExperimental = theValue;
915 return this;
916 }
917
918
919
920
921
922
923
924
925
926 public Profile setExperimental( boolean theBoolean) {
927 myExperimental = new BooleanDt(theBoolean);
928 return this;
929 }
930
931
932
933
934
935
936
937
938
939
940
941
942 public DateTimeDt getDate() {
943 if (myDate == null) {
944 myDate = new DateTimeDt();
945 }
946 return myDate;
947 }
948
949
950
951
952
953
954
955
956
957 public Profile setDate(DateTimeDt theValue) {
958 myDate = theValue;
959 return this;
960 }
961
962
963
964
965
966
967
968
969
970 public Profile setDateWithSecondsPrecision( Date theDate) {
971 myDate = new DateTimeDt(theDate);
972 return this;
973 }
974
975
976
977
978
979
980
981
982
983 public Profile setDate( Date theDate, TemporalPrecisionEnum thePrecision) {
984 myDate = new DateTimeDt(theDate, thePrecision);
985 return this;
986 }
987
988
989
990
991
992
993
994
995
996
997
998
999 public StringDt getRequirements() {
1000 if (myRequirements == null) {
1001 myRequirements = new StringDt();
1002 }
1003 return myRequirements;
1004 }
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014 public Profile setRequirements(StringDt theValue) {
1015 myRequirements = theValue;
1016 return this;
1017 }
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027 public Profile setRequirements( String theString) {
1028 myRequirements = new StringDt(theString);
1029 return this;
1030 }
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043 public IdDt getFhirVersion() {
1044 if (myFhirVersion == null) {
1045 myFhirVersion = new IdDt();
1046 }
1047 return myFhirVersion;
1048 }
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058 public Profile setFhirVersion(IdDt theValue) {
1059 myFhirVersion = theValue;
1060 return this;
1061 }
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071 public Profile setFhirVersion( String theId) {
1072 myFhirVersion = new IdDt(theId);
1073 return this;
1074 }
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087 public java.util.List<Mapping> getMapping() {
1088 if (myMapping == null) {
1089 myMapping = new java.util.ArrayList<Mapping>();
1090 }
1091 return myMapping;
1092 }
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102 public Profile setMapping(java.util.List<Mapping> theValue) {
1103 myMapping = theValue;
1104 return this;
1105 }
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115 public Mapping addMapping() {
1116 Mapping newType = new Mapping();
1117 getMapping().add(newType);
1118 return newType;
1119 }
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130 public Mapping getMappingFirstRep() {
1131 if (getMapping().isEmpty()) {
1132 return addMapping();
1133 }
1134 return getMapping().get(0);
1135 }
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147 public java.util.List<Structure> getStructure() {
1148 if (myStructure == null) {
1149 myStructure = new java.util.ArrayList<Structure>();
1150 }
1151 return myStructure;
1152 }
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162 public Profile setStructure(java.util.List<Structure> theValue) {
1163 myStructure = theValue;
1164 return this;
1165 }
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175 public Structure addStructure() {
1176 Structure newType = new Structure();
1177 getStructure().add(newType);
1178 return newType;
1179 }
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190 public Structure getStructureFirstRep() {
1191 if (getStructure().isEmpty()) {
1192 return addStructure();
1193 }
1194 return getStructure().get(0);
1195 }
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207 public java.util.List<ExtensionDefn> getExtensionDefn() {
1208 if (myExtensionDefn == null) {
1209 myExtensionDefn = new java.util.ArrayList<ExtensionDefn>();
1210 }
1211 return myExtensionDefn;
1212 }
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222 public Profile setExtensionDefn(java.util.List<ExtensionDefn> theValue) {
1223 myExtensionDefn = theValue;
1224 return this;
1225 }
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235 public ExtensionDefn addExtensionDefn() {
1236 ExtensionDefn newType = new ExtensionDefn();
1237 getExtensionDefn().add(newType);
1238 return newType;
1239 }
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250 public ExtensionDefn getExtensionDefnFirstRep() {
1251 if (getExtensionDefn().isEmpty()) {
1252 return addExtensionDefn();
1253 }
1254 return getExtensionDefn().get(0);
1255 }
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267 public java.util.List<Query> getQuery() {
1268 if (myQuery == null) {
1269 myQuery = new java.util.ArrayList<Query>();
1270 }
1271 return myQuery;
1272 }
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282 public Profile setQuery(java.util.List<Query> theValue) {
1283 myQuery = theValue;
1284 return this;
1285 }
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295 public Query addQuery() {
1296 Query newType = new Query();
1297 getQuery().add(newType);
1298 return newType;
1299 }
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310 public Query getQueryFirstRep() {
1311 if (getQuery().isEmpty()) {
1312 return addQuery();
1313 }
1314 return getQuery().get(0);
1315 }
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325 @Block()
1326 public static class Mapping extends BaseIdentifiableElement implements IResourceBlock {
1327
1328 @Child(name="identity", type=IdDt.class, order=0, min=1, max=1)
1329 @Description(
1330 shortDefinition="Internal id when this mapping is used",
1331 formalDefinition="An Internal id that is used to identify this mapping set when specific mappings are made"
1332 )
1333 private IdDt myIdentity;
1334
1335 @Child(name="uri", type=UriDt.class, order=1, min=0, max=1)
1336 @Description(
1337 shortDefinition="Identifies what this mapping refers to",
1338 formalDefinition="A URI that identifies the specification that this mapping is expressed to"
1339 )
1340 private UriDt myUri;
1341
1342 @Child(name="name", type=StringDt.class, order=2, min=0, max=1)
1343 @Description(
1344 shortDefinition="Names what this mapping refers to",
1345 formalDefinition="A name for the specification that is being mapped to"
1346 )
1347 private StringDt myName;
1348
1349 @Child(name="comments", type=StringDt.class, order=3, min=0, max=1)
1350 @Description(
1351 shortDefinition="Versions, Issues, Scope limitations etc",
1352 formalDefinition="Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage"
1353 )
1354 private StringDt myComments;
1355
1356
1357 @Override
1358 public boolean isEmpty() {
1359 return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentity, myUri, myName, myComments);
1360 }
1361
1362 @Override
1363 public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
1364 return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentity, myUri, myName, myComments);
1365 }
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377 public IdDt getIdentity() {
1378 if (myIdentity == null) {
1379 myIdentity = new IdDt();
1380 }
1381 return myIdentity;
1382 }
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392 public Mapping setIdentity(IdDt theValue) {
1393 myIdentity = theValue;
1394 return this;
1395 }
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405 public Mapping setIdentity( String theId) {
1406 myIdentity = new IdDt(theId);
1407 return this;
1408 }
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421 public UriDt getUri() {
1422 if (myUri == null) {
1423 myUri = new UriDt();
1424 }
1425 return myUri;
1426 }
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436 public Mapping setUri(UriDt theValue) {
1437 myUri = theValue;
1438 return this;
1439 }
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449 public Mapping setUri( String theUri) {
1450 myUri = new UriDt(theUri);
1451 return this;
1452 }
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465 public StringDt getName() {
1466 if (myName == null) {
1467 myName = new StringDt();
1468 }
1469 return myName;
1470 }
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480 public Mapping setName(StringDt theValue) {
1481 myName = theValue;
1482 return this;
1483 }
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493 public Mapping setName( String theString) {
1494 myName = new StringDt(theString);
1495 return this;
1496 }
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509 public StringDt getComments() {
1510 if (myComments == null) {
1511 myComments = new StringDt();
1512 }
1513 return myComments;
1514 }
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524 public Mapping setComments(StringDt theValue) {
1525 myComments = theValue;
1526 return this;
1527 }
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537 public Mapping setComments( String theString) {
1538 myComments = new StringDt(theString);
1539 return this;
1540 }
1541
1542
1543
1544 }
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555 @Block()
1556 public static class Structure extends BaseIdentifiableElement implements IResourceBlock {
1557
1558 @Child(name="type", type=CodeDt.class, order=0, min=1, max=1)
1559 @Description(
1560 shortDefinition="The Resource or Data Type being described",
1561 formalDefinition="The Resource or Data type being described"
1562 )
1563 private BoundCodeDt<FHIRDefinedTypeEnum> myType;
1564
1565 @Child(name="name", type=StringDt.class, order=1, min=0, max=1)
1566 @Description(
1567 shortDefinition="Name for this particular structure (reference target)",
1568 formalDefinition="The name of this resource constraint statement (to refer to it from other resource constraints - from Profile.structure.element.definition.type.profile)"
1569 )
1570 private StringDt myName;
1571
1572 @Child(name="publish", type=BooleanDt.class, order=2, min=0, max=1)
1573 @Description(
1574 shortDefinition="This definition is published (i.e. for validation)",
1575 formalDefinition="This definition of a profile on a structure is published as a formal statement. Some structural definitions might be defined purely for internal use within the profile, and not intended to be used outside that context"
1576 )
1577 private BooleanDt myPublish;
1578
1579 @Child(name="purpose", type=StringDt.class, order=3, min=0, max=1)
1580 @Description(
1581 shortDefinition="Human summary: why describe this resource?",
1582 formalDefinition="Human summary: why describe this resource?"
1583 )
1584 private StringDt myPurpose;
1585
1586 @Child(name="element", order=4, min=0, max=Child.MAX_UNLIMITED)
1587 @Description(
1588 shortDefinition="Definition of elements in the resource (if no profile)",
1589 formalDefinition="Captures constraints on each element within the resource"
1590 )
1591 private java.util.List<StructureElement> myElement;
1592
1593 @Child(name="searchParam", order=5, min=0, max=Child.MAX_UNLIMITED)
1594 @Description(
1595 shortDefinition="Search params defined",
1596 formalDefinition="Additional search parameters for implementations to support and/or make use of"
1597 )
1598 private java.util.List<StructureSearchParam> mySearchParam;
1599
1600
1601 @Override
1602 public boolean isEmpty() {
1603 return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, myName, myPublish, myPurpose, myElement, mySearchParam);
1604 }
1605
1606 @Override
1607 public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
1608 return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, myName, myPublish, myPurpose, myElement, mySearchParam);
1609 }
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621 public BoundCodeDt<FHIRDefinedTypeEnum> getType() {
1622 if (myType == null) {
1623 myType = new BoundCodeDt<FHIRDefinedTypeEnum>(FHIRDefinedTypeEnum.VALUESET_BINDER);
1624 }
1625 return myType;
1626 }
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636 public Structure setType(BoundCodeDt<FHIRDefinedTypeEnum> theValue) {
1637 myType = theValue;
1638 return this;
1639 }
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649 public Structure setType(FHIRDefinedTypeEnum theValue) {
1650 getType().setValueAsEnum(theValue);
1651 return this;
1652 }
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665 public StringDt getName() {
1666 if (myName == null) {
1667 myName = new StringDt();
1668 }
1669 return myName;
1670 }
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680 public Structure setName(StringDt theValue) {
1681 myName = theValue;
1682 return this;
1683 }
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693 public Structure setName( String theString) {
1694 myName = new StringDt(theString);
1695 return this;
1696 }
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709 public BooleanDt getPublish() {
1710 if (myPublish == null) {
1711 myPublish = new BooleanDt();
1712 }
1713 return myPublish;
1714 }
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724 public Structure setPublish(BooleanDt theValue) {
1725 myPublish = theValue;
1726 return this;
1727 }
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737 public Structure setPublish( boolean theBoolean) {
1738 myPublish = new BooleanDt(theBoolean);
1739 return this;
1740 }
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753 public StringDt getPurpose() {
1754 if (myPurpose == null) {
1755 myPurpose = new StringDt();
1756 }
1757 return myPurpose;
1758 }
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768 public Structure setPurpose(StringDt theValue) {
1769 myPurpose = theValue;
1770 return this;
1771 }
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781 public Structure setPurpose( String theString) {
1782 myPurpose = new StringDt(theString);
1783 return this;
1784 }
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797 public java.util.List<StructureElement> getElement() {
1798 if (myElement == null) {
1799 myElement = new java.util.ArrayList<StructureElement>();
1800 }
1801 return myElement;
1802 }
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812 public Structure setElement(java.util.List<StructureElement> theValue) {
1813 myElement = theValue;
1814 return this;
1815 }
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825 public StructureElement addElement() {
1826 StructureElement newType = new StructureElement();
1827 getElement().add(newType);
1828 return newType;
1829 }
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840 public StructureElement getElementFirstRep() {
1841 if (getElement().isEmpty()) {
1842 return addElement();
1843 }
1844 return getElement().get(0);
1845 }
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857 public java.util.List<StructureSearchParam> getSearchParam() {
1858 if (mySearchParam == null) {
1859 mySearchParam = new java.util.ArrayList<StructureSearchParam>();
1860 }
1861 return mySearchParam;
1862 }
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872 public Structure setSearchParam(java.util.List<StructureSearchParam> theValue) {
1873 mySearchParam = theValue;
1874 return this;
1875 }
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885 public StructureSearchParam addSearchParam() {
1886 StructureSearchParam newType = new StructureSearchParam();
1887 getSearchParam().add(newType);
1888 return newType;
1889 }
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900 public StructureSearchParam getSearchParamFirstRep() {
1901 if (getSearchParam().isEmpty()) {
1902 return addSearchParam();
1903 }
1904 return getSearchParam().get(0);
1905 }
1906
1907
1908 }
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918 @Block()
1919 public static class StructureElement extends BaseIdentifiableElement implements IResourceBlock {
1920
1921 @Child(name="path", type=StringDt.class, order=0, min=1, max=1)
1922 @Description(
1923 shortDefinition="The path of the element (see the formal definitions)",
1924 formalDefinition="The path identifies the element and is expressed as a \".\"-separated list of ancestor elements, beginning with the name of the resource"
1925 )
1926 private StringDt myPath;
1927
1928 @Child(name="representation", type=CodeDt.class, order=1, min=0, max=Child.MAX_UNLIMITED)
1929 @Description(
1930 shortDefinition="How this element is represented in instances",
1931 formalDefinition="Codes that define how this element is represented in instances, when the deviation varies from the normal case"
1932 )
1933 private java.util.List<BoundCodeDt<PropertyRepresentationEnum>> myRepresentation;
1934
1935 @Child(name="name", type=StringDt.class, order=2, min=0, max=1)
1936 @Description(
1937 shortDefinition="Name for this particular element definition (reference target)",
1938 formalDefinition="The name of this element definition (to refer to it from other element definitions using Profile.structure.element.definition.nameReference). This is a unique name referring to a specific set of constraints applied to this element. One use of this is to provide a name to different slices of the same element"
1939 )
1940 private StringDt myName;
1941
1942 @Child(name="slicing", order=3, min=0, max=1)
1943 @Description(
1944 shortDefinition="This element is sliced - slices follow",
1945 formalDefinition="Indicates that the element is sliced into a set of alternative definitions (there are multiple definitions on a single element in the base resource). The set of slices is any elements that come after this in the element sequence that have the same path, until a shorter path occurs (the shorter path terminates the set)"
1946 )
1947 private StructureElementSlicing mySlicing;
1948
1949 @Child(name="definition", order=4, min=0, max=1)
1950 @Description(
1951 shortDefinition="More specific definition of the element",
1952 formalDefinition="Definition of the content of the element to provide a more specific definition than that contained for the element in the base resource"
1953 )
1954 private StructureElementDefinition myDefinition;
1955
1956
1957 @Override
1958 public boolean isEmpty() {
1959 return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myPath, myRepresentation, myName, mySlicing, myDefinition);
1960 }
1961
1962 @Override
1963 public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
1964 return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myPath, myRepresentation, myName, mySlicing, myDefinition);
1965 }
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977 public StringDt getPath() {
1978 if (myPath == null) {
1979 myPath = new StringDt();
1980 }
1981 return myPath;
1982 }
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992 public StructureElement setPath(StringDt theValue) {
1993 myPath = theValue;
1994 return this;
1995 }
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005 public StructureElement setPath( String theString) {
2006 myPath = new StringDt(theString);
2007 return this;
2008 }
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021 public java.util.List<BoundCodeDt<PropertyRepresentationEnum>> getRepresentation() {
2022 if (myRepresentation == null) {
2023 myRepresentation = new java.util.ArrayList<BoundCodeDt<PropertyRepresentationEnum>>();
2024 }
2025 return myRepresentation;
2026 }
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036 public StructureElement setRepresentation(java.util.List<BoundCodeDt<PropertyRepresentationEnum>> theValue) {
2037 myRepresentation = theValue;
2038 return this;
2039 }
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052 public BoundCodeDt<PropertyRepresentationEnum> addRepresentation(PropertyRepresentationEnum theValue) {
2053 BoundCodeDt<PropertyRepresentationEnum> retVal = new BoundCodeDt<PropertyRepresentationEnum>(PropertyRepresentationEnum.VALUESET_BINDER, theValue);
2054 getRepresentation().add(retVal);
2055 return retVal;
2056 }
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067 public BoundCodeDt<PropertyRepresentationEnum> getRepresentationFirstRep() {
2068 if (getRepresentation().size() == 0) {
2069 addRepresentation();
2070 }
2071 return getRepresentation().get(0);
2072 }
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082 public BoundCodeDt<PropertyRepresentationEnum> addRepresentation() {
2083 BoundCodeDt<PropertyRepresentationEnum> retVal = new BoundCodeDt<PropertyRepresentationEnum>(PropertyRepresentationEnum.VALUESET_BINDER);
2084 getRepresentation().add(retVal);
2085 return retVal;
2086 }
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096 public StructureElement setRepresentation(PropertyRepresentationEnum theValue) {
2097 getRepresentation().clear();
2098 addRepresentation(theValue);
2099 return this;
2100 }
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113 public StringDt getName() {
2114 if (myName == null) {
2115 myName = new StringDt();
2116 }
2117 return myName;
2118 }
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128 public StructureElement setName(StringDt theValue) {
2129 myName = theValue;
2130 return this;
2131 }
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141 public StructureElement setName( String theString) {
2142 myName = new StringDt(theString);
2143 return this;
2144 }
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157 public StructureElementSlicing getSlicing() {
2158 if (mySlicing == null) {
2159 mySlicing = new StructureElementSlicing();
2160 }
2161 return mySlicing;
2162 }
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172 public StructureElement setSlicing(StructureElementSlicing theValue) {
2173 mySlicing = theValue;
2174 return this;
2175 }
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188 public StructureElementDefinition getDefinition() {
2189 if (myDefinition == null) {
2190 myDefinition = new StructureElementDefinition();
2191 }
2192 return myDefinition;
2193 }
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203 public StructureElement setDefinition(StructureElementDefinition theValue) {
2204 myDefinition = theValue;
2205 return this;
2206 }
2207
2208
2209
2210 }
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220 @Block()
2221 public static class StructureElementSlicing extends BaseIdentifiableElement implements IResourceBlock {
2222
2223 @Child(name="discriminator", type=IdDt.class, order=0, min=1, max=1)
2224 @Description(
2225 shortDefinition="Element that used to distinguish the slices",
2226 formalDefinition="Designates which child element is used to discriminate between the slices when processing an instance. The value of the child element in the instance SHALL completely distinguish which slice the element in the resource matches based on the allowed values for that element in each of the slices"
2227 )
2228 private IdDt myDiscriminator;
2229
2230 @Child(name="ordered", type=BooleanDt.class, order=1, min=1, max=1)
2231 @Description(
2232 shortDefinition="If elements must be in same order as slices",
2233 formalDefinition="If the matching elements have to occur in the same order as defined in the profile"
2234 )
2235 private BooleanDt myOrdered;
2236
2237 @Child(name="rules", type=CodeDt.class, order=2, min=1, max=1)
2238 @Description(
2239 shortDefinition="closed | open | openAtEnd",
2240 formalDefinition="Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end"
2241 )
2242 private BoundCodeDt<SlicingRulesEnum> myRules;
2243
2244
2245 @Override
2246 public boolean isEmpty() {
2247 return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myDiscriminator, myOrdered, myRules);
2248 }
2249
2250 @Override
2251 public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
2252 return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myDiscriminator, myOrdered, myRules);
2253 }
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265 public IdDt getDiscriminator() {
2266 if (myDiscriminator == null) {
2267 myDiscriminator = new IdDt();
2268 }
2269 return myDiscriminator;
2270 }
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280 public StructureElementSlicing setDiscriminator(IdDt theValue) {
2281 myDiscriminator = theValue;
2282 return this;
2283 }
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293 public StructureElementSlicing setDiscriminator( String theId) {
2294 myDiscriminator = new IdDt(theId);
2295 return this;
2296 }
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309 public BooleanDt getOrdered() {
2310 if (myOrdered == null) {
2311 myOrdered = new BooleanDt();
2312 }
2313 return myOrdered;
2314 }
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324 public StructureElementSlicing setOrdered(BooleanDt theValue) {
2325 myOrdered = theValue;
2326 return this;
2327 }
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337 public StructureElementSlicing setOrdered( boolean theBoolean) {
2338 myOrdered = new BooleanDt(theBoolean);
2339 return this;
2340 }
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353 public BoundCodeDt<SlicingRulesEnum> getRules() {
2354 if (myRules == null) {
2355 myRules = new BoundCodeDt<SlicingRulesEnum>(SlicingRulesEnum.VALUESET_BINDER);
2356 }
2357 return myRules;
2358 }
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368 public StructureElementSlicing setRules(BoundCodeDt<SlicingRulesEnum> theValue) {
2369 myRules = theValue;
2370 return this;
2371 }
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381 public StructureElementSlicing setRules(SlicingRulesEnum theValue) {
2382 getRules().setValueAsEnum(theValue);
2383 return this;
2384 }
2385
2386
2387
2388 }
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399 @Block()
2400 public static class StructureElementDefinition extends BaseIdentifiableElement implements IResourceBlock {
2401
2402 @Child(name="short", type=StringDt.class, order=0, min=1, max=1)
2403 @Description(
2404 shortDefinition="Concise definition for xml presentation",
2405 formalDefinition="A concise definition that is shown in the generated XML format that summarizes profiles (used throughout the specification)"
2406 )
2407 private StringDt myShort;
2408
2409 @Child(name="formal", type=StringDt.class, order=1, min=1, max=1)
2410 @Description(
2411 shortDefinition="Full formal definition in human language",
2412 formalDefinition="The definition SHALL be consistent with the base definition, but convey the meaning of the element in the particular context of use of the resource"
2413 )
2414 private StringDt myFormal;
2415
2416 @Child(name="comments", type=StringDt.class, order=2, min=0, max=1)
2417 @Description(
2418 shortDefinition="Comments about the use of this element",
2419 formalDefinition="Comments about the use of the element, including notes about how to use the data properly, exceptions to proper use, etc."
2420 )
2421 private StringDt myComments;
2422
2423 @Child(name="requirements", type=StringDt.class, order=3, min=0, max=1)
2424 @Description(
2425 shortDefinition="Why is this needed?",
2426 formalDefinition="Explains why this element is needed and why it's been constrained as it has"
2427 )
2428 private StringDt myRequirements;
2429
2430 @Child(name="synonym", type=StringDt.class, order=4, min=0, max=Child.MAX_UNLIMITED)
2431 @Description(
2432 shortDefinition="Other names",
2433 formalDefinition="Identifies additional names by which this element might also be known"
2434 )
2435 private java.util.List<StringDt> mySynonym;
2436
2437 @Child(name="min", type=IntegerDt.class, order=5, min=1, max=1)
2438 @Description(
2439 shortDefinition="Minimum Cardinality",
2440 formalDefinition="The minimum number of times this element SHALL appear in the instance"
2441 )
2442 private IntegerDt myMin;
2443
2444 @Child(name="max", type=StringDt.class, order=6, min=1, max=1)
2445 @Description(
2446 shortDefinition="Maximum Cardinality (a number or *)",
2447 formalDefinition="The maximum number of times this element is permitted to appear in the instance"
2448 )
2449 private StringDt myMax;
2450
2451 @Child(name="type", order=7, min=0, max=Child.MAX_UNLIMITED)
2452 @Description(
2453 shortDefinition="Data type and Profile for this element",
2454 formalDefinition="The data type or resource that the value of this element is permitted to be"
2455 )
2456 private java.util.List<StructureElementDefinitionType> myType;
2457
2458 @Child(name="nameReference", type=StringDt.class, order=8, min=0, max=1)
2459 @Description(
2460 shortDefinition="To another element constraint (by element.name)",
2461 formalDefinition="Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element"
2462 )
2463 private StringDt myNameReference;
2464
2465 @Child(name="value", type=IDatatype.class, order=9, min=0, max=1)
2466 @Description(
2467 shortDefinition="Fixed value: [as defined for a primitive type]",
2468 formalDefinition="Specifies a primitive value that SHALL hold for this element in the instance"
2469 )
2470 private IDatatype myValue;
2471
2472 @Child(name="example", type=IDatatype.class, order=10, min=0, max=1)
2473 @Description(
2474 shortDefinition="Example value: [as defined for type]",
2475 formalDefinition="An example value for this element"
2476 )
2477 private IDatatype myExample;
2478
2479 @Child(name="maxLength", type=IntegerDt.class, order=11, min=0, max=1)
2480 @Description(
2481 shortDefinition="Length for strings",
2482 formalDefinition="Indicates the shortest length that SHALL be supported by conformant instances without truncation"
2483 )
2484 private IntegerDt myMaxLength;
2485
2486 @Child(name="condition", type=IdDt.class, order=12, min=0, max=Child.MAX_UNLIMITED)
2487 @Description(
2488 shortDefinition="Reference to invariant about presence",
2489 formalDefinition="A reference to an invariant that may make additional statements about the cardinality or value in the instance"
2490 )
2491 private java.util.List<IdDt> myCondition;
2492
2493 @Child(name="constraint", order=13, min=0, max=Child.MAX_UNLIMITED)
2494 @Description(
2495 shortDefinition="Condition that must evaluate to true",
2496 formalDefinition="Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance"
2497 )
2498 private java.util.List<StructureElementDefinitionConstraint> myConstraint;
2499
2500 @Child(name="mustSupport", type=BooleanDt.class, order=14, min=0, max=1)
2501 @Description(
2502 shortDefinition="If the element must supported",
2503 formalDefinition="If true, conformant resource authors SHALL be capable of providing a value for the element and resource consumers SHALL be capable of extracting and doing something useful with the data element. If false, the element may be ignored and not supported"
2504 )
2505 private BooleanDt myMustSupport;
2506
2507 @Child(name="isModifier", type=BooleanDt.class, order=15, min=1, max=1)
2508 @Description(
2509 shortDefinition="If this modifies the meaning of other elements",
2510 formalDefinition="If true, the value of this element affects the interpretation of the element or resource that contains it, and the value of the element cannot be ignored. Typically, this is used for status, negation and qualification codes. The effect of this is that the element cannot be ignored by systems: they SHALL either recognize the element and process it, and/or a pre-determination has been made that it is not relevant to their particular system."
2511 )
2512 private BooleanDt myIsModifier;
2513
2514 @Child(name="binding", order=16, min=0, max=1)
2515 @Description(
2516 shortDefinition="ValueSet details if this is coded",
2517 formalDefinition="Binds to a value set if this element is coded (code, Coding, CodeableConcept)"
2518 )
2519 private StructureElementDefinitionBinding myBinding;
2520
2521 @Child(name="mapping", order=17, min=0, max=Child.MAX_UNLIMITED)
2522 @Description(
2523 shortDefinition="Map element to another set of definitions",
2524 formalDefinition="Identifies a concept from an external specification that roughly corresponds to this element"
2525 )
2526 private java.util.List<StructureElementDefinitionMapping> myMapping;
2527
2528
2529 @Override
2530 public boolean isEmpty() {
2531 return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myShort, myFormal, myComments, myRequirements, mySynonym, myMin, myMax, myType, myNameReference, myValue, myExample, myMaxLength, myCondition, myConstraint, myMustSupport, myIsModifier, myBinding, myMapping);
2532 }
2533
2534 @Override
2535 public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
2536 return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myShort, myFormal, myComments, myRequirements, mySynonym, myMin, myMax, myType, myNameReference, myValue, myExample, myMaxLength, myCondition, myConstraint, myMustSupport, myIsModifier, myBinding, myMapping);
2537 }
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549 public StringDt getShort() {
2550 if (myShort == null) {
2551 myShort = new StringDt();
2552 }
2553 return myShort;
2554 }
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564 public StructureElementDefinition setShort(StringDt theValue) {
2565 myShort = theValue;
2566 return this;
2567 }
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577 public StructureElementDefinition setShort( String theString) {
2578 myShort = new StringDt(theString);
2579 return this;
2580 }
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593 public StringDt getFormal() {
2594 if (myFormal == null) {
2595 myFormal = new StringDt();
2596 }
2597 return myFormal;
2598 }
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608 public StructureElementDefinition setFormal(StringDt theValue) {
2609 myFormal = theValue;
2610 return this;
2611 }
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621 public StructureElementDefinition setFormal( String theString) {
2622 myFormal = new StringDt(theString);
2623 return this;
2624 }
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637 public StringDt getComments() {
2638 if (myComments == null) {
2639 myComments = new StringDt();
2640 }
2641 return myComments;
2642 }
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652 public StructureElementDefinition setComments(StringDt theValue) {
2653 myComments = theValue;
2654 return this;
2655 }
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665 public StructureElementDefinition setComments( String theString) {
2666 myComments = new StringDt(theString);
2667 return this;
2668 }
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681 public StringDt getRequirements() {
2682 if (myRequirements == null) {
2683 myRequirements = new StringDt();
2684 }
2685 return myRequirements;
2686 }
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696 public StructureElementDefinition setRequirements(StringDt theValue) {
2697 myRequirements = theValue;
2698 return this;
2699 }
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709 public StructureElementDefinition setRequirements( String theString) {
2710 myRequirements = new StringDt(theString);
2711 return this;
2712 }
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725 public java.util.List<StringDt> getSynonym() {
2726 if (mySynonym == null) {
2727 mySynonym = new java.util.ArrayList<StringDt>();
2728 }
2729 return mySynonym;
2730 }
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740 public StructureElementDefinition setSynonym(java.util.List<StringDt> theValue) {
2741 mySynonym = theValue;
2742 return this;
2743 }
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753 public StringDt addSynonym() {
2754 StringDt newType = new StringDt();
2755 getSynonym().add(newType);
2756 return newType;
2757 }
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768 public StringDt getSynonymFirstRep() {
2769 if (getSynonym().isEmpty()) {
2770 return addSynonym();
2771 }
2772 return getSynonym().get(0);
2773 }
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784 public StructureElementDefinition addSynonym( String theString) {
2785 if (mySynonym == null) {
2786 mySynonym = new java.util.ArrayList<StringDt>();
2787 }
2788 mySynonym.add(new StringDt(theString));
2789 return this;
2790 }
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803 public IntegerDt getMin() {
2804 if (myMin == null) {
2805 myMin = new IntegerDt();
2806 }
2807 return myMin;
2808 }
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818 public StructureElementDefinition setMin(IntegerDt theValue) {
2819 myMin = theValue;
2820 return this;
2821 }
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831 public StructureElementDefinition setMin( int theInteger) {
2832 myMin = new IntegerDt(theInteger);
2833 return this;
2834 }
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847 public StringDt getMax() {
2848 if (myMax == null) {
2849 myMax = new StringDt();
2850 }
2851 return myMax;
2852 }
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862 public StructureElementDefinition setMax(StringDt theValue) {
2863 myMax = theValue;
2864 return this;
2865 }
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875 public StructureElementDefinition setMax( String theString) {
2876 myMax = new StringDt(theString);
2877 return this;
2878 }
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891 public java.util.List<StructureElementDefinitionType> getType() {
2892 if (myType == null) {
2893 myType = new java.util.ArrayList<StructureElementDefinitionType>();
2894 }
2895 return myType;
2896 }
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906 public StructureElementDefinition setType(java.util.List<StructureElementDefinitionType> theValue) {
2907 myType = theValue;
2908 return this;
2909 }
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919 public StructureElementDefinitionType addType() {
2920 StructureElementDefinitionType newType = new StructureElementDefinitionType();
2921 getType().add(newType);
2922 return newType;
2923 }
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934 public StructureElementDefinitionType getTypeFirstRep() {
2935 if (getType().isEmpty()) {
2936 return addType();
2937 }
2938 return getType().get(0);
2939 }
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951 public StringDt getNameReference() {
2952 if (myNameReference == null) {
2953 myNameReference = new StringDt();
2954 }
2955 return myNameReference;
2956 }
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966 public StructureElementDefinition setNameReference(StringDt theValue) {
2967 myNameReference = theValue;
2968 return this;
2969 }
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979 public StructureElementDefinition setNameReference( String theString) {
2980 myNameReference = new StringDt(theString);
2981 return this;
2982 }
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995 public IDatatype getValue() {
2996 return myValue;
2997 }
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007 public StructureElementDefinition setValue(IDatatype theValue) {
3008 myValue = theValue;
3009 return this;
3010 }
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023 public IDatatype getExample() {
3024 return myExample;
3025 }
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035 public StructureElementDefinition setExample(IDatatype theValue) {
3036 myExample = theValue;
3037 return this;
3038 }
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051 public IntegerDt getMaxLength() {
3052 if (myMaxLength == null) {
3053 myMaxLength = new IntegerDt();
3054 }
3055 return myMaxLength;
3056 }
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066 public StructureElementDefinition setMaxLength(IntegerDt theValue) {
3067 myMaxLength = theValue;
3068 return this;
3069 }
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079 public StructureElementDefinition setMaxLength( int theInteger) {
3080 myMaxLength = new IntegerDt(theInteger);
3081 return this;
3082 }
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095 public java.util.List<IdDt> getCondition() {
3096 if (myCondition == null) {
3097 myCondition = new java.util.ArrayList<IdDt>();
3098 }
3099 return myCondition;
3100 }
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110 public StructureElementDefinition setCondition(java.util.List<IdDt> theValue) {
3111 myCondition = theValue;
3112 return this;
3113 }
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123 public IdDt addCondition() {
3124 IdDt newType = new IdDt();
3125 getCondition().add(newType);
3126 return newType;
3127 }
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138 public IdDt getConditionFirstRep() {
3139 if (getCondition().isEmpty()) {
3140 return addCondition();
3141 }
3142 return getCondition().get(0);
3143 }
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154 public StructureElementDefinition addCondition( String theId) {
3155 if (myCondition == null) {
3156 myCondition = new java.util.ArrayList<IdDt>();
3157 }
3158 myCondition.add(new IdDt(theId));
3159 return this;
3160 }
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173 public java.util.List<StructureElementDefinitionConstraint> getConstraint() {
3174 if (myConstraint == null) {
3175 myConstraint = new java.util.ArrayList<StructureElementDefinitionConstraint>();
3176 }
3177 return myConstraint;
3178 }
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188 public StructureElementDefinition setConstraint(java.util.List<StructureElementDefinitionConstraint> theValue) {
3189 myConstraint = theValue;
3190 return this;
3191 }
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201 public StructureElementDefinitionConstraint addConstraint() {
3202 StructureElementDefinitionConstraint newType = new StructureElementDefinitionConstraint();
3203 getConstraint().add(newType);
3204 return newType;
3205 }
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216 public StructureElementDefinitionConstraint getConstraintFirstRep() {
3217 if (getConstraint().isEmpty()) {
3218 return addConstraint();
3219 }
3220 return getConstraint().get(0);
3221 }
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233 public BooleanDt getMustSupport() {
3234 if (myMustSupport == null) {
3235 myMustSupport = new BooleanDt();
3236 }
3237 return myMustSupport;
3238 }
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248 public StructureElementDefinition setMustSupport(BooleanDt theValue) {
3249 myMustSupport = theValue;
3250 return this;
3251 }
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261 public StructureElementDefinition setMustSupport( boolean theBoolean) {
3262 myMustSupport = new BooleanDt(theBoolean);
3263 return this;
3264 }
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277 public BooleanDt getIsModifier() {
3278 if (myIsModifier == null) {
3279 myIsModifier = new BooleanDt();
3280 }
3281 return myIsModifier;
3282 }
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292 public StructureElementDefinition setIsModifier(BooleanDt theValue) {
3293 myIsModifier = theValue;
3294 return this;
3295 }
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305 public StructureElementDefinition setIsModifier( boolean theBoolean) {
3306 myIsModifier = new BooleanDt(theBoolean);
3307 return this;
3308 }
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321 public StructureElementDefinitionBinding getBinding() {
3322 if (myBinding == null) {
3323 myBinding = new StructureElementDefinitionBinding();
3324 }
3325 return myBinding;
3326 }
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336 public StructureElementDefinition setBinding(StructureElementDefinitionBinding theValue) {
3337 myBinding = theValue;
3338 return this;
3339 }
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352 public java.util.List<StructureElementDefinitionMapping> getMapping() {
3353 if (myMapping == null) {
3354 myMapping = new java.util.ArrayList<StructureElementDefinitionMapping>();
3355 }
3356 return myMapping;
3357 }
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367 public StructureElementDefinition setMapping(java.util.List<StructureElementDefinitionMapping> theValue) {
3368 myMapping = theValue;
3369 return this;
3370 }
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380 public StructureElementDefinitionMapping addMapping() {
3381 StructureElementDefinitionMapping newType = new StructureElementDefinitionMapping();
3382 getMapping().add(newType);
3383 return newType;
3384 }
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395 public StructureElementDefinitionMapping getMappingFirstRep() {
3396 if (getMapping().isEmpty()) {
3397 return addMapping();
3398 }
3399 return getMapping().get(0);
3400 }
3401
3402
3403 }
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413 @Block()
3414 public static class StructureElementDefinitionType extends BaseIdentifiableElement implements IResourceBlock {
3415
3416 @Child(name="code", type=CodeDt.class, order=0, min=1, max=1)
3417 @Description(
3418 shortDefinition="Name of Data type or Resource",
3419 formalDefinition=""
3420 )
3421 private BoundCodeDt<DataTypeEnum> myCode;
3422
3423 @Child(name="profile", type=UriDt.class, order=1, min=0, max=1)
3424 @Description(
3425 shortDefinition="Profile.structure to apply",
3426 formalDefinition="Identifies a profile that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile"
3427 )
3428 private UriDt myProfile;
3429
3430 @Child(name="aggregation", type=CodeDt.class, order=2, min=0, max=Child.MAX_UNLIMITED)
3431 @Description(
3432 shortDefinition="contained | referenced | bundled - how aggregated",
3433 formalDefinition="If the type is a reference to another resource, how the resource is or can be aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle"
3434 )
3435 private java.util.List<BoundCodeDt<AggregationModeEnum>> myAggregation;
3436
3437
3438 @Override
3439 public boolean isEmpty() {
3440 return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myProfile, myAggregation);
3441 }
3442
3443 @Override
3444 public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
3445 return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myProfile, myAggregation);
3446 }
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458 public BoundCodeDt<DataTypeEnum> getCode() {
3459 if (myCode == null) {
3460 myCode = new BoundCodeDt<DataTypeEnum>(DataTypeEnum.VALUESET_BINDER);
3461 }
3462 return myCode;
3463 }
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473 public StructureElementDefinitionType setCode(BoundCodeDt<DataTypeEnum> theValue) {
3474 myCode = theValue;
3475 return this;
3476 }
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486 public StructureElementDefinitionType setCode(DataTypeEnum theValue) {
3487 getCode().setValueAsEnum(theValue);
3488 return this;
3489 }
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502 public UriDt getProfile() {
3503 if (myProfile == null) {
3504 myProfile = new UriDt();
3505 }
3506 return myProfile;
3507 }
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517 public StructureElementDefinitionType setProfile(UriDt theValue) {
3518 myProfile = theValue;
3519 return this;
3520 }
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530 public StructureElementDefinitionType setProfile( String theUri) {
3531 myProfile = new UriDt(theUri);
3532 return this;
3533 }
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546 public java.util.List<BoundCodeDt<AggregationModeEnum>> getAggregation() {
3547 if (myAggregation == null) {
3548 myAggregation = new java.util.ArrayList<BoundCodeDt<AggregationModeEnum>>();
3549 }
3550 return myAggregation;
3551 }
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561 public StructureElementDefinitionType setAggregation(java.util.List<BoundCodeDt<AggregationModeEnum>> theValue) {
3562 myAggregation = theValue;
3563 return this;
3564 }
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577 public BoundCodeDt<AggregationModeEnum> addAggregation(AggregationModeEnum theValue) {
3578 BoundCodeDt<AggregationModeEnum> retVal = new BoundCodeDt<AggregationModeEnum>(AggregationModeEnum.VALUESET_BINDER, theValue);
3579 getAggregation().add(retVal);
3580 return retVal;
3581 }
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592 public BoundCodeDt<AggregationModeEnum> getAggregationFirstRep() {
3593 if (getAggregation().size() == 0) {
3594 addAggregation();
3595 }
3596 return getAggregation().get(0);
3597 }
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607 public BoundCodeDt<AggregationModeEnum> addAggregation() {
3608 BoundCodeDt<AggregationModeEnum> retVal = new BoundCodeDt<AggregationModeEnum>(AggregationModeEnum.VALUESET_BINDER);
3609 getAggregation().add(retVal);
3610 return retVal;
3611 }
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621 public StructureElementDefinitionType setAggregation(AggregationModeEnum theValue) {
3622 getAggregation().clear();
3623 addAggregation(theValue);
3624 return this;
3625 }
3626
3627
3628
3629 }
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640 @Block()
3641 public static class StructureElementDefinitionConstraint extends BaseIdentifiableElement implements IResourceBlock {
3642
3643 @Child(name="key", type=IdDt.class, order=0, min=1, max=1)
3644 @Description(
3645 shortDefinition="Target of 'condition' reference above",
3646 formalDefinition="Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality"
3647 )
3648 private IdDt myKey;
3649
3650 @Child(name="name", type=StringDt.class, order=1, min=0, max=1)
3651 @Description(
3652 shortDefinition="Short human label",
3653 formalDefinition="Used to label the constraint in OCL or in short displays incapable of displaying the full human description"
3654 )
3655 private StringDt myName;
3656
3657 @Child(name="severity", type=CodeDt.class, order=2, min=1, max=1)
3658 @Description(
3659 shortDefinition="error | warning",
3660 formalDefinition="Identifies the impact constraint violation has on the conformance of the instance"
3661 )
3662 private BoundCodeDt<ConstraintSeverityEnum> mySeverity;
3663
3664 @Child(name="human", type=StringDt.class, order=3, min=1, max=1)
3665 @Description(
3666 shortDefinition="Human description of constraint",
3667 formalDefinition="Text that can be used to describe the constraint in messages identifying that the constraint has been violated"
3668 )
3669 private StringDt myHuman;
3670
3671 @Child(name="xpath", type=StringDt.class, order=4, min=1, max=1)
3672 @Description(
3673 shortDefinition="XPath expression of constraint",
3674 formalDefinition="XPath expression of constraint"
3675 )
3676 private StringDt myXpath;
3677
3678
3679 @Override
3680 public boolean isEmpty() {
3681 return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myKey, myName, mySeverity, myHuman, myXpath);
3682 }
3683
3684 @Override
3685 public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
3686 return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myKey, myName, mySeverity, myHuman, myXpath);
3687 }
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699 public IdDt getKey() {
3700 if (myKey == null) {
3701 myKey = new IdDt();
3702 }
3703 return myKey;
3704 }
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714 public StructureElementDefinitionConstraint setKey(IdDt theValue) {
3715 myKey = theValue;
3716 return this;
3717 }
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727 public StructureElementDefinitionConstraint setKey( String theId) {
3728 myKey = new IdDt(theId);
3729 return this;
3730 }
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743 public StringDt getName() {
3744 if (myName == null) {
3745 myName = new StringDt();
3746 }
3747 return myName;
3748 }
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758 public StructureElementDefinitionConstraint setName(StringDt theValue) {
3759 myName = theValue;
3760 return this;
3761 }
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771 public StructureElementDefinitionConstraint setName( String theString) {
3772 myName = new StringDt(theString);
3773 return this;
3774 }
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787 public BoundCodeDt<ConstraintSeverityEnum> getSeverity() {
3788 if (mySeverity == null) {
3789 mySeverity = new BoundCodeDt<ConstraintSeverityEnum>(ConstraintSeverityEnum.VALUESET_BINDER);
3790 }
3791 return mySeverity;
3792 }
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802 public StructureElementDefinitionConstraint setSeverity(BoundCodeDt<ConstraintSeverityEnum> theValue) {
3803 mySeverity = theValue;
3804 return this;
3805 }
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815 public StructureElementDefinitionConstraint setSeverity(ConstraintSeverityEnum theValue) {
3816 getSeverity().setValueAsEnum(theValue);
3817 return this;
3818 }
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831 public StringDt getHuman() {
3832 if (myHuman == null) {
3833 myHuman = new StringDt();
3834 }
3835 return myHuman;
3836 }
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846 public StructureElementDefinitionConstraint setHuman(StringDt theValue) {
3847 myHuman = theValue;
3848 return this;
3849 }
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859 public StructureElementDefinitionConstraint setHuman( String theString) {
3860 myHuman = new StringDt(theString);
3861 return this;
3862 }
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875 public StringDt getXpath() {
3876 if (myXpath == null) {
3877 myXpath = new StringDt();
3878 }
3879 return myXpath;
3880 }
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890 public StructureElementDefinitionConstraint setXpath(StringDt theValue) {
3891 myXpath = theValue;
3892 return this;
3893 }
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903 public StructureElementDefinitionConstraint setXpath( String theString) {
3904 myXpath = new StringDt(theString);
3905 return this;
3906 }
3907
3908
3909
3910 }
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921 @Block()
3922 public static class StructureElementDefinitionBinding extends BaseIdentifiableElement implements IResourceBlock {
3923
3924 @Child(name="name", type=StringDt.class, order=0, min=1, max=1)
3925 @Description(
3926 shortDefinition="Descriptive Name",
3927 formalDefinition="A descriptive name for this - can be useful for generating implementation artifacts"
3928 )
3929 private StringDt myName;
3930
3931 @Child(name="isExtensible", type=BooleanDt.class, order=1, min=1, max=1)
3932 @Description(
3933 shortDefinition="Can additional codes be used?",
3934 formalDefinition="If true, then conformant systems may use additional codes or (where the data type permits) text alone to convey concepts not covered by the set of codes identified in the binding. If false, then conformant systems are constrained to the provided codes alone"
3935 )
3936 private BooleanDt myIsExtensible;
3937
3938 @Child(name="conformance", type=CodeDt.class, order=2, min=0, max=1)
3939 @Description(
3940 shortDefinition="required | preferred | example",
3941 formalDefinition="Indicates the degree of conformance expectations associated with this binding"
3942 )
3943 private BoundCodeDt<BindingConformanceEnum> myConformance;
3944
3945 @Child(name="description", type=StringDt.class, order=3, min=0, max=1)
3946 @Description(
3947 shortDefinition="Human explanation of the value set",
3948 formalDefinition="Describes the intended use of this particular set of codes"
3949 )
3950 private StringDt myDescription;
3951
3952 @Child(name="reference", order=4, min=0, max=1, type={
3953 UriDt.class, ValueSet.class })
3954 @Description(
3955 shortDefinition="Source of value set",
3956 formalDefinition="Points to the value set or external definition that identifies the set of codes to be used"
3957 )
3958 private IDatatype myReference;
3959
3960
3961 @Override
3962 public boolean isEmpty() {
3963 return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myIsExtensible, myConformance, myDescription, myReference);
3964 }
3965
3966 @Override
3967 public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
3968 return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myIsExtensible, myConformance, myDescription, myReference);
3969 }
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981 public StringDt getName() {
3982 if (myName == null) {
3983 myName = new StringDt();
3984 }
3985 return myName;
3986 }
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996 public StructureElementDefinitionBinding setName(StringDt theValue) {
3997 myName = theValue;
3998 return this;
3999 }
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009 public StructureElementDefinitionBinding setName( String theString) {
4010 myName = new StringDt(theString);
4011 return this;
4012 }
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025 public BooleanDt getIsExtensible() {
4026 if (myIsExtensible == null) {
4027 myIsExtensible = new BooleanDt();
4028 }
4029 return myIsExtensible;
4030 }
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040 public StructureElementDefinitionBinding setIsExtensible(BooleanDt theValue) {
4041 myIsExtensible = theValue;
4042 return this;
4043 }
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053 public StructureElementDefinitionBinding setIsExtensible( boolean theBoolean) {
4054 myIsExtensible = new BooleanDt(theBoolean);
4055 return this;
4056 }
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069 public BoundCodeDt<BindingConformanceEnum> getConformance() {
4070 if (myConformance == null) {
4071 myConformance = new BoundCodeDt<BindingConformanceEnum>(BindingConformanceEnum.VALUESET_BINDER);
4072 }
4073 return myConformance;
4074 }
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084 public StructureElementDefinitionBinding setConformance(BoundCodeDt<BindingConformanceEnum> theValue) {
4085 myConformance = theValue;
4086 return this;
4087 }
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097 public StructureElementDefinitionBinding setConformance(BindingConformanceEnum theValue) {
4098 getConformance().setValueAsEnum(theValue);
4099 return this;
4100 }
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113 public StringDt getDescription() {
4114 if (myDescription == null) {
4115 myDescription = new StringDt();
4116 }
4117 return myDescription;
4118 }
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128 public StructureElementDefinitionBinding setDescription(StringDt theValue) {
4129 myDescription = theValue;
4130 return this;
4131 }
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141 public StructureElementDefinitionBinding setDescription( String theString) {
4142 myDescription = new StringDt(theString);
4143 return this;
4144 }
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157 public IDatatype getReference() {
4158 return myReference;
4159 }
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169 public StructureElementDefinitionBinding setReference(IDatatype theValue) {
4170 myReference = theValue;
4171 return this;
4172 }
4173
4174
4175
4176 }
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187 @Block()
4188 public static class StructureElementDefinitionMapping extends BaseIdentifiableElement implements IResourceBlock {
4189
4190 @Child(name="identity", type=IdDt.class, order=0, min=1, max=1)
4191 @Description(
4192 shortDefinition="Reference to mapping declaration",
4193 formalDefinition="An internal reference to the definition of a mapping"
4194 )
4195 private IdDt myIdentity;
4196
4197 @Child(name="map", type=StringDt.class, order=1, min=1, max=1)
4198 @Description(
4199 shortDefinition="Details of the mapping",
4200 formalDefinition="Expresses what part of the target specification corresponds to this element"
4201 )
4202 private StringDt myMap;
4203
4204
4205 @Override
4206 public boolean isEmpty() {
4207 return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentity, myMap);
4208 }
4209
4210 @Override
4211 public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
4212 return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentity, myMap);
4213 }
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225 public IdDt getIdentity() {
4226 if (myIdentity == null) {
4227 myIdentity = new IdDt();
4228 }
4229 return myIdentity;
4230 }
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240 public StructureElementDefinitionMapping setIdentity(IdDt theValue) {
4241 myIdentity = theValue;
4242 return this;
4243 }
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253 public StructureElementDefinitionMapping setIdentity( String theId) {
4254 myIdentity = new IdDt(theId);
4255 return this;
4256 }
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269 public StringDt getMap() {
4270 if (myMap == null) {
4271 myMap = new StringDt();
4272 }
4273 return myMap;
4274 }
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284 public StructureElementDefinitionMapping setMap(StringDt theValue) {
4285 myMap = theValue;
4286 return this;
4287 }
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297 public StructureElementDefinitionMapping setMap( String theString) {
4298 myMap = new StringDt(theString);
4299 return this;
4300 }
4301
4302
4303
4304 }
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317 @Block()
4318 public static class StructureSearchParam extends BaseIdentifiableElement implements IResourceBlock {
4319
4320 @Child(name="name", type=StringDt.class, order=0, min=1, max=1)
4321 @Description(
4322 shortDefinition="Name of search parameter",
4323 formalDefinition="The name of the standard or custom search parameter"
4324 )
4325 private StringDt myName;
4326
4327 @Child(name="type", type=CodeDt.class, order=1, min=1, max=1)
4328 @Description(
4329 shortDefinition="number | date | string | token | reference | composite | quantity",
4330 formalDefinition="The type of value a search parameter refers to, and how the content is interpreted"
4331 )
4332 private BoundCodeDt<SearchParamTypeEnum> myType;
4333
4334 @Child(name="documentation", type=StringDt.class, order=2, min=1, max=1)
4335 @Description(
4336 shortDefinition="Contents and meaning of search parameter",
4337 formalDefinition="A specification for search parameters. For standard parameters, provides additional information on how the parameter is used in this solution. For custom parameters, provides a description of what the parameter does"
4338 )
4339 private StringDt myDocumentation;
4340
4341 @Child(name="xpath", type=StringDt.class, order=3, min=0, max=1)
4342 @Description(
4343 shortDefinition="XPath that extracts the parameter set",
4344 formalDefinition="An XPath expression that returns a set of elements for the search parameter"
4345 )
4346 private StringDt myXpath;
4347
4348 @Child(name="target", type=CodeDt.class, order=4, min=0, max=Child.MAX_UNLIMITED)
4349 @Description(
4350 shortDefinition="Types of resource (if a resource reference)",
4351 formalDefinition="Types of resource (if a resource is referenced)"
4352 )
4353 private java.util.List<BoundCodeDt<ResourceTypeEnum>> myTarget;
4354
4355
4356 @Override
4357 public boolean isEmpty() {
4358 return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myType, myDocumentation, myXpath, myTarget);
4359 }
4360
4361 @Override
4362 public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
4363 return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myType, myDocumentation, myXpath, myTarget);
4364 }
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376 public StringDt getName() {
4377 if (myName == null) {
4378 myName = new StringDt();
4379 }
4380 return myName;
4381 }
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391 public StructureSearchParam setName(StringDt theValue) {
4392 myName = theValue;
4393 return this;
4394 }
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404 public StructureSearchParam setName( String theString) {
4405 myName = new StringDt(theString);
4406 return this;
4407 }
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420 public BoundCodeDt<SearchParamTypeEnum> getType() {
4421 if (myType == null) {
4422 myType = new BoundCodeDt<SearchParamTypeEnum>(SearchParamTypeEnum.VALUESET_BINDER);
4423 }
4424 return myType;
4425 }
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435 public StructureSearchParam setType(BoundCodeDt<SearchParamTypeEnum> theValue) {
4436 myType = theValue;
4437 return this;
4438 }
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448 public StructureSearchParam setType(SearchParamTypeEnum theValue) {
4449 getType().setValueAsEnum(theValue);
4450 return this;
4451 }
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464 public StringDt getDocumentation() {
4465 if (myDocumentation == null) {
4466 myDocumentation = new StringDt();
4467 }
4468 return myDocumentation;
4469 }
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479 public StructureSearchParam setDocumentation(StringDt theValue) {
4480 myDocumentation = theValue;
4481 return this;
4482 }
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492 public StructureSearchParam setDocumentation( String theString) {
4493 myDocumentation = new StringDt(theString);
4494 return this;
4495 }
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508 public StringDt getXpath() {
4509 if (myXpath == null) {
4510 myXpath = new StringDt();
4511 }
4512 return myXpath;
4513 }
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523 public StructureSearchParam setXpath(StringDt theValue) {
4524 myXpath = theValue;
4525 return this;
4526 }
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536 public StructureSearchParam setXpath( String theString) {
4537 myXpath = new StringDt(theString);
4538 return this;
4539 }
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552 public java.util.List<BoundCodeDt<ResourceTypeEnum>> getTarget() {
4553 if (myTarget == null) {
4554 myTarget = new java.util.ArrayList<BoundCodeDt<ResourceTypeEnum>>();
4555 }
4556 return myTarget;
4557 }
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567 public StructureSearchParam setTarget(java.util.List<BoundCodeDt<ResourceTypeEnum>> theValue) {
4568 myTarget = theValue;
4569 return this;
4570 }
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583 public BoundCodeDt<ResourceTypeEnum> addTarget(ResourceTypeEnum theValue) {
4584 BoundCodeDt<ResourceTypeEnum> retVal = new BoundCodeDt<ResourceTypeEnum>(ResourceTypeEnum.VALUESET_BINDER, theValue);
4585 getTarget().add(retVal);
4586 return retVal;
4587 }
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598 public BoundCodeDt<ResourceTypeEnum> getTargetFirstRep() {
4599 if (getTarget().size() == 0) {
4600 addTarget();
4601 }
4602 return getTarget().get(0);
4603 }
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613 public BoundCodeDt<ResourceTypeEnum> addTarget() {
4614 BoundCodeDt<ResourceTypeEnum> retVal = new BoundCodeDt<ResourceTypeEnum>(ResourceTypeEnum.VALUESET_BINDER);
4615 getTarget().add(retVal);
4616 return retVal;
4617 }
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627 public StructureSearchParam setTarget(ResourceTypeEnum theValue) {
4628 getTarget().clear();
4629 addTarget(theValue);
4630 return this;
4631 }
4632
4633
4634
4635 }
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647 @Block()
4648 public static class ExtensionDefn extends BaseIdentifiableElement implements IResourceBlock {
4649
4650 @Child(name="code", type=CodeDt.class, order=0, min=1, max=1)
4651 @Description(
4652 shortDefinition="Identifies the extension in this profile",
4653 formalDefinition="A unique code (within the profile) used to identify the extension"
4654 )
4655 private CodeDt myCode;
4656
4657 @Child(name="display", type=StringDt.class, order=1, min=0, max=1)
4658 @Description(
4659 shortDefinition="Use this name when displaying the value",
4660 formalDefinition="Defined so that applications can use this name when displaying the value of the extension to the user"
4661 )
4662 private StringDt myDisplay;
4663
4664 @Child(name="contextType", type=CodeDt.class, order=2, min=1, max=1)
4665 @Description(
4666 shortDefinition="resource | datatype | mapping | extension",
4667 formalDefinition="Identifies the type of context to which the extension applies"
4668 )
4669 private BoundCodeDt<ExtensionContextEnum> myContextType;
4670
4671 @Child(name="context", type=StringDt.class, order=3, min=1, max=Child.MAX_UNLIMITED)
4672 @Description(
4673 shortDefinition="Where the extension can be used in instances",
4674 formalDefinition="Identifies the types of resource or data type elements to which the extension can be applied"
4675 )
4676 private java.util.List<StringDt> myContext;
4677
4678 @Child(name="definition", type=StructureElementDefinition.class, order=4, min=1, max=1)
4679 @Description(
4680 shortDefinition="Definition of the extension and its content",
4681 formalDefinition="Definition of the extension and its content"
4682 )
4683 private StructureElementDefinition myDefinition;
4684
4685
4686 @Override
4687 public boolean isEmpty() {
4688 return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myDisplay, myContextType, myContext, myDefinition);
4689 }
4690
4691 @Override
4692 public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
4693 return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myDisplay, myContextType, myContext, myDefinition);
4694 }
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706 public CodeDt getCode() {
4707 if (myCode == null) {
4708 myCode = new CodeDt();
4709 }
4710 return myCode;
4711 }
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721 public ExtensionDefn setCode(CodeDt theValue) {
4722 myCode = theValue;
4723 return this;
4724 }
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734 public ExtensionDefn setCode( String theCode) {
4735 myCode = new CodeDt(theCode);
4736 return this;
4737 }
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750 public StringDt getDisplay() {
4751 if (myDisplay == null) {
4752 myDisplay = new StringDt();
4753 }
4754 return myDisplay;
4755 }
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765 public ExtensionDefn setDisplay(StringDt theValue) {
4766 myDisplay = theValue;
4767 return this;
4768 }
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778 public ExtensionDefn setDisplay( String theString) {
4779 myDisplay = new StringDt(theString);
4780 return this;
4781 }
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794 public BoundCodeDt<ExtensionContextEnum> getContextType() {
4795 if (myContextType == null) {
4796 myContextType = new BoundCodeDt<ExtensionContextEnum>(ExtensionContextEnum.VALUESET_BINDER);
4797 }
4798 return myContextType;
4799 }
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809 public ExtensionDefn setContextType(BoundCodeDt<ExtensionContextEnum> theValue) {
4810 myContextType = theValue;
4811 return this;
4812 }
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822 public ExtensionDefn setContextType(ExtensionContextEnum theValue) {
4823 getContextType().setValueAsEnum(theValue);
4824 return this;
4825 }
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838 public java.util.List<StringDt> getContext() {
4839 if (myContext == null) {
4840 myContext = new java.util.ArrayList<StringDt>();
4841 }
4842 return myContext;
4843 }
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853 public ExtensionDefn setContext(java.util.List<StringDt> theValue) {
4854 myContext = theValue;
4855 return this;
4856 }
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866 public StringDt addContext() {
4867 StringDt newType = new StringDt();
4868 getContext().add(newType);
4869 return newType;
4870 }
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881 public StringDt getContextFirstRep() {
4882 if (getContext().isEmpty()) {
4883 return addContext();
4884 }
4885 return getContext().get(0);
4886 }
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897 public ExtensionDefn addContext( String theString) {
4898 if (myContext == null) {
4899 myContext = new java.util.ArrayList<StringDt>();
4900 }
4901 myContext.add(new StringDt(theString));
4902 return this;
4903 }
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916 public StructureElementDefinition getDefinition() {
4917 if (myDefinition == null) {
4918 myDefinition = new StructureElementDefinition();
4919 }
4920 return myDefinition;
4921 }
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931 public ExtensionDefn setDefinition(StructureElementDefinition theValue) {
4932 myDefinition = theValue;
4933 return this;
4934 }
4935
4936
4937
4938 }
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949 @Block()
4950 public static class Query extends BaseIdentifiableElement implements IResourceBlock {
4951
4952 @Child(name="name", type=StringDt.class, order=0, min=1, max=1)
4953 @Description(
4954 shortDefinition="Special named queries (_query=)",
4955 formalDefinition="The name of a query, which is used in the URI from Conformance statements declaring use of the query. Typically this will also be the name for the _query parameter when the query is called, though in some cases it may be aliased by a server to avoid collisions"
4956 )
4957 private StringDt myName;
4958
4959 @Child(name="documentation", type=StringDt.class, order=1, min=1, max=1)
4960 @Description(
4961 shortDefinition="Describes the named query",
4962 formalDefinition="Description of the query - the functionality it offers, and considerations about how it functions and to use it"
4963 )
4964 private StringDt myDocumentation;
4965
4966 @Child(name="parameter", type=StructureSearchParam.class, order=2, min=0, max=Child.MAX_UNLIMITED)
4967 @Description(
4968 shortDefinition="Parameter for the named query",
4969 formalDefinition="A parameter of a named query"
4970 )
4971 private java.util.List<StructureSearchParam> myParameter;
4972
4973
4974 @Override
4975 public boolean isEmpty() {
4976 return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myDocumentation, myParameter);
4977 }
4978
4979 @Override
4980 public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
4981 return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myDocumentation, myParameter);
4982 }
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994 public StringDt getName() {
4995 if (myName == null) {
4996 myName = new StringDt();
4997 }
4998 return myName;
4999 }
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009 public Query setName(StringDt theValue) {
5010 myName = theValue;
5011 return this;
5012 }
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022 public Query setName( String theString) {
5023 myName = new StringDt(theString);
5024 return this;
5025 }
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038 public StringDt getDocumentation() {
5039 if (myDocumentation == null) {
5040 myDocumentation = new StringDt();
5041 }
5042 return myDocumentation;
5043 }
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053 public Query setDocumentation(StringDt theValue) {
5054 myDocumentation = theValue;
5055 return this;
5056 }
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066 public Query setDocumentation( String theString) {
5067 myDocumentation = new StringDt(theString);
5068 return this;
5069 }
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082 public java.util.List<StructureSearchParam> getParameter() {
5083 if (myParameter == null) {
5084 myParameter = new java.util.ArrayList<StructureSearchParam>();
5085 }
5086 return myParameter;
5087 }
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097 public Query setParameter(java.util.List<StructureSearchParam> theValue) {
5098 myParameter = theValue;
5099 return this;
5100 }
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110 public StructureSearchParam addParameter() {
5111 StructureSearchParam newType = new StructureSearchParam();
5112 getParameter().add(newType);
5113 return newType;
5114 }
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125 public StructureSearchParam getParameterFirstRep() {
5126 if (getParameter().isEmpty()) {
5127 return addParameter();
5128 }
5129 return getParameter().get(0);
5130 }
5131
5132
5133 }
5134
5135
5136
5137
5138 }