@@ -33,7 +33,7 @@ class Address(datatype.DataType):
3333 __resource_type__ = "Address"
3434
3535 city : fhirtypes .StringType | None = Field ( # type: ignore
36- None ,
36+ default = None ,
3737 alias = "city" ,
3838 title = "Name of city, town etc." ,
3939 description = (
@@ -42,40 +42,43 @@ class Address(datatype.DataType):
4242 ),
4343 json_schema_extra = {
4444 "element_property" : True ,
45+ "summary_element_property" : True ,
4546 },
4647 )
4748 city__ext : fhirtypes .FHIRPrimitiveExtensionType | None = Field ( # type: ignore
48- None , alias = "_city" , title = "Extension field for ``city``."
49+ default = None , alias = "_city" , title = "Extension field for ``city``."
4950 )
5051
5152 country : fhirtypes .StringType | None = Field ( # type: ignore
52- None ,
53+ default = None ,
5354 alias = "country" ,
5455 title = "Country (e.g. may be ISO 3166 2 or 3 letter code)" ,
5556 description = "Country - a nation as commonly understood or generally accepted." ,
5657 json_schema_extra = {
5758 "element_property" : True ,
59+ "summary_element_property" : True ,
5860 },
5961 )
6062 country__ext : fhirtypes .FHIRPrimitiveExtensionType | None = Field ( # type: ignore
61- None , alias = "_country" , title = "Extension field for ``country``."
63+ default = None , alias = "_country" , title = "Extension field for ``country``."
6264 )
6365
6466 district : fhirtypes .StringType | None = Field ( # type: ignore
65- None ,
67+ default = None ,
6668 alias = "district" ,
6769 title = "District name (aka county)" ,
6870 description = "The name of the administrative area (county)." ,
6971 json_schema_extra = {
7072 "element_property" : True ,
73+ "summary_element_property" : True ,
7174 },
7275 )
7376 district__ext : fhirtypes .FHIRPrimitiveExtensionType | None = Field ( # type: ignore
74- None , alias = "_district" , title = "Extension field for ``district``."
77+ default = None , alias = "_district" , title = "Extension field for ``district``."
7578 )
7679
7780 line : typing .List [fhirtypes .StringType | None ] | None = Field ( # type: ignore
78- None ,
81+ default = None ,
7982 alias = "line" ,
8083 title = "Street name, number, direction & P.O. Box etc." ,
8184 description = (
@@ -85,37 +88,40 @@ class Address(datatype.DataType):
8588 ),
8689 json_schema_extra = {
8790 "element_property" : True ,
91+ "summary_element_property" : True ,
8892 },
8993 )
9094 line__ext : typing .List [fhirtypes .FHIRPrimitiveExtensionType | None ] | None = Field ( # type: ignore
91- None , alias = "_line" , title = "Extension field for ``line``."
95+ default = None , alias = "_line" , title = "Extension field for ``line``."
9296 )
9397
9498 period : fhirtypes .PeriodType | None = Field ( # type: ignore
95- None ,
99+ default = None ,
96100 alias = "period" ,
97101 title = "Time period when address was/is in use" ,
98102 description = None ,
99103 json_schema_extra = {
100104 "element_property" : True ,
105+ "summary_element_property" : True ,
101106 },
102107 )
103108
104109 postalCode : fhirtypes .StringType | None = Field ( # type: ignore
105- None ,
110+ default = None ,
106111 alias = "postalCode" ,
107112 title = "Postal code for area" ,
108113 description = "A postal code designating a region defined by the postal service." ,
109114 json_schema_extra = {
110115 "element_property" : True ,
116+ "summary_element_property" : True ,
111117 },
112118 )
113119 postalCode__ext : fhirtypes .FHIRPrimitiveExtensionType | None = Field ( # type: ignore
114- None , alias = "_postalCode" , title = "Extension field for ``postalCode``."
120+ default = None , alias = "_postalCode" , title = "Extension field for ``postalCode``."
115121 )
116122
117123 state : fhirtypes .StringType | None = Field ( # type: ignore
118- None ,
124+ default = None ,
119125 alias = "state" ,
120126 title = "Sub-unit of country (abbreviations ok)" ,
121127 description = (
@@ -125,14 +131,15 @@ class Address(datatype.DataType):
125131 ),
126132 json_schema_extra = {
127133 "element_property" : True ,
134+ "summary_element_property" : True ,
128135 },
129136 )
130137 state__ext : fhirtypes .FHIRPrimitiveExtensionType | None = Field ( # type: ignore
131- None , alias = "_state" , title = "Extension field for ``state``."
138+ default = None , alias = "_state" , title = "Extension field for ``state``."
132139 )
133140
134141 text : fhirtypes .StringType | None = Field ( # type: ignore
135- None ,
142+ default = None ,
136143 alias = "text" ,
137144 title = "Text representation of the address" ,
138145 description = (
@@ -142,14 +149,15 @@ class Address(datatype.DataType):
142149 ),
143150 json_schema_extra = {
144151 "element_property" : True ,
152+ "summary_element_property" : True ,
145153 },
146154 )
147155 text__ext : fhirtypes .FHIRPrimitiveExtensionType | None = Field ( # type: ignore
148- None , alias = "_text" , title = "Extension field for ``text``."
156+ default = None , alias = "_text" , title = "Extension field for ``text``."
149157 )
150158
151159 type : fhirtypes .CodeType | None = Field ( # type: ignore
152- None ,
160+ default = None ,
153161 alias = "type" ,
154162 title = "postal | physical | both" ,
155163 description = (
@@ -159,36 +167,38 @@ class Address(datatype.DataType):
159167 ),
160168 json_schema_extra = {
161169 "element_property" : True ,
170+ "summary_element_property" : True ,
162171 # note: Enum values can be used in validation,
163172 # but use in your own responsibilities, read official FHIR documentation.
164173 "enum_values" : ["postal" , "physical" , "both" ],
165174 },
166175 )
167176 type__ext : fhirtypes .FHIRPrimitiveExtensionType | None = Field ( # type: ignore
168- None , alias = "_type" , title = "Extension field for ``type``."
177+ default = None , alias = "_type" , title = "Extension field for ``type``."
169178 )
170179
171180 use : fhirtypes .CodeType | None = Field ( # type: ignore
172- None ,
181+ default = None ,
173182 alias = "use" ,
174183 title = "home | work | temp | old | billing - purpose of this address" ,
175184 description = "The purpose of this address." ,
176185 json_schema_extra = {
177186 "element_property" : True ,
187+ "summary_element_property" : True ,
178188 # note: Enum values can be used in validation,
179189 # but use in your own responsibilities, read official FHIR documentation.
180190 "enum_values" : ["home" , "work" , "temp" , "old" , "billing" ],
181191 },
182192 )
183193 use__ext : fhirtypes .FHIRPrimitiveExtensionType | None = Field ( # type: ignore
184- None , alias = "_use" , title = "Extension field for ``use``."
194+ default = None , alias = "_use" , title = "Extension field for ``use``."
185195 )
186196
187197 @classmethod
188198 def elements_sequence (cls ):
189- """returning all elements names from
190- ``Address`` according specification,
191- with preserving original sequence order.
199+ """returning all element names from
200+ ``Address`` according to specification,
201+ with preserving the original sequence order.
192202 """
193203 return [
194204 "id" ,
@@ -204,3 +214,21 @@ def elements_sequence(cls):
204214 "country" ,
205215 "period" ,
206216 ]
217+
218+ @classmethod
219+ def summary_elements_sequence (cls ):
220+ """returning all element names (those have summary mode are enabled) from ``Address`` according to specification,
221+ with preserving the original sequence order.
222+ """
223+ return [
224+ "use" ,
225+ "type" ,
226+ "text" ,
227+ "line" ,
228+ "city" ,
229+ "district" ,
230+ "state" ,
231+ "postalCode" ,
232+ "country" ,
233+ "period" ,
234+ ]
0 commit comments