diff --git a/Makefile b/Makefile index a6096c96..fbc3b352 100644 --- a/Makefile +++ b/Makefile @@ -57,3 +57,15 @@ pipenv-setup:devdocker ## Brings up the bash shell in dev docker .PHONY:shell shell:devdocker ## Brings up the bash shell in dev docker docker-compose run --rm --name sfs_shell dev /bin/bash + +.PHONY:schema +schema: + docker-compose run --rm --name sfs_shell dev python3 spark_fhir_schemas/r4/generate_schema.py && \ + make run-pre-commit + make run-pre-commit + +.PHONY:schema-stu3 +schema-stu3: + docker-compose run --rm --name sfs_shell dev python3 spark_fhir_schemas/stu3/generate_schema.py && \ + make run-pre-commit + make run-pre-commit diff --git a/spark_fhir_schemas/r4/complex_types/account_coverage.py b/spark_fhir_schemas/r4/complex_types/account_coverage.py index 3323ccf2..2349fa10 100644 --- a/spark_fhir_schemas/r4/complex_types/account_coverage.py +++ b/spark_fhir_schemas/r4/complex_types/account_coverage.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -76,6 +62,25 @@ def get_schema( priority: The priority of the coverage in the context of this account. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema from spark_fhir_schemas.r4.simple_types.positiveint import positiveIntSchema diff --git a/spark_fhir_schemas/r4/complex_types/account_guarantor.py b/spark_fhir_schemas/r4/complex_types/account_guarantor.py index d747c0a5..ceba3ba0 100644 --- a/spark_fhir_schemas/r4/complex_types/account_guarantor.py +++ b/spark_fhir_schemas/r4/complex_types/account_guarantor.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -82,6 +68,25 @@ def get_schema( account. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema from spark_fhir_schemas.r4.complex_types.period import PeriodSchema diff --git a/spark_fhir_schemas/r4/complex_types/activitydefinition_dynamicvalue.py b/spark_fhir_schemas/r4/complex_types/activitydefinition_dynamicvalue.py index 2c938e49..44b76e84 100644 --- a/spark_fhir_schemas/r4/complex_types/activitydefinition_dynamicvalue.py +++ b/spark_fhir_schemas/r4/complex_types/activitydefinition_dynamicvalue.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -80,6 +66,25 @@ def get_schema( expression: An expression specifying the value of the customized element. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.expression import ExpressionSchema diff --git a/spark_fhir_schemas/r4/complex_types/activitydefinition_participant.py b/spark_fhir_schemas/r4/complex_types/activitydefinition_participant.py index bf29c884..5a10dfb5 100644 --- a/spark_fhir_schemas/r4/complex_types/activitydefinition_participant.py +++ b/spark_fhir_schemas/r4/complex_types/activitydefinition_participant.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -73,6 +59,25 @@ def get_schema( role: The role the participant should play in performing the described action. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/address.py b/spark_fhir_schemas/r4/complex_types/address.py index 7611f662..6ab8352e 100644 --- a/spark_fhir_schemas/r4/complex_types/address.py +++ b/spark_fhir_schemas/r4/complex_types/address.py @@ -22,21 +22,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -86,6 +72,25 @@ def get_schema( period: Time period when address was/is in use. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.period import PeriodSchema diff --git a/spark_fhir_schemas/r4/complex_types/adverseevent_causality.py b/spark_fhir_schemas/r4/complex_types/adverseevent_causality.py index dc741701..fde66723 100644 --- a/spark_fhir_schemas/r4/complex_types/adverseevent_causality.py +++ b/spark_fhir_schemas/r4/complex_types/adverseevent_causality.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -79,6 +65,25 @@ def get_schema( method: ProbabilityScale | Bayesian | Checklist. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/adverseevent_suspectentity.py b/spark_fhir_schemas/r4/complex_types/adverseevent_suspectentity.py index dc6c109c..9d5ae6f9 100644 --- a/spark_fhir_schemas/r4/complex_types/adverseevent_suspectentity.py +++ b/spark_fhir_schemas/r4/complex_types/adverseevent_suspectentity.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -77,6 +63,25 @@ def get_schema( causality: Information on the possible cause of the event. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema from spark_fhir_schemas.r4.complex_types.adverseevent_causality import ( diff --git a/spark_fhir_schemas/r4/complex_types/age.py b/spark_fhir_schemas/r4/complex_types/age.py index 3dc45f9f..549482e3 100644 --- a/spark_fhir_schemas/r4/complex_types/age.py +++ b/spark_fhir_schemas/r4/complex_types/age.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -64,6 +50,25 @@ def get_schema( code: A computer processable form of the unit in some unit representation system. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.decimal import decimalSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/complex_types/allergyintolerance_reaction.py b/spark_fhir_schemas/r4/complex_types/allergyintolerance_reaction.py index 57c17f78..5815edfa 100644 --- a/spark_fhir_schemas/r4/complex_types/allergyintolerance_reaction.py +++ b/spark_fhir_schemas/r4/complex_types/allergyintolerance_reaction.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -94,6 +80,25 @@ def get_schema( note: Additional text about the adverse reaction event not captured in other fields. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/annotation.py b/spark_fhir_schemas/r4/complex_types/annotation.py index 9b272c9f..641e1b46 100644 --- a/spark_fhir_schemas/r4/complex_types/annotation.py +++ b/spark_fhir_schemas/r4/complex_types/annotation.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -61,6 +47,25 @@ def get_schema( text: The text of the annotation in markdown format. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema from spark_fhir_schemas.r4.simple_types.datetime import dateTimeSchema diff --git a/spark_fhir_schemas/r4/complex_types/appointment_participant.py b/spark_fhir_schemas/r4/complex_types/appointment_participant.py index a76a6067..20cc9909 100644 --- a/spark_fhir_schemas/r4/complex_types/appointment_participant.py +++ b/spark_fhir_schemas/r4/complex_types/appointment_participant.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -82,6 +68,25 @@ def get_schema( period: Participation period of the actor. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/attachment.py b/spark_fhir_schemas/r4/complex_types/attachment.py index a13e126b..ff7047ff 100644 --- a/spark_fhir_schemas/r4/complex_types/attachment.py +++ b/spark_fhir_schemas/r4/complex_types/attachment.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -71,6 +57,25 @@ def get_schema( creation: The date that the attachment was first created. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema from spark_fhir_schemas.r4.simple_types.base64binary import base64BinarySchema diff --git a/spark_fhir_schemas/r4/complex_types/auditevent_agent.py b/spark_fhir_schemas/r4/complex_types/auditevent_agent.py index 61ce242e..534fef42 100644 --- a/spark_fhir_schemas/r4/complex_types/auditevent_agent.py +++ b/spark_fhir_schemas/r4/complex_types/auditevent_agent.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -110,6 +96,25 @@ def get_schema( event being recorded. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/auditevent_detail.py b/spark_fhir_schemas/r4/complex_types/auditevent_detail.py index 598af4d0..f8523cd5 100644 --- a/spark_fhir_schemas/r4/complex_types/auditevent_detail.py +++ b/spark_fhir_schemas/r4/complex_types/auditevent_detail.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -75,6 +61,25 @@ def get_schema( valueBase64Binary: The value of the extra detail. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema if ( diff --git a/spark_fhir_schemas/r4/complex_types/auditevent_entity.py b/spark_fhir_schemas/r4/complex_types/auditevent_entity.py index 8ee6ceb4..21cd202f 100644 --- a/spark_fhir_schemas/r4/complex_types/auditevent_entity.py +++ b/spark_fhir_schemas/r4/complex_types/auditevent_entity.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -88,6 +74,25 @@ def get_schema( detail: Tagged value pairs for conveying additional information about the entity. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema from spark_fhir_schemas.r4.complex_types.coding import CodingSchema diff --git a/spark_fhir_schemas/r4/complex_types/auditevent_network.py b/spark_fhir_schemas/r4/complex_types/auditevent_network.py index 6f7cd318..20396a7e 100644 --- a/spark_fhir_schemas/r4/complex_types/auditevent_network.py +++ b/spark_fhir_schemas/r4/complex_types/auditevent_network.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -75,6 +61,25 @@ def get_schema( event. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema if ( diff --git a/spark_fhir_schemas/r4/complex_types/auditevent_source.py b/spark_fhir_schemas/r4/complex_types/auditevent_source.py index bf6792d5..e34347e5 100644 --- a/spark_fhir_schemas/r4/complex_types/auditevent_source.py +++ b/spark_fhir_schemas/r4/complex_types/auditevent_source.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -77,6 +63,25 @@ def get_schema( type: Code specifying the type of source where event originated. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema from spark_fhir_schemas.r4.complex_types.coding import CodingSchema diff --git a/spark_fhir_schemas/r4/complex_types/biologicallyderivedproduct_collection.py b/spark_fhir_schemas/r4/complex_types/biologicallyderivedproduct_collection.py index 95a686b3..9c958a8e 100644 --- a/spark_fhir_schemas/r4/complex_types/biologicallyderivedproduct_collection.py +++ b/spark_fhir_schemas/r4/complex_types/biologicallyderivedproduct_collection.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -85,6 +71,25 @@ def get_schema( collectedPeriod: Time of product collection. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema from spark_fhir_schemas.r4.complex_types.period import PeriodSchema diff --git a/spark_fhir_schemas/r4/complex_types/biologicallyderivedproduct_manipulation.py b/spark_fhir_schemas/r4/complex_types/biologicallyderivedproduct_manipulation.py index 71d14d6b..9bf347cf 100644 --- a/spark_fhir_schemas/r4/complex_types/biologicallyderivedproduct_manipulation.py +++ b/spark_fhir_schemas/r4/complex_types/biologicallyderivedproduct_manipulation.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -82,6 +68,25 @@ def get_schema( timePeriod: Time of manipulation. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.period import PeriodSchema diff --git a/spark_fhir_schemas/r4/complex_types/biologicallyderivedproduct_processing.py b/spark_fhir_schemas/r4/complex_types/biologicallyderivedproduct_processing.py index 04ed62c0..581872f4 100644 --- a/spark_fhir_schemas/r4/complex_types/biologicallyderivedproduct_processing.py +++ b/spark_fhir_schemas/r4/complex_types/biologicallyderivedproduct_processing.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -86,6 +72,25 @@ def get_schema( timePeriod: Time of processing. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/biologicallyderivedproduct_storage.py b/spark_fhir_schemas/r4/complex_types/biologicallyderivedproduct_storage.py index a5d3e46e..cb043658 100644 --- a/spark_fhir_schemas/r4/complex_types/biologicallyderivedproduct_storage.py +++ b/spark_fhir_schemas/r4/complex_types/biologicallyderivedproduct_storage.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -77,6 +63,25 @@ def get_schema( duration: Storage timeperiod. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.decimal import decimalSchema from spark_fhir_schemas.r4.complex_types.period import PeriodSchema diff --git a/spark_fhir_schemas/r4/complex_types/bundle_entry.py b/spark_fhir_schemas/r4/complex_types/bundle_entry.py index 85955637..a7befb43 100644 --- a/spark_fhir_schemas/r4/complex_types/bundle_entry.py +++ b/spark_fhir_schemas/r4/complex_types/bundle_entry.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -89,6 +75,25 @@ def get_schema( where when returning history. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.bundle_link import Bundle_LinkSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/complex_types/bundle_link.py b/spark_fhir_schemas/r4/complex_types/bundle_link.py index 096cb850..22b111e4 100644 --- a/spark_fhir_schemas/r4/complex_types/bundle_link.py +++ b/spark_fhir_schemas/r4/complex_types/bundle_link.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -72,6 +58,25 @@ def get_schema( url: The reference details for the link. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/complex_types/bundle_request.py b/spark_fhir_schemas/r4/complex_types/bundle_request.py index a2e92fe7..d7be0396 100644 --- a/spark_fhir_schemas/r4/complex_types/bundle_request.py +++ b/spark_fhir_schemas/r4/complex_types/bundle_request.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -85,6 +71,25 @@ def get_schema( follows the "?" (not including the "?"). """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema from spark_fhir_schemas.r4.simple_types.instant import instantSchema diff --git a/spark_fhir_schemas/r4/complex_types/bundle_response.py b/spark_fhir_schemas/r4/complex_types/bundle_response.py index 2c61ccb4..82c340fd 100644 --- a/spark_fhir_schemas/r4/complex_types/bundle_response.py +++ b/spark_fhir_schemas/r4/complex_types/bundle_response.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -81,6 +67,25 @@ def get_schema( processing this entry in a batch or transaction. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema from spark_fhir_schemas.r4.simple_types.instant import instantSchema diff --git a/spark_fhir_schemas/r4/complex_types/bundle_search.py b/spark_fhir_schemas/r4/complex_types/bundle_search.py index 0b577f03..57f522c5 100644 --- a/spark_fhir_schemas/r4/complex_types/bundle_search.py +++ b/spark_fhir_schemas/r4/complex_types/bundle_search.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -71,6 +57,25 @@ def get_schema( score: When searching, the server's search ranking score for the entry. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.decimal import decimalSchema diff --git a/spark_fhir_schemas/r4/complex_types/capabilitystatement_document.py b/spark_fhir_schemas/r4/complex_types/capabilitystatement_document.py index 4489f321..67ff7d5f 100644 --- a/spark_fhir_schemas/r4/complex_types/capabilitystatement_document.py +++ b/spark_fhir_schemas/r4/complex_types/capabilitystatement_document.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -81,6 +67,25 @@ def get_schema( and their contents. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.markdown import markdownSchema from spark_fhir_schemas.r4.simple_types.canonical import canonicalSchema diff --git a/spark_fhir_schemas/r4/complex_types/capabilitystatement_endpoint.py b/spark_fhir_schemas/r4/complex_types/capabilitystatement_endpoint.py index c16d30a5..2d34029b 100644 --- a/spark_fhir_schemas/r4/complex_types/capabilitystatement_endpoint.py +++ b/spark_fhir_schemas/r4/complex_types/capabilitystatement_endpoint.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -77,6 +63,25 @@ def get_schema( addresses for routing, it can be just an identifier. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.coding import CodingSchema from spark_fhir_schemas.r4.simple_types.url import urlSchema diff --git a/spark_fhir_schemas/r4/complex_types/capabilitystatement_implementation.py b/spark_fhir_schemas/r4/complex_types/capabilitystatement_implementation.py index f30c5f17..9306ad81 100644 --- a/spark_fhir_schemas/r4/complex_types/capabilitystatement_implementation.py +++ b/spark_fhir_schemas/r4/complex_types/capabilitystatement_implementation.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -80,6 +66,25 @@ def get_schema( of the data on the server at the specified URL. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.url import urlSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema diff --git a/spark_fhir_schemas/r4/complex_types/capabilitystatement_interaction.py b/spark_fhir_schemas/r4/complex_types/capabilitystatement_interaction.py index c5c035f0..e2db30c3 100644 --- a/spark_fhir_schemas/r4/complex_types/capabilitystatement_interaction.py +++ b/spark_fhir_schemas/r4/complex_types/capabilitystatement_interaction.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -77,6 +63,25 @@ def get_schema( permitted from pre-authorized certificates only'. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.markdown import markdownSchema diff --git a/spark_fhir_schemas/r4/complex_types/capabilitystatement_interaction1.py b/spark_fhir_schemas/r4/complex_types/capabilitystatement_interaction1.py index e8ad562a..9d908016 100644 --- a/spark_fhir_schemas/r4/complex_types/capabilitystatement_interaction1.py +++ b/spark_fhir_schemas/r4/complex_types/capabilitystatement_interaction1.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -77,6 +63,25 @@ def get_schema( is implemented. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.markdown import markdownSchema diff --git a/spark_fhir_schemas/r4/complex_types/capabilitystatement_messaging.py b/spark_fhir_schemas/r4/complex_types/capabilitystatement_messaging.py index 8c5d6100..6086e9fa 100644 --- a/spark_fhir_schemas/r4/complex_types/capabilitystatement_messaging.py +++ b/spark_fhir_schemas/r4/complex_types/capabilitystatement_messaging.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -84,6 +70,25 @@ def get_schema( receive. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.capabilitystatement_endpoint import ( CapabilityStatement_EndpointSchema, diff --git a/spark_fhir_schemas/r4/complex_types/capabilitystatement_operation.py b/spark_fhir_schemas/r4/complex_types/capabilitystatement_operation.py index 61e933fa..40fe1b34 100644 --- a/spark_fhir_schemas/r4/complex_types/capabilitystatement_operation.py +++ b/spark_fhir_schemas/r4/complex_types/capabilitystatement_operation.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -88,6 +74,25 @@ def get_schema( invocation of the operation. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.canonical import canonicalSchema from spark_fhir_schemas.r4.simple_types.markdown import markdownSchema diff --git a/spark_fhir_schemas/r4/complex_types/capabilitystatement_resource.py b/spark_fhir_schemas/r4/complex_types/capabilitystatement_resource.py index 1802ada6..25001fc1 100644 --- a/spark_fhir_schemas/r4/complex_types/capabilitystatement_resource.py +++ b/spark_fhir_schemas/r4/complex_types/capabilitystatement_resource.py @@ -28,21 +28,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -134,6 +120,25 @@ def get_schema( about how to invoke the operation, and the parameters. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema from spark_fhir_schemas.r4.simple_types.canonical import canonicalSchema diff --git a/spark_fhir_schemas/r4/complex_types/capabilitystatement_rest.py b/spark_fhir_schemas/r4/complex_types/capabilitystatement_rest.py index 5080d2a3..3e4753bd 100644 --- a/spark_fhir_schemas/r4/complex_types/capabilitystatement_rest.py +++ b/spark_fhir_schemas/r4/complex_types/capabilitystatement_rest.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -97,6 +83,25 @@ def get_schema( its canonical URL . """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.markdown import markdownSchema from spark_fhir_schemas.r4.complex_types.capabilitystatement_security import ( diff --git a/spark_fhir_schemas/r4/complex_types/capabilitystatement_searchparam.py b/spark_fhir_schemas/r4/complex_types/capabilitystatement_searchparam.py index 131c615a..33b56345 100644 --- a/spark_fhir_schemas/r4/complex_types/capabilitystatement_searchparam.py +++ b/spark_fhir_schemas/r4/complex_types/capabilitystatement_searchparam.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -85,6 +71,25 @@ def get_schema( parameter is used. For example, text matching algorithms. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.canonical import canonicalSchema from spark_fhir_schemas.r4.simple_types.markdown import markdownSchema diff --git a/spark_fhir_schemas/r4/complex_types/capabilitystatement_security.py b/spark_fhir_schemas/r4/complex_types/capabilitystatement_security.py index ffb8780f..96b76e4a 100644 --- a/spark_fhir_schemas/r4/complex_types/capabilitystatement_security.py +++ b/spark_fhir_schemas/r4/complex_types/capabilitystatement_security.py @@ -28,21 +28,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -85,6 +71,25 @@ def get_schema( description: General description of how security works. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/capabilitystatement_software.py b/spark_fhir_schemas/r4/complex_types/capabilitystatement_software.py index a9c858b9..10260ff9 100644 --- a/spark_fhir_schemas/r4/complex_types/capabilitystatement_software.py +++ b/spark_fhir_schemas/r4/complex_types/capabilitystatement_software.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -77,6 +63,25 @@ def get_schema( releaseDate: Date this version of the software was released. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.datetime import dateTimeSchema diff --git a/spark_fhir_schemas/r4/complex_types/capabilitystatement_supportedmessage.py b/spark_fhir_schemas/r4/complex_types/capabilitystatement_supportedmessage.py index edb3e7a8..bf543cb9 100644 --- a/spark_fhir_schemas/r4/complex_types/capabilitystatement_supportedmessage.py +++ b/spark_fhir_schemas/r4/complex_types/capabilitystatement_supportedmessage.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -77,6 +63,25 @@ def get_schema( structure, allowed responses, etc. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.canonical import canonicalSchema diff --git a/spark_fhir_schemas/r4/complex_types/careplan_activity.py b/spark_fhir_schemas/r4/complex_types/careplan_activity.py index f4e867d3..e3ec9ea3 100644 --- a/spark_fhir_schemas/r4/complex_types/careplan_activity.py +++ b/spark_fhir_schemas/r4/complex_types/careplan_activity.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -87,6 +73,25 @@ def get_schema( procedure etc. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/careplan_detail.py b/spark_fhir_schemas/r4/complex_types/careplan_detail.py index f104d7f3..1e490891 100644 --- a/spark_fhir_schemas/r4/complex_types/careplan_detail.py +++ b/spark_fhir_schemas/r4/complex_types/careplan_detail.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -138,6 +124,25 @@ def get_schema( specifics about the activity such as body site, method, route, etc. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema from spark_fhir_schemas.r4.simple_types.canonical import canonicalSchema diff --git a/spark_fhir_schemas/r4/complex_types/careteam_participant.py b/spark_fhir_schemas/r4/complex_types/careteam_participant.py index ee169e46..4579dc03 100644 --- a/spark_fhir_schemas/r4/complex_types/careteam_participant.py +++ b/spark_fhir_schemas/r4/complex_types/careteam_participant.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -79,6 +65,25 @@ def get_schema( come into effect and end. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/catalogentry_relatedentry.py b/spark_fhir_schemas/r4/complex_types/catalogentry_relatedentry.py index b0002644..af7f024f 100644 --- a/spark_fhir_schemas/r4/complex_types/catalogentry_relatedentry.py +++ b/spark_fhir_schemas/r4/complex_types/catalogentry_relatedentry.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -70,6 +56,25 @@ def get_schema( item: The reference to the related item. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema diff --git a/spark_fhir_schemas/r4/complex_types/chargeitem_performer.py b/spark_fhir_schemas/r4/complex_types/chargeitem_performer.py index f2026816..03192cf4 100644 --- a/spark_fhir_schemas/r4/complex_types/chargeitem_performer.py +++ b/spark_fhir_schemas/r4/complex_types/chargeitem_performer.py @@ -22,21 +22,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -78,6 +64,25 @@ def get_schema( actor: The device, practitioner, etc. who performed or participated in the service. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/chargeitemdefinition_applicability.py b/spark_fhir_schemas/r4/complex_types/chargeitemdefinition_applicability.py index c645133e..0ba04f74 100644 --- a/spark_fhir_schemas/r4/complex_types/chargeitemdefinition_applicability.py +++ b/spark_fhir_schemas/r4/complex_types/chargeitemdefinition_applicability.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -83,6 +69,25 @@ def get_schema( definition is applied. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema if ( diff --git a/spark_fhir_schemas/r4/complex_types/chargeitemdefinition_pricecomponent.py b/spark_fhir_schemas/r4/complex_types/chargeitemdefinition_pricecomponent.py index 63b6c61c..5beda44a 100644 --- a/spark_fhir_schemas/r4/complex_types/chargeitemdefinition_pricecomponent.py +++ b/spark_fhir_schemas/r4/complex_types/chargeitemdefinition_pricecomponent.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -81,6 +67,25 @@ def get_schema( amount: The amount calculated for this component. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/chargeitemdefinition_propertygroup.py b/spark_fhir_schemas/r4/complex_types/chargeitemdefinition_propertygroup.py index 7164a761..4678deb8 100644 --- a/spark_fhir_schemas/r4/complex_types/chargeitemdefinition_propertygroup.py +++ b/spark_fhir_schemas/r4/complex_types/chargeitemdefinition_propertygroup.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -80,6 +66,25 @@ def get_schema( have been calculated. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.chargeitemdefinition_applicability import ( ChargeItemDefinition_ApplicabilitySchema, diff --git a/spark_fhir_schemas/r4/complex_types/claim_accident.py b/spark_fhir_schemas/r4/complex_types/claim_accident.py index b314fce9..555ee537 100644 --- a/spark_fhir_schemas/r4/complex_types/claim_accident.py +++ b/spark_fhir_schemas/r4/complex_types/claim_accident.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -87,6 +73,25 @@ def get_schema( locationReference: The physical location of the accident event. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/claim_careteam.py b/spark_fhir_schemas/r4/complex_types/claim_careteam.py index 6ef097b3..f1ec3d4d 100644 --- a/spark_fhir_schemas/r4/complex_types/claim_careteam.py +++ b/spark_fhir_schemas/r4/complex_types/claim_careteam.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -88,6 +74,25 @@ def get_schema( qualification: The qualification of the practitioner which is applicable for this service. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.positiveint import positiveIntSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema diff --git a/spark_fhir_schemas/r4/complex_types/claim_detail.py b/spark_fhir_schemas/r4/complex_types/claim_detail.py index 0c6ca2c4..0cb6188f 100644 --- a/spark_fhir_schemas/r4/complex_types/claim_detail.py +++ b/spark_fhir_schemas/r4/complex_types/claim_detail.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -103,6 +89,25 @@ def get_schema( sub-details which are simple items. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.positiveint import positiveIntSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/claim_diagnosis.py b/spark_fhir_schemas/r4/complex_types/claim_diagnosis.py index 4a674db4..67eb505b 100644 --- a/spark_fhir_schemas/r4/complex_types/claim_diagnosis.py +++ b/spark_fhir_schemas/r4/complex_types/claim_diagnosis.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -85,6 +71,25 @@ def get_schema( predetermined grouping code system. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.positiveint import positiveIntSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/claim_insurance.py b/spark_fhir_schemas/r4/complex_types/claim_insurance.py index 566a7d9c..fe016176 100644 --- a/spark_fhir_schemas/r4/complex_types/claim_insurance.py +++ b/spark_fhir_schemas/r4/complex_types/claim_insurance.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -99,6 +85,25 @@ def get_schema( this insurance. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.positiveint import positiveIntSchema from spark_fhir_schemas.r4.complex_types.identifier import IdentifierSchema diff --git a/spark_fhir_schemas/r4/complex_types/claim_item.py b/spark_fhir_schemas/r4/complex_types/claim_item.py index b39ea3a3..961a6348 100644 --- a/spark_fhir_schemas/r4/complex_types/claim_item.py +++ b/spark_fhir_schemas/r4/complex_types/claim_item.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -138,6 +124,25 @@ def get_schema( sub-details which are simple items. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.positiveint import positiveIntSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/claim_payee.py b/spark_fhir_schemas/r4/complex_types/claim_payee.py index bf1ff761..dc449b40 100644 --- a/spark_fhir_schemas/r4/complex_types/claim_payee.py +++ b/spark_fhir_schemas/r4/complex_types/claim_payee.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -73,6 +59,25 @@ def get_schema( party: Reference to the individual or organization to whom any payment will be made. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/claim_procedure.py b/spark_fhir_schemas/r4/complex_types/claim_procedure.py index fd4fa1fe..2370b6ec 100644 --- a/spark_fhir_schemas/r4/complex_types/claim_procedure.py +++ b/spark_fhir_schemas/r4/complex_types/claim_procedure.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -83,6 +69,25 @@ def get_schema( udi: Unique Device Identifiers associated with this line item. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.positiveint import positiveIntSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/claim_related.py b/spark_fhir_schemas/r4/complex_types/claim_related.py index dd8885b7..02ee57a8 100644 --- a/spark_fhir_schemas/r4/complex_types/claim_related.py +++ b/spark_fhir_schemas/r4/complex_types/claim_related.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -76,6 +62,25 @@ def get_schema( particular claim pertains. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/claim_subdetail.py b/spark_fhir_schemas/r4/complex_types/claim_subdetail.py index 42c198b8..6786b1c7 100644 --- a/spark_fhir_schemas/r4/complex_types/claim_subdetail.py +++ b/spark_fhir_schemas/r4/complex_types/claim_subdetail.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -100,6 +86,25 @@ def get_schema( udi: Unique Device Identifiers associated with this line item. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.positiveint import positiveIntSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/claim_supportinginfo.py b/spark_fhir_schemas/r4/complex_types/claim_supportinginfo.py index 7354ecb2..bfc543be 100644 --- a/spark_fhir_schemas/r4/complex_types/claim_supportinginfo.py +++ b/spark_fhir_schemas/r4/complex_types/claim_supportinginfo.py @@ -28,21 +28,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -108,6 +94,25 @@ def get_schema( addition to the content. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.positiveint import positiveIntSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/claimresponse_additem.py b/spark_fhir_schemas/r4/complex_types/claimresponse_additem.py index 84789c5e..70d58099 100644 --- a/spark_fhir_schemas/r4/complex_types/claimresponse_additem.py +++ b/spark_fhir_schemas/r4/complex_types/claimresponse_additem.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -129,6 +115,25 @@ def get_schema( detail: The second-tier service adjudications for payor added services. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.positiveint import positiveIntSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema diff --git a/spark_fhir_schemas/r4/complex_types/claimresponse_adjudication.py b/spark_fhir_schemas/r4/complex_types/claimresponse_adjudication.py index f1390931..00e94adb 100644 --- a/spark_fhir_schemas/r4/complex_types/claimresponse_adjudication.py +++ b/spark_fhir_schemas/r4/complex_types/claimresponse_adjudication.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -81,6 +67,25 @@ def get_schema( amount element above. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/claimresponse_detail.py b/spark_fhir_schemas/r4/complex_types/claimresponse_detail.py index 2b41b20f..3dfba613 100644 --- a/spark_fhir_schemas/r4/complex_types/claimresponse_detail.py +++ b/spark_fhir_schemas/r4/complex_types/claimresponse_detail.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -76,6 +62,25 @@ def get_schema( subDetail: A sub-detail adjudication of a simple product or service. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.positiveint import positiveIntSchema from spark_fhir_schemas.r4.complex_types.claimresponse_adjudication import ( diff --git a/spark_fhir_schemas/r4/complex_types/claimresponse_detail1.py b/spark_fhir_schemas/r4/complex_types/claimresponse_detail1.py index b704491f..223c45fe 100644 --- a/spark_fhir_schemas/r4/complex_types/claimresponse_detail1.py +++ b/spark_fhir_schemas/r4/complex_types/claimresponse_detail1.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -94,6 +80,25 @@ def get_schema( subDetail: The third-tier service adjudications for payor added services. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/claimresponse_error.py b/spark_fhir_schemas/r4/complex_types/claimresponse_error.py index 807644e8..8365cbc4 100644 --- a/spark_fhir_schemas/r4/complex_types/claimresponse_error.py +++ b/spark_fhir_schemas/r4/complex_types/claimresponse_error.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -81,6 +67,25 @@ def get_schema( not be adjudicated. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.positiveint import positiveIntSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/claimresponse_insurance.py b/spark_fhir_schemas/r4/complex_types/claimresponse_insurance.py index 165d238b..e70a3516 100644 --- a/spark_fhir_schemas/r4/complex_types/claimresponse_insurance.py +++ b/spark_fhir_schemas/r4/complex_types/claimresponse_insurance.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -90,6 +76,25 @@ def get_schema( this insurance. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.positiveint import positiveIntSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema diff --git a/spark_fhir_schemas/r4/complex_types/claimresponse_item.py b/spark_fhir_schemas/r4/complex_types/claimresponse_item.py index db9d9a82..81a26a4f 100644 --- a/spark_fhir_schemas/r4/complex_types/claimresponse_item.py +++ b/spark_fhir_schemas/r4/complex_types/claimresponse_item.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -79,6 +65,25 @@ def get_schema( details which are simple items. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.positiveint import positiveIntSchema from spark_fhir_schemas.r4.complex_types.claimresponse_adjudication import ( diff --git a/spark_fhir_schemas/r4/complex_types/claimresponse_payment.py b/spark_fhir_schemas/r4/complex_types/claimresponse_payment.py index 15886ff3..42393881 100644 --- a/spark_fhir_schemas/r4/complex_types/claimresponse_payment.py +++ b/spark_fhir_schemas/r4/complex_types/claimresponse_payment.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -87,6 +73,25 @@ def get_schema( identifier: Issuer's unique identifier for the payment instrument. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/claimresponse_processnote.py b/spark_fhir_schemas/r4/complex_types/claimresponse_processnote.py index a6ab8aaf..856ffb53 100644 --- a/spark_fhir_schemas/r4/complex_types/claimresponse_processnote.py +++ b/spark_fhir_schemas/r4/complex_types/claimresponse_processnote.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -75,6 +61,25 @@ def get_schema( language: A code to define the language used in the text of the note. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.positiveint import positiveIntSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/claimresponse_subdetail.py b/spark_fhir_schemas/r4/complex_types/claimresponse_subdetail.py index f870bdd0..df78cb2e 100644 --- a/spark_fhir_schemas/r4/complex_types/claimresponse_subdetail.py +++ b/spark_fhir_schemas/r4/complex_types/claimresponse_subdetail.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -74,6 +60,25 @@ def get_schema( adjudication: The adjudication results. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.positiveint import positiveIntSchema from spark_fhir_schemas.r4.complex_types.claimresponse_adjudication import ( diff --git a/spark_fhir_schemas/r4/complex_types/claimresponse_subdetail1.py b/spark_fhir_schemas/r4/complex_types/claimresponse_subdetail1.py index 37fbfb60..12f0267e 100644 --- a/spark_fhir_schemas/r4/complex_types/claimresponse_subdetail1.py +++ b/spark_fhir_schemas/r4/complex_types/claimresponse_subdetail1.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -92,6 +78,25 @@ def get_schema( adjudication: The adjudication results. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/claimresponse_total.py b/spark_fhir_schemas/r4/complex_types/claimresponse_total.py index 8ad25b60..767ce39d 100644 --- a/spark_fhir_schemas/r4/complex_types/claimresponse_total.py +++ b/spark_fhir_schemas/r4/complex_types/claimresponse_total.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -75,6 +61,25 @@ def get_schema( amount: Monetary total amount associated with the category. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/clinicalimpression_finding.py b/spark_fhir_schemas/r4/complex_types/clinicalimpression_finding.py index d4bd8911..69f6905a 100644 --- a/spark_fhir_schemas/r4/complex_types/clinicalimpression_finding.py +++ b/spark_fhir_schemas/r4/complex_types/clinicalimpression_finding.py @@ -24,21 +24,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -85,6 +71,25 @@ def get_schema( basis: Which investigations support finding or diagnosis. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/clinicalimpression_investigation.py b/spark_fhir_schemas/r4/complex_types/clinicalimpression_investigation.py index 4ca33888..14f1ae6f 100644 --- a/spark_fhir_schemas/r4/complex_types/clinicalimpression_investigation.py +++ b/spark_fhir_schemas/r4/complex_types/clinicalimpression_investigation.py @@ -24,21 +24,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -84,6 +70,25 @@ def get_schema( item: A record of a specific investigation that was undertaken. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/codeableconcept.py b/spark_fhir_schemas/r4/complex_types/codeableconcept.py index 1c933e27..a8f8da0b 100644 --- a/spark_fhir_schemas/r4/complex_types/codeableconcept.py +++ b/spark_fhir_schemas/r4/complex_types/codeableconcept.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -59,6 +45,25 @@ def get_schema( user. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.coding import CodingSchema diff --git a/spark_fhir_schemas/r4/complex_types/codesystem_concept.py b/spark_fhir_schemas/r4/complex_types/codesystem_concept.py index f46d69d1..edd789b6 100644 --- a/spark_fhir_schemas/r4/complex_types/codesystem_concept.py +++ b/spark_fhir_schemas/r4/complex_types/codesystem_concept.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -89,6 +75,25 @@ def get_schema( hierarchyMeaning. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema from spark_fhir_schemas.r4.complex_types.codesystem_designation import ( diff --git a/spark_fhir_schemas/r4/complex_types/codesystem_designation.py b/spark_fhir_schemas/r4/complex_types/codesystem_designation.py index 912d1d6d..2ca4a1a2 100644 --- a/spark_fhir_schemas/r4/complex_types/codesystem_designation.py +++ b/spark_fhir_schemas/r4/complex_types/codesystem_designation.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -75,6 +61,25 @@ def get_schema( value: The text value for this designation. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema from spark_fhir_schemas.r4.complex_types.coding import CodingSchema diff --git a/spark_fhir_schemas/r4/complex_types/codesystem_filter.py b/spark_fhir_schemas/r4/complex_types/codesystem_filter.py index 06edee81..85fac4c7 100644 --- a/spark_fhir_schemas/r4/complex_types/codesystem_filter.py +++ b/spark_fhir_schemas/r4/complex_types/codesystem_filter.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -78,6 +64,25 @@ def get_schema( value: A description of what the value for the filter should be. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema diff --git a/spark_fhir_schemas/r4/complex_types/codesystem_property.py b/spark_fhir_schemas/r4/complex_types/codesystem_property.py index e4c8b10a..ef0ada08 100644 --- a/spark_fhir_schemas/r4/complex_types/codesystem_property.py +++ b/spark_fhir_schemas/r4/complex_types/codesystem_property.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -83,6 +69,25 @@ def get_schema( defined by the code system (e.g. a reference to another defined concept). """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/complex_types/codesystem_property1.py b/spark_fhir_schemas/r4/complex_types/codesystem_property1.py index fe1a716a..91e7c4b5 100644 --- a/spark_fhir_schemas/r4/complex_types/codesystem_property1.py +++ b/spark_fhir_schemas/r4/complex_types/codesystem_property1.py @@ -30,21 +30,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -95,6 +81,25 @@ def get_schema( valueDecimal: The value of this property. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema from spark_fhir_schemas.r4.complex_types.coding import CodingSchema diff --git a/spark_fhir_schemas/r4/complex_types/coding.py b/spark_fhir_schemas/r4/complex_types/coding.py index 2bbd31da..8623ec4e 100644 --- a/spark_fhir_schemas/r4/complex_types/coding.py +++ b/spark_fhir_schemas/r4/complex_types/coding.py @@ -25,21 +25,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -77,6 +63,25 @@ def get_schema( list of available items (codes or displays). """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema diff --git a/spark_fhir_schemas/r4/complex_types/communication_payload.py b/spark_fhir_schemas/r4/complex_types/communication_payload.py index 20deb773..367544e8 100644 --- a/spark_fhir_schemas/r4/complex_types/communication_payload.py +++ b/spark_fhir_schemas/r4/complex_types/communication_payload.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -78,6 +64,25 @@ def get_schema( communication). """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.attachment import AttachmentSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema diff --git a/spark_fhir_schemas/r4/complex_types/communicationrequest_payload.py b/spark_fhir_schemas/r4/complex_types/communicationrequest_payload.py index 1431c439..837538e6 100644 --- a/spark_fhir_schemas/r4/complex_types/communicationrequest_payload.py +++ b/spark_fhir_schemas/r4/complex_types/communicationrequest_payload.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -78,6 +64,25 @@ def get_schema( communication). """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.attachment import AttachmentSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema diff --git a/spark_fhir_schemas/r4/complex_types/compartmentdefinition_resource.py b/spark_fhir_schemas/r4/complex_types/compartmentdefinition_resource.py index 5abc2316..65bb5308 100644 --- a/spark_fhir_schemas/r4/complex_types/compartmentdefinition_resource.py +++ b/spark_fhir_schemas/r4/complex_types/compartmentdefinition_resource.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -73,6 +59,25 @@ def get_schema( documentation: Additional documentation about the resource and compartment. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema diff --git a/spark_fhir_schemas/r4/complex_types/composition_attester.py b/spark_fhir_schemas/r4/complex_types/composition_attester.py index 82a24ea7..61c359fe 100644 --- a/spark_fhir_schemas/r4/complex_types/composition_attester.py +++ b/spark_fhir_schemas/r4/complex_types/composition_attester.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -87,6 +73,25 @@ def get_schema( party: Who attested the composition in the specified way. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.datetime import dateTimeSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema diff --git a/spark_fhir_schemas/r4/complex_types/composition_event.py b/spark_fhir_schemas/r4/complex_types/composition_event.py index ac0e684e..9224b124 100644 --- a/spark_fhir_schemas/r4/complex_types/composition_event.py +++ b/spark_fhir_schemas/r4/complex_types/composition_event.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -93,6 +79,25 @@ def get_schema( example, this could be used to document such a colonoscopy or an appendectomy. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/composition_relatesto.py b/spark_fhir_schemas/r4/complex_types/composition_relatesto.py index 19e9f7c2..c749741e 100644 --- a/spark_fhir_schemas/r4/complex_types/composition_relatesto.py +++ b/spark_fhir_schemas/r4/complex_types/composition_relatesto.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -88,6 +74,25 @@ def get_schema( targetReference: The target composition/document of this relationship. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema from spark_fhir_schemas.r4.complex_types.identifier import IdentifierSchema diff --git a/spark_fhir_schemas/r4/complex_types/composition_section.py b/spark_fhir_schemas/r4/complex_types/composition_section.py index a4027bb9..aea8d1b2 100644 --- a/spark_fhir_schemas/r4/complex_types/composition_section.py +++ b/spark_fhir_schemas/r4/complex_types/composition_section.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -119,6 +105,25 @@ def get_schema( section: A nested sub-section within this section. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/conceptmap_dependson.py b/spark_fhir_schemas/r4/complex_types/conceptmap_dependson.py index 4e036d57..5aa4645d 100644 --- a/spark_fhir_schemas/r4/complex_types/conceptmap_dependson.py +++ b/spark_fhir_schemas/r4/complex_types/conceptmap_dependson.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -82,6 +68,25 @@ def get_schema( editing the concept map. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema from spark_fhir_schemas.r4.simple_types.canonical import canonicalSchema diff --git a/spark_fhir_schemas/r4/complex_types/conceptmap_element.py b/spark_fhir_schemas/r4/complex_types/conceptmap_element.py index 70462ea8..e8280164 100644 --- a/spark_fhir_schemas/r4/complex_types/conceptmap_element.py +++ b/spark_fhir_schemas/r4/complex_types/conceptmap_element.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -76,6 +62,25 @@ def get_schema( target: A concept from the target value set that this concept maps to. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema from spark_fhir_schemas.r4.complex_types.conceptmap_target import ( diff --git a/spark_fhir_schemas/r4/complex_types/conceptmap_group.py b/spark_fhir_schemas/r4/complex_types/conceptmap_group.py index ab8d93ae..f84933bb 100644 --- a/spark_fhir_schemas/r4/complex_types/conceptmap_group.py +++ b/spark_fhir_schemas/r4/complex_types/conceptmap_group.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -88,6 +74,25 @@ def get_schema( code is specified to have equivalence = unmatched. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema from spark_fhir_schemas.r4.complex_types.conceptmap_element import ( diff --git a/spark_fhir_schemas/r4/complex_types/conceptmap_target.py b/spark_fhir_schemas/r4/complex_types/conceptmap_target.py index 3ea73c82..ae38ac91 100644 --- a/spark_fhir_schemas/r4/complex_types/conceptmap_target.py +++ b/spark_fhir_schemas/r4/complex_types/conceptmap_target.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -91,6 +77,25 @@ def get_schema( on. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema from spark_fhir_schemas.r4.complex_types.conceptmap_dependson import ( diff --git a/spark_fhir_schemas/r4/complex_types/conceptmap_unmapped.py b/spark_fhir_schemas/r4/complex_types/conceptmap_unmapped.py index 9aba8b76..7763702b 100644 --- a/spark_fhir_schemas/r4/complex_types/conceptmap_unmapped.py +++ b/spark_fhir_schemas/r4/complex_types/conceptmap_unmapped.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -86,6 +72,25 @@ def get_schema( source concept. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema from spark_fhir_schemas.r4.simple_types.canonical import canonicalSchema diff --git a/spark_fhir_schemas/r4/complex_types/condition_evidence.py b/spark_fhir_schemas/r4/complex_types/condition_evidence.py index 201d72a9..aac90ee5 100644 --- a/spark_fhir_schemas/r4/complex_types/condition_evidence.py +++ b/spark_fhir_schemas/r4/complex_types/condition_evidence.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -71,6 +57,25 @@ def get_schema( detail: Links to other relevant information, including pathology reports. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/condition_stage.py b/spark_fhir_schemas/r4/complex_types/condition_stage.py index cd476cd4..413f3ed1 100644 --- a/spark_fhir_schemas/r4/complex_types/condition_stage.py +++ b/spark_fhir_schemas/r4/complex_types/condition_stage.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -75,6 +61,25 @@ def get_schema( type: The kind of staging, such as pathological or clinical staging. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/consent_actor.py b/spark_fhir_schemas/r4/complex_types/consent_actor.py index b8f96c10..631aad9b 100644 --- a/spark_fhir_schemas/r4/complex_types/consent_actor.py +++ b/spark_fhir_schemas/r4/complex_types/consent_actor.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -76,6 +62,25 @@ def get_schema( officers'). """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/consent_data.py b/spark_fhir_schemas/r4/complex_types/consent_data.py index 0db8358f..5713bf58 100644 --- a/spark_fhir_schemas/r4/complex_types/consent_data.py +++ b/spark_fhir_schemas/r4/complex_types/consent_data.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -74,6 +60,25 @@ def get_schema( this consent. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema diff --git a/spark_fhir_schemas/r4/complex_types/consent_policy.py b/spark_fhir_schemas/r4/complex_types/consent_policy.py index 067ed9b1..bc01451b 100644 --- a/spark_fhir_schemas/r4/complex_types/consent_policy.py +++ b/spark_fhir_schemas/r4/complex_types/consent_policy.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -76,6 +62,25 @@ def get_schema( law. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/complex_types/consent_provision.py b/spark_fhir_schemas/r4/complex_types/consent_provision.py index e4ff9812..ee8d20e6 100644 --- a/spark_fhir_schemas/r4/complex_types/consent_provision.py +++ b/spark_fhir_schemas/r4/complex_types/consent_provision.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -98,6 +84,25 @@ def get_schema( provision: Rules which provide exceptions to the base rule or subrules. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.period import PeriodSchema from spark_fhir_schemas.r4.complex_types.consent_actor import ( diff --git a/spark_fhir_schemas/r4/complex_types/consent_verification.py b/spark_fhir_schemas/r4/complex_types/consent_verification.py index 5cfe9af9..ce9e4657 100644 --- a/spark_fhir_schemas/r4/complex_types/consent_verification.py +++ b/spark_fhir_schemas/r4/complex_types/consent_verification.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -82,6 +68,25 @@ def get_schema( verificationDate: Date verification was collected. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema from spark_fhir_schemas.r4.simple_types.datetime import dateTimeSchema diff --git a/spark_fhir_schemas/r4/complex_types/contactdetail.py b/spark_fhir_schemas/r4/complex_types/contactdetail.py index 5b684bb1..1cfbe2c3 100644 --- a/spark_fhir_schemas/r4/complex_types/contactdetail.py +++ b/spark_fhir_schemas/r4/complex_types/contactdetail.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -56,6 +42,25 @@ def get_schema( organization. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.contactpoint import ContactPointSchema diff --git a/spark_fhir_schemas/r4/complex_types/contactpoint.py b/spark_fhir_schemas/r4/complex_types/contactpoint.py index 78ef68af..5519f0d5 100644 --- a/spark_fhir_schemas/r4/complex_types/contactpoint.py +++ b/spark_fhir_schemas/r4/complex_types/contactpoint.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -66,6 +52,25 @@ def get_schema( period: Time period when the contact point was/is in use. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.positiveint import positiveIntSchema from spark_fhir_schemas.r4.complex_types.period import PeriodSchema diff --git a/spark_fhir_schemas/r4/complex_types/contract_action.py b/spark_fhir_schemas/r4/complex_types/contract_action.py index e7a4a108..884d2eab 100644 --- a/spark_fhir_schemas/r4/complex_types/contract_action.py +++ b/spark_fhir_schemas/r4/complex_types/contract_action.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -132,6 +118,25 @@ def get_schema( securityLabelNumber: Security labels that protects the action. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/contract_answer.py b/spark_fhir_schemas/r4/complex_types/contract_answer.py index 6cd2084a..c87bbf8d 100644 --- a/spark_fhir_schemas/r4/complex_types/contract_answer.py +++ b/spark_fhir_schemas/r4/complex_types/contract_answer.py @@ -30,21 +30,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -138,6 +124,25 @@ def get_schema( for further research. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.attachment import AttachmentSchema from spark_fhir_schemas.r4.complex_types.coding import CodingSchema diff --git a/spark_fhir_schemas/r4/complex_types/contract_asset.py b/spark_fhir_schemas/r4/complex_types/contract_asset.py index f120302b..0f47fb28 100644 --- a/spark_fhir_schemas/r4/complex_types/contract_asset.py +++ b/spark_fhir_schemas/r4/complex_types/contract_asset.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -102,6 +88,25 @@ def get_schema( valuedItem: Contract Valued Item List. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/contract_contentdefinition.py b/spark_fhir_schemas/r4/complex_types/contract_contentdefinition.py index a0da25b3..0904dfde 100644 --- a/spark_fhir_schemas/r4/complex_types/contract_contentdefinition.py +++ b/spark_fhir_schemas/r4/complex_types/contract_contentdefinition.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -88,6 +74,25 @@ def get_schema( Contract precursor content. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/contract_context.py b/spark_fhir_schemas/r4/complex_types/contract_context.py index c0ac029c..3d4a80df 100644 --- a/spark_fhir_schemas/r4/complex_types/contract_context.py +++ b/spark_fhir_schemas/r4/complex_types/contract_context.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -76,6 +62,25 @@ def get_schema( text: Context description. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/contract_friendly.py b/spark_fhir_schemas/r4/complex_types/contract_friendly.py index fc9cb0f5..d16bc5b0 100644 --- a/spark_fhir_schemas/r4/complex_types/contract_friendly.py +++ b/spark_fhir_schemas/r4/complex_types/contract_friendly.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -73,6 +59,25 @@ def get_schema( intended to enhance comprehension and ensure understandability. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.attachment import AttachmentSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema diff --git a/spark_fhir_schemas/r4/complex_types/contract_legal.py b/spark_fhir_schemas/r4/complex_types/contract_legal.py index c8825fac..417f7a04 100644 --- a/spark_fhir_schemas/r4/complex_types/contract_legal.py +++ b/spark_fhir_schemas/r4/complex_types/contract_legal.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -71,6 +57,25 @@ def get_schema( contentReference: Contract legal text in human renderable form. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.attachment import AttachmentSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema diff --git a/spark_fhir_schemas/r4/complex_types/contract_offer.py b/spark_fhir_schemas/r4/complex_types/contract_offer.py index 9c8eb630..9d010b50 100644 --- a/spark_fhir_schemas/r4/complex_types/contract_offer.py +++ b/spark_fhir_schemas/r4/complex_types/contract_offer.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -92,6 +78,25 @@ def get_schema( securityLabelNumber: Security labels that protects the offer. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.identifier import IdentifierSchema from spark_fhir_schemas.r4.complex_types.contract_party import ( diff --git a/spark_fhir_schemas/r4/complex_types/contract_party.py b/spark_fhir_schemas/r4/complex_types/contract_party.py index 8dddd82f..8d4743aa 100644 --- a/spark_fhir_schemas/r4/complex_types/contract_party.py +++ b/spark_fhir_schemas/r4/complex_types/contract_party.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -71,6 +57,25 @@ def get_schema( role: How the party participates in the offer. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/contract_rule.py b/spark_fhir_schemas/r4/complex_types/contract_rule.py index 78fca76d..8a84ca1e 100644 --- a/spark_fhir_schemas/r4/complex_types/contract_rule.py +++ b/spark_fhir_schemas/r4/complex_types/contract_rule.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -73,6 +59,25 @@ def get_schema( SecPal). """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.attachment import AttachmentSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema diff --git a/spark_fhir_schemas/r4/complex_types/contract_securitylabel.py b/spark_fhir_schemas/r4/complex_types/contract_securitylabel.py index bad501f1..75b8c9e7 100644 --- a/spark_fhir_schemas/r4/complex_types/contract_securitylabel.py +++ b/spark_fhir_schemas/r4/complex_types/contract_securitylabel.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -79,6 +65,25 @@ def get_schema( elements are to be protected. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.unsignedint import unsignedIntSchema from spark_fhir_schemas.r4.complex_types.coding import CodingSchema diff --git a/spark_fhir_schemas/r4/complex_types/contract_signer.py b/spark_fhir_schemas/r4/complex_types/contract_signer.py index 9922a768..361600e0 100644 --- a/spark_fhir_schemas/r4/complex_types/contract_signer.py +++ b/spark_fhir_schemas/r4/complex_types/contract_signer.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -73,6 +59,25 @@ def get_schema( signature: Legally binding Contract DSIG signature contents in Base64. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.coding import CodingSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema diff --git a/spark_fhir_schemas/r4/complex_types/contract_subject.py b/spark_fhir_schemas/r4/complex_types/contract_subject.py index 365abd1d..891c5fb6 100644 --- a/spark_fhir_schemas/r4/complex_types/contract_subject.py +++ b/spark_fhir_schemas/r4/complex_types/contract_subject.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -71,6 +57,25 @@ def get_schema( role: Role type of agent assigned roles in this Contract. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/contract_term.py b/spark_fhir_schemas/r4/complex_types/contract_term.py index bfb82003..1c9f6c1e 100644 --- a/spark_fhir_schemas/r4/complex_types/contract_term.py +++ b/spark_fhir_schemas/r4/complex_types/contract_term.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -98,6 +84,25 @@ def get_schema( group: Nested group of Contract Provisions. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.identifier import IdentifierSchema from spark_fhir_schemas.r4.simple_types.datetime import dateTimeSchema diff --git a/spark_fhir_schemas/r4/complex_types/contract_valueditem.py b/spark_fhir_schemas/r4/complex_types/contract_valueditem.py index 2ef51a4c..412398bb 100644 --- a/spark_fhir_schemas/r4/complex_types/contract_valueditem.py +++ b/spark_fhir_schemas/r4/complex_types/contract_valueditem.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -109,6 +95,25 @@ def get_schema( condition. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/contributor.py b/spark_fhir_schemas/r4/complex_types/contributor.py index 509cc198..cabdc5b8 100644 --- a/spark_fhir_schemas/r4/complex_types/contributor.py +++ b/spark_fhir_schemas/r4/complex_types/contributor.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -60,6 +46,25 @@ def get_schema( contributor. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.contactdetail import ( ContactDetailSchema, diff --git a/spark_fhir_schemas/r4/complex_types/count.py b/spark_fhir_schemas/r4/complex_types/count.py index 37750280..e3341817 100644 --- a/spark_fhir_schemas/r4/complex_types/count.py +++ b/spark_fhir_schemas/r4/complex_types/count.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -68,6 +54,25 @@ def get_schema( code: A computer processable form of the unit in some unit representation system. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.decimal import decimalSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/complex_types/coverage_class.py b/spark_fhir_schemas/r4/complex_types/coverage_class.py index afe42be6..dc0258a3 100644 --- a/spark_fhir_schemas/r4/complex_types/coverage_class.py +++ b/spark_fhir_schemas/r4/complex_types/coverage_class.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -75,6 +61,25 @@ def get_schema( name: A short description for the class. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/coverage_costtobeneficiary.py b/spark_fhir_schemas/r4/complex_types/coverage_costtobeneficiary.py index 4b249e5a..5660dc61 100644 --- a/spark_fhir_schemas/r4/complex_types/coverage_costtobeneficiary.py +++ b/spark_fhir_schemas/r4/complex_types/coverage_costtobeneficiary.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -76,6 +62,25 @@ def get_schema( their effective periods. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/coverage_exception.py b/spark_fhir_schemas/r4/complex_types/coverage_exception.py index 607b3808..1c073b8a 100644 --- a/spark_fhir_schemas/r4/complex_types/coverage_exception.py +++ b/spark_fhir_schemas/r4/complex_types/coverage_exception.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -71,6 +57,25 @@ def get_schema( period: The timeframe during when the exception is in force. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/coverageeligibilityrequest_diagnosis.py b/spark_fhir_schemas/r4/complex_types/coverageeligibilityrequest_diagnosis.py index d89434b2..046f1f08 100644 --- a/spark_fhir_schemas/r4/complex_types/coverageeligibilityrequest_diagnosis.py +++ b/spark_fhir_schemas/r4/complex_types/coverageeligibilityrequest_diagnosis.py @@ -22,21 +22,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -79,6 +65,25 @@ def get_schema( external defined Condition. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/coverageeligibilityrequest_insurance.py b/spark_fhir_schemas/r4/complex_types/coverageeligibilityrequest_insurance.py index f7a37d7d..85ccc2b0 100644 --- a/spark_fhir_schemas/r4/complex_types/coverageeligibilityrequest_insurance.py +++ b/spark_fhir_schemas/r4/complex_types/coverageeligibilityrequest_insurance.py @@ -29,21 +29,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -90,6 +76,25 @@ def get_schema( for special business processing purposes. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema diff --git a/spark_fhir_schemas/r4/complex_types/coverageeligibilityrequest_item.py b/spark_fhir_schemas/r4/complex_types/coverageeligibilityrequest_item.py index 02ffc3a2..4d5d56a7 100644 --- a/spark_fhir_schemas/r4/complex_types/coverageeligibilityrequest_item.py +++ b/spark_fhir_schemas/r4/complex_types/coverageeligibilityrequest_item.py @@ -22,21 +22,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -97,6 +83,25 @@ def get_schema( detail: The plan/proposal/order describing the proposed service in detail. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.positiveint import positiveIntSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/coverageeligibilityrequest_supportinginfo.py b/spark_fhir_schemas/r4/complex_types/coverageeligibilityrequest_supportinginfo.py index 845835de..d6d18aed 100644 --- a/spark_fhir_schemas/r4/complex_types/coverageeligibilityrequest_supportinginfo.py +++ b/spark_fhir_schemas/r4/complex_types/coverageeligibilityrequest_supportinginfo.py @@ -29,21 +29,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -88,6 +74,25 @@ def get_schema( categories and specific billing codes. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.positiveint import positiveIntSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema diff --git a/spark_fhir_schemas/r4/complex_types/coverageeligibilityresponse_benefit.py b/spark_fhir_schemas/r4/complex_types/coverageeligibilityresponse_benefit.py index ffe94d9f..0d45851f 100644 --- a/spark_fhir_schemas/r4/complex_types/coverageeligibilityresponse_benefit.py +++ b/spark_fhir_schemas/r4/complex_types/coverageeligibilityresponse_benefit.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -88,6 +74,25 @@ def get_schema( usedMoney: The quantity of the benefit which have been consumed to date. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/coverageeligibilityresponse_error.py b/spark_fhir_schemas/r4/complex_types/coverageeligibilityresponse_error.py index 9265f4da..9ce33dd0 100644 --- a/spark_fhir_schemas/r4/complex_types/coverageeligibilityresponse_error.py +++ b/spark_fhir_schemas/r4/complex_types/coverageeligibilityresponse_error.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -70,6 +56,25 @@ def get_schema( check could not be performed. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/coverageeligibilityresponse_insurance.py b/spark_fhir_schemas/r4/complex_types/coverageeligibilityresponse_insurance.py index 7d089a29..7035e31a 100644 --- a/spark_fhir_schemas/r4/complex_types/coverageeligibilityresponse_insurance.py +++ b/spark_fhir_schemas/r4/complex_types/coverageeligibilityresponse_insurance.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -86,6 +72,25 @@ def get_schema( category or service. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema from spark_fhir_schemas.r4.complex_types.period import PeriodSchema diff --git a/spark_fhir_schemas/r4/complex_types/coverageeligibilityresponse_item.py b/spark_fhir_schemas/r4/complex_types/coverageeligibilityresponse_item.py index 37b81255..9b0403c1 100644 --- a/spark_fhir_schemas/r4/complex_types/coverageeligibilityresponse_item.py +++ b/spark_fhir_schemas/r4/complex_types/coverageeligibilityresponse_item.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -110,6 +96,25 @@ def get_schema( the preauthorization. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/datarequirement.py b/spark_fhir_schemas/r4/complex_types/datarequirement.py index 9dfe717e..0aeac373 100644 --- a/spark_fhir_schemas/r4/complex_types/datarequirement.py +++ b/spark_fhir_schemas/r4/complex_types/datarequirement.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -89,6 +75,25 @@ def get_schema( sort: Specifies the order of the results to be returned. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema from spark_fhir_schemas.r4.simple_types.canonical import canonicalSchema diff --git a/spark_fhir_schemas/r4/complex_types/datarequirement_codefilter.py b/spark_fhir_schemas/r4/complex_types/datarequirement_codefilter.py index ab3ab9a6..7d7a4a30 100644 --- a/spark_fhir_schemas/r4/complex_types/datarequirement_codefilter.py +++ b/spark_fhir_schemas/r4/complex_types/datarequirement_codefilter.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -77,6 +63,25 @@ def get_schema( set or one of the specified codes. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.canonical import canonicalSchema from spark_fhir_schemas.r4.complex_types.coding import CodingSchema diff --git a/spark_fhir_schemas/r4/complex_types/datarequirement_datefilter.py b/spark_fhir_schemas/r4/complex_types/datarequirement_datefilter.py index c606e6ed..8404d544 100644 --- a/spark_fhir_schemas/r4/complex_types/datarequirement_datefilter.py +++ b/spark_fhir_schemas/r4/complex_types/datarequirement_datefilter.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -94,6 +80,25 @@ def get_schema( within Duration before now. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.period import PeriodSchema from spark_fhir_schemas.r4.complex_types.duration import DurationSchema diff --git a/spark_fhir_schemas/r4/complex_types/datarequirement_sort.py b/spark_fhir_schemas/r4/complex_types/datarequirement_sort.py index 55af496b..3b8fc1a6 100644 --- a/spark_fhir_schemas/r4/complex_types/datarequirement_sort.py +++ b/spark_fhir_schemas/r4/complex_types/datarequirement_sort.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -60,6 +46,25 @@ def get_schema( direction: The direction of the sort, ascending or descending. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema if ( diff --git a/spark_fhir_schemas/r4/complex_types/detectedissue_evidence.py b/spark_fhir_schemas/r4/complex_types/detectedissue_evidence.py index 5c290d76..18b00b28 100644 --- a/spark_fhir_schemas/r4/complex_types/detectedissue_evidence.py +++ b/spark_fhir_schemas/r4/complex_types/detectedissue_evidence.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -74,6 +60,25 @@ def get_schema( GuidanceResponse or MeasureReport. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/detectedissue_mitigation.py b/spark_fhir_schemas/r4/complex_types/detectedissue_mitigation.py index 6c0143d8..f7299bf1 100644 --- a/spark_fhir_schemas/r4/complex_types/detectedissue_mitigation.py +++ b/spark_fhir_schemas/r4/complex_types/detectedissue_mitigation.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -77,6 +63,25 @@ def get_schema( responsibility for the mitigation step occurring. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/device_devicename.py b/spark_fhir_schemas/r4/complex_types/device_devicename.py index b480c11e..bf10dd87 100644 --- a/spark_fhir_schemas/r4/complex_types/device_devicename.py +++ b/spark_fhir_schemas/r4/complex_types/device_devicename.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -75,6 +61,25 @@ def get_schema( | ModelName. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema if ( diff --git a/spark_fhir_schemas/r4/complex_types/device_property.py b/spark_fhir_schemas/r4/complex_types/device_property.py index 3c072c4d..8aa8a14f 100644 --- a/spark_fhir_schemas/r4/complex_types/device_property.py +++ b/spark_fhir_schemas/r4/complex_types/device_property.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -75,6 +61,25 @@ def get_schema( valueCode: Property value as a code, e.g., NTP4 (synced to NTP). """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/device_specialization.py b/spark_fhir_schemas/r4/complex_types/device_specialization.py index 16d8a55a..cd180aeb 100644 --- a/spark_fhir_schemas/r4/complex_types/device_specialization.py +++ b/spark_fhir_schemas/r4/complex_types/device_specialization.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -73,6 +59,25 @@ def get_schema( version: The version of the standard that is used to operate and communicate. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/device_udicarrier.py b/spark_fhir_schemas/r4/complex_types/device_udicarrier.py index 789df471..98e4ddbd 100644 --- a/spark_fhir_schemas/r4/complex_types/device_udicarrier.py +++ b/spark_fhir_schemas/r4/complex_types/device_udicarrier.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -100,6 +86,25 @@ def get_schema( entryType: A coded entry to indicate how the data was entered. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema from spark_fhir_schemas.r4.simple_types.base64binary import base64BinarySchema diff --git a/spark_fhir_schemas/r4/complex_types/device_version.py b/spark_fhir_schemas/r4/complex_types/device_version.py index 36d680c0..2c9d0431 100644 --- a/spark_fhir_schemas/r4/complex_types/device_version.py +++ b/spark_fhir_schemas/r4/complex_types/device_version.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -75,6 +61,25 @@ def get_schema( value: The version text. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/devicedefinition_capability.py b/spark_fhir_schemas/r4/complex_types/devicedefinition_capability.py index d63cfbcf..bbfe98d6 100644 --- a/spark_fhir_schemas/r4/complex_types/devicedefinition_capability.py +++ b/spark_fhir_schemas/r4/complex_types/devicedefinition_capability.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -71,6 +57,25 @@ def get_schema( description: Description of capability. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/devicedefinition_devicename.py b/spark_fhir_schemas/r4/complex_types/devicedefinition_devicename.py index f1ed021d..7b9e4fab 100644 --- a/spark_fhir_schemas/r4/complex_types/devicedefinition_devicename.py +++ b/spark_fhir_schemas/r4/complex_types/devicedefinition_devicename.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -73,6 +59,25 @@ def get_schema( | ModelName. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema if ( diff --git a/spark_fhir_schemas/r4/complex_types/devicedefinition_material.py b/spark_fhir_schemas/r4/complex_types/devicedefinition_material.py index b1098330..e644fb7c 100644 --- a/spark_fhir_schemas/r4/complex_types/devicedefinition_material.py +++ b/spark_fhir_schemas/r4/complex_types/devicedefinition_material.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -80,6 +66,25 @@ def get_schema( allergenicIndicator: Whether the substance is a known or suspected allergen. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/devicedefinition_property.py b/spark_fhir_schemas/r4/complex_types/devicedefinition_property.py index 5052385e..4de941f2 100644 --- a/spark_fhir_schemas/r4/complex_types/devicedefinition_property.py +++ b/spark_fhir_schemas/r4/complex_types/devicedefinition_property.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -73,6 +59,25 @@ def get_schema( valueCode: Property value as a code, e.g., NTP4 (synced to NTP). """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/devicedefinition_specialization.py b/spark_fhir_schemas/r4/complex_types/devicedefinition_specialization.py index e0036c5b..0d28a8d9 100644 --- a/spark_fhir_schemas/r4/complex_types/devicedefinition_specialization.py +++ b/spark_fhir_schemas/r4/complex_types/devicedefinition_specialization.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -71,6 +57,25 @@ def get_schema( version: The version of the standard that is used to operate and communicate. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema if ( diff --git a/spark_fhir_schemas/r4/complex_types/devicedefinition_udideviceidentifier.py b/spark_fhir_schemas/r4/complex_types/devicedefinition_udideviceidentifier.py index 2f84825b..b384a29d 100644 --- a/spark_fhir_schemas/r4/complex_types/devicedefinition_udideviceidentifier.py +++ b/spark_fhir_schemas/r4/complex_types/devicedefinition_udideviceidentifier.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -75,6 +61,25 @@ def get_schema( jurisdiction: The jurisdiction to which the deviceIdentifier applies. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/complex_types/devicemetric_calibration.py b/spark_fhir_schemas/r4/complex_types/devicemetric_calibration.py index aeeea2c7..5dc89b97 100644 --- a/spark_fhir_schemas/r4/complex_types/devicemetric_calibration.py +++ b/spark_fhir_schemas/r4/complex_types/devicemetric_calibration.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -73,6 +59,25 @@ def get_schema( time: Describes the time last calibration has been performed. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.instant import instantSchema diff --git a/spark_fhir_schemas/r4/complex_types/devicerequest_parameter.py b/spark_fhir_schemas/r4/complex_types/devicerequest_parameter.py index c50e6f62..426209d3 100644 --- a/spark_fhir_schemas/r4/complex_types/devicerequest_parameter.py +++ b/spark_fhir_schemas/r4/complex_types/devicerequest_parameter.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -84,6 +70,25 @@ def get_schema( valueBoolean: The value of the device detail. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/diagnosticreport_media.py b/spark_fhir_schemas/r4/complex_types/diagnosticreport_media.py index a7c69a01..af6c7390 100644 --- a/spark_fhir_schemas/r4/complex_types/diagnosticreport_media.py +++ b/spark_fhir_schemas/r4/complex_types/diagnosticreport_media.py @@ -22,21 +22,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -79,6 +65,25 @@ def get_schema( link: Reference to the image source. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema diff --git a/spark_fhir_schemas/r4/complex_types/distance.py b/spark_fhir_schemas/r4/complex_types/distance.py index 74fe5458..de40ec7a 100644 --- a/spark_fhir_schemas/r4/complex_types/distance.py +++ b/spark_fhir_schemas/r4/complex_types/distance.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -64,6 +50,25 @@ def get_schema( code: A computer processable form of the unit in some unit representation system. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.decimal import decimalSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/complex_types/documentmanifest_related.py b/spark_fhir_schemas/r4/complex_types/documentmanifest_related.py index d49759a8..42ae56d0 100644 --- a/spark_fhir_schemas/r4/complex_types/documentmanifest_related.py +++ b/spark_fhir_schemas/r4/complex_types/documentmanifest_related.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -73,6 +59,25 @@ def get_schema( Procedure, EligibilityRequest, etc. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.identifier import IdentifierSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema diff --git a/spark_fhir_schemas/r4/complex_types/documentreference_content.py b/spark_fhir_schemas/r4/complex_types/documentreference_content.py index 0b3c8270..2b6cbe24 100644 --- a/spark_fhir_schemas/r4/complex_types/documentreference_content.py +++ b/spark_fhir_schemas/r4/complex_types/documentreference_content.py @@ -22,21 +22,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -79,6 +65,25 @@ def get_schema( document conforms to beyond the base format indicated in the mimeType. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.attachment import AttachmentSchema from spark_fhir_schemas.r4.complex_types.coding import CodingSchema diff --git a/spark_fhir_schemas/r4/complex_types/documentreference_context.py b/spark_fhir_schemas/r4/complex_types/documentreference_context.py index 6b7fd78b..b3b661cf 100644 --- a/spark_fhir_schemas/r4/complex_types/documentreference_context.py +++ b/spark_fhir_schemas/r4/complex_types/documentreference_context.py @@ -22,21 +22,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -94,6 +80,25 @@ def get_schema( related: Related identifiers or resources associated with the DocumentReference. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/documentreference_relatesto.py b/spark_fhir_schemas/r4/complex_types/documentreference_relatesto.py index 4d9beea2..6c6c208b 100644 --- a/spark_fhir_schemas/r4/complex_types/documentreference_relatesto.py +++ b/spark_fhir_schemas/r4/complex_types/documentreference_relatesto.py @@ -22,21 +22,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -77,6 +63,25 @@ def get_schema( target: The target document of this relationship. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema diff --git a/spark_fhir_schemas/r4/complex_types/dosage.py b/spark_fhir_schemas/r4/complex_types/dosage.py index 854ba33a..8645e94d 100644 --- a/spark_fhir_schemas/r4/complex_types/dosage.py +++ b/spark_fhir_schemas/r4/complex_types/dosage.py @@ -25,21 +25,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -108,6 +94,25 @@ def get_schema( maxDosePerLifetime: Upper limit on medication per lifetime of the patient. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.integer import integerSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/dosage_doseandrate.py b/spark_fhir_schemas/r4/complex_types/dosage_doseandrate.py index 605b0c40..e919c758 100644 --- a/spark_fhir_schemas/r4/complex_types/dosage_doseandrate.py +++ b/spark_fhir_schemas/r4/complex_types/dosage_doseandrate.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -77,6 +63,25 @@ def get_schema( rateQuantity: Amount of medication per unit of time. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/duration.py b/spark_fhir_schemas/r4/complex_types/duration.py index 85569a93..d8996aac 100644 --- a/spark_fhir_schemas/r4/complex_types/duration.py +++ b/spark_fhir_schemas/r4/complex_types/duration.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -64,6 +50,25 @@ def get_schema( code: A computer processable form of the unit in some unit representation system. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.decimal import decimalSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/complex_types/effectevidencesynthesis_certainty.py b/spark_fhir_schemas/r4/complex_types/effectevidencesynthesis_certainty.py index 8d9bb818..715adfca 100644 --- a/spark_fhir_schemas/r4/complex_types/effectevidencesynthesis_certainty.py +++ b/spark_fhir_schemas/r4/complex_types/effectevidencesynthesis_certainty.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -75,6 +61,25 @@ def get_schema( certaintySubcomponent: A description of a component of the overall certainty. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/effectevidencesynthesis_certaintysubcomponent.py b/spark_fhir_schemas/r4/complex_types/effectevidencesynthesis_certaintysubcomponent.py index 8d15b581..68a76bed 100644 --- a/spark_fhir_schemas/r4/complex_types/effectevidencesynthesis_certaintysubcomponent.py +++ b/spark_fhir_schemas/r4/complex_types/effectevidencesynthesis_certaintysubcomponent.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -75,6 +61,25 @@ def get_schema( note: A human-readable string to clarify or explain concepts about the resource. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/effectevidencesynthesis_effectestimate.py b/spark_fhir_schemas/r4/complex_types/effectevidencesynthesis_effectestimate.py index f5f067fe..f9973207 100644 --- a/spark_fhir_schemas/r4/complex_types/effectevidencesynthesis_effectestimate.py +++ b/spark_fhir_schemas/r4/complex_types/effectevidencesynthesis_effectestimate.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -81,6 +67,25 @@ def get_schema( precisionEstimate: A description of the precision of the estimate for the effect. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/effectevidencesynthesis_precisionestimate.py b/spark_fhir_schemas/r4/complex_types/effectevidencesynthesis_precisionestimate.py index 4b752e94..f59eaec8 100644 --- a/spark_fhir_schemas/r4/complex_types/effectevidencesynthesis_precisionestimate.py +++ b/spark_fhir_schemas/r4/complex_types/effectevidencesynthesis_precisionestimate.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -77,6 +63,25 @@ def get_schema( to: Upper bound of confidence interval. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/effectevidencesynthesis_resultsbyexposure.py b/spark_fhir_schemas/r4/complex_types/effectevidencesynthesis_resultsbyexposure.py index 36389a2a..bf650a16 100644 --- a/spark_fhir_schemas/r4/complex_types/effectevidencesynthesis_resultsbyexposure.py +++ b/spark_fhir_schemas/r4/complex_types/effectevidencesynthesis_resultsbyexposure.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -78,6 +64,25 @@ def get_schema( riskEvidenceSynthesis: Reference to a RiskEvidenceSynthesis resource. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/effectevidencesynthesis_samplesize.py b/spark_fhir_schemas/r4/complex_types/effectevidencesynthesis_samplesize.py index ae65c48b..99b17136 100644 --- a/spark_fhir_schemas/r4/complex_types/effectevidencesynthesis_samplesize.py +++ b/spark_fhir_schemas/r4/complex_types/effectevidencesynthesis_samplesize.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -75,6 +61,25 @@ def get_schema( numberOfParticipants: Number of participants included in this evidence synthesis. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.integer import integerSchema diff --git a/spark_fhir_schemas/r4/complex_types/element.py b/spark_fhir_schemas/r4/complex_types/element.py index 8d896ab1..64eea5a2 100644 --- a/spark_fhir_schemas/r4/complex_types/element.py +++ b/spark_fhir_schemas/r4/complex_types/element.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -51,6 +37,25 @@ def get_schema( requirements that SHALL be met as part of the definition of the extension. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema if ( diff --git a/spark_fhir_schemas/r4/complex_types/elementdefinition.py b/spark_fhir_schemas/r4/complex_types/elementdefinition.py index f5045a23..ee4cf8a4 100644 --- a/spark_fhir_schemas/r4/complex_types/elementdefinition.py +++ b/spark_fhir_schemas/r4/complex_types/elementdefinition.py @@ -30,21 +30,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -1616,6 +1602,25 @@ def get_schema( to this element. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.coding import CodingSchema from spark_fhir_schemas.r4.complex_types.elementdefinition_slicing import ( diff --git a/spark_fhir_schemas/r4/complex_types/elementdefinition_base.py b/spark_fhir_schemas/r4/complex_types/elementdefinition_base.py index ed1a66d1..62529c7a 100644 --- a/spark_fhir_schemas/r4/complex_types/elementdefinition_base.py +++ b/spark_fhir_schemas/r4/complex_types/elementdefinition_base.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -76,6 +62,25 @@ def get_schema( max: Maximum cardinality of the base element identified by the path. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.unsignedint import unsignedIntSchema diff --git a/spark_fhir_schemas/r4/complex_types/elementdefinition_binding.py b/spark_fhir_schemas/r4/complex_types/elementdefinition_binding.py index 17424bea..7613e9a8 100644 --- a/spark_fhir_schemas/r4/complex_types/elementdefinition_binding.py +++ b/spark_fhir_schemas/r4/complex_types/elementdefinition_binding.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -76,6 +62,25 @@ def get_schema( to. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.canonical import canonicalSchema diff --git a/spark_fhir_schemas/r4/complex_types/elementdefinition_constraint.py b/spark_fhir_schemas/r4/complex_types/elementdefinition_constraint.py index b7394866..bae7c350 100644 --- a/spark_fhir_schemas/r4/complex_types/elementdefinition_constraint.py +++ b/spark_fhir_schemas/r4/complex_types/elementdefinition_constraint.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -88,6 +74,25 @@ def get_schema( purposes. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.simple_types.canonical import canonicalSchema diff --git a/spark_fhir_schemas/r4/complex_types/elementdefinition_discriminator.py b/spark_fhir_schemas/r4/complex_types/elementdefinition_discriminator.py index 2be018e3..afab5e14 100644 --- a/spark_fhir_schemas/r4/complex_types/elementdefinition_discriminator.py +++ b/spark_fhir_schemas/r4/complex_types/elementdefinition_discriminator.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -73,6 +59,25 @@ def get_schema( discrimination is based. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema if ( diff --git a/spark_fhir_schemas/r4/complex_types/elementdefinition_example.py b/spark_fhir_schemas/r4/complex_types/elementdefinition_example.py index 45bb142a..4fb51686 100644 --- a/spark_fhir_schemas/r4/complex_types/elementdefinition_example.py +++ b/spark_fhir_schemas/r4/complex_types/elementdefinition_example.py @@ -30,21 +30,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -230,6 +216,25 @@ def get_schema( this element. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.address import AddressSchema from spark_fhir_schemas.r4.complex_types.age import AgeSchema diff --git a/spark_fhir_schemas/r4/complex_types/elementdefinition_mapping.py b/spark_fhir_schemas/r4/complex_types/elementdefinition_mapping.py index e5d9ff9f..5d3603ef 100644 --- a/spark_fhir_schemas/r4/complex_types/elementdefinition_mapping.py +++ b/spark_fhir_schemas/r4/complex_types/elementdefinition_mapping.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -75,6 +61,25 @@ def get_schema( comment: Comments that provide information about the mapping or its use. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema diff --git a/spark_fhir_schemas/r4/complex_types/elementdefinition_slicing.py b/spark_fhir_schemas/r4/complex_types/elementdefinition_slicing.py index ae142b18..e6f564a9 100644 --- a/spark_fhir_schemas/r4/complex_types/elementdefinition_slicing.py +++ b/spark_fhir_schemas/r4/complex_types/elementdefinition_slicing.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -91,6 +77,25 @@ def get_schema( end. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.elementdefinition_discriminator import ( ElementDefinition_DiscriminatorSchema, diff --git a/spark_fhir_schemas/r4/complex_types/elementdefinition_type.py b/spark_fhir_schemas/r4/complex_types/elementdefinition_type.py index 272e809f..a1fc5fe8 100644 --- a/spark_fhir_schemas/r4/complex_types/elementdefinition_type.py +++ b/spark_fhir_schemas/r4/complex_types/elementdefinition_type.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -97,6 +83,25 @@ def get_schema( whether either can be used. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema from spark_fhir_schemas.r4.simple_types.canonical import canonicalSchema diff --git a/spark_fhir_schemas/r4/complex_types/encounter_classhistory.py b/spark_fhir_schemas/r4/complex_types/encounter_classhistory.py index 8ee31178..44bb3c03 100644 --- a/spark_fhir_schemas/r4/complex_types/encounter_classhistory.py +++ b/spark_fhir_schemas/r4/complex_types/encounter_classhistory.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -71,6 +57,25 @@ def get_schema( period: The time that the episode was in the specified class. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.coding import CodingSchema from spark_fhir_schemas.r4.complex_types.period import PeriodSchema diff --git a/spark_fhir_schemas/r4/complex_types/encounter_diagnosis.py b/spark_fhir_schemas/r4/complex_types/encounter_diagnosis.py index 20300db8..0665223a 100644 --- a/spark_fhir_schemas/r4/complex_types/encounter_diagnosis.py +++ b/spark_fhir_schemas/r4/complex_types/encounter_diagnosis.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -77,6 +63,25 @@ def get_schema( rank: Ranking of the diagnosis (for each role type). """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/encounter_hospitalization.py b/spark_fhir_schemas/r4/complex_types/encounter_hospitalization.py index 46b33f04..ffc892d5 100644 --- a/spark_fhir_schemas/r4/complex_types/encounter_hospitalization.py +++ b/spark_fhir_schemas/r4/complex_types/encounter_hospitalization.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -86,6 +72,25 @@ def get_schema( dischargeDisposition: Category or kind of location after discharge. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.identifier import IdentifierSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema diff --git a/spark_fhir_schemas/r4/complex_types/encounter_location.py b/spark_fhir_schemas/r4/complex_types/encounter_location.py index 2d8bdc31..8de348ff 100644 --- a/spark_fhir_schemas/r4/complex_types/encounter_location.py +++ b/spark_fhir_schemas/r4/complex_types/encounter_location.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -78,6 +64,25 @@ def get_schema( period: Time period during which the patient was present at the location. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/encounter_participant.py b/spark_fhir_schemas/r4/complex_types/encounter_participant.py index b5fba507..c5e01ebe 100644 --- a/spark_fhir_schemas/r4/complex_types/encounter_participant.py +++ b/spark_fhir_schemas/r4/complex_types/encounter_participant.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -74,6 +60,25 @@ def get_schema( individual: Persons involved in the encounter other than the patient. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/encounter_statushistory.py b/spark_fhir_schemas/r4/complex_types/encounter_statushistory.py index b4a11747..ddd01ee9 100644 --- a/spark_fhir_schemas/r4/complex_types/encounter_statushistory.py +++ b/spark_fhir_schemas/r4/complex_types/encounter_statushistory.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -71,6 +57,25 @@ def get_schema( period: The time that the episode was in the specified status. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.period import PeriodSchema diff --git a/spark_fhir_schemas/r4/complex_types/episodeofcare_diagnosis.py b/spark_fhir_schemas/r4/complex_types/episodeofcare_diagnosis.py index 67a2d0b8..d0a35061 100644 --- a/spark_fhir_schemas/r4/complex_types/episodeofcare_diagnosis.py +++ b/spark_fhir_schemas/r4/complex_types/episodeofcare_diagnosis.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -77,6 +63,25 @@ def get_schema( rank: Ranking of the diagnosis (for each role type). """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/episodeofcare_statushistory.py b/spark_fhir_schemas/r4/complex_types/episodeofcare_statushistory.py index 60c0e9c2..d6c11a8e 100644 --- a/spark_fhir_schemas/r4/complex_types/episodeofcare_statushistory.py +++ b/spark_fhir_schemas/r4/complex_types/episodeofcare_statushistory.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -73,6 +59,25 @@ def get_schema( period: The period during this EpisodeOfCare that the specific status applied. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.period import PeriodSchema diff --git a/spark_fhir_schemas/r4/complex_types/evidencevariable_characteristic.py b/spark_fhir_schemas/r4/complex_types/evidencevariable_characteristic.py index 9ea3f583..e677acab 100644 --- a/spark_fhir_schemas/r4/complex_types/evidencevariable_characteristic.py +++ b/spark_fhir_schemas/r4/complex_types/evidencevariable_characteristic.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -125,6 +111,25 @@ def get_schema( groupMeasure: Indicates how elements are aggregated within the study effective period. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/examplescenario_actor.py b/spark_fhir_schemas/r4/complex_types/examplescenario_actor.py index 19ae3368..6a450f22 100644 --- a/spark_fhir_schemas/r4/complex_types/examplescenario_actor.py +++ b/spark_fhir_schemas/r4/complex_types/examplescenario_actor.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -73,6 +59,25 @@ def get_schema( description: The description of the actor. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.markdown import markdownSchema diff --git a/spark_fhir_schemas/r4/complex_types/examplescenario_alternative.py b/spark_fhir_schemas/r4/complex_types/examplescenario_alternative.py index 0c8cfb0b..7e64508f 100644 --- a/spark_fhir_schemas/r4/complex_types/examplescenario_alternative.py +++ b/spark_fhir_schemas/r4/complex_types/examplescenario_alternative.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -73,6 +59,25 @@ def get_schema( step: What happens in each alternative option. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.markdown import markdownSchema from spark_fhir_schemas.r4.complex_types.examplescenario_step import ( diff --git a/spark_fhir_schemas/r4/complex_types/examplescenario_containedinstance.py b/spark_fhir_schemas/r4/complex_types/examplescenario_containedinstance.py index aca0aa40..6052ee05 100644 --- a/spark_fhir_schemas/r4/complex_types/examplescenario_containedinstance.py +++ b/spark_fhir_schemas/r4/complex_types/examplescenario_containedinstance.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -69,6 +55,25 @@ def get_schema( versionId: A specific version of a resource contained in the instance. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema if ( diff --git a/spark_fhir_schemas/r4/complex_types/examplescenario_instance.py b/spark_fhir_schemas/r4/complex_types/examplescenario_instance.py index bbeb6eb1..7ee948bf 100644 --- a/spark_fhir_schemas/r4/complex_types/examplescenario_instance.py +++ b/spark_fhir_schemas/r4/complex_types/examplescenario_instance.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -78,6 +64,25 @@ def get_schema( bundle). """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema from spark_fhir_schemas.r4.simple_types.markdown import markdownSchema diff --git a/spark_fhir_schemas/r4/complex_types/examplescenario_operation.py b/spark_fhir_schemas/r4/complex_types/examplescenario_operation.py index 917f3a46..be64878f 100644 --- a/spark_fhir_schemas/r4/complex_types/examplescenario_operation.py +++ b/spark_fhir_schemas/r4/complex_types/examplescenario_operation.py @@ -25,21 +25,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -92,6 +78,25 @@ def get_schema( response: Each resource instance used by the responder. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.markdown import markdownSchema from spark_fhir_schemas.r4.complex_types.examplescenario_containedinstance import ( diff --git a/spark_fhir_schemas/r4/complex_types/examplescenario_process.py b/spark_fhir_schemas/r4/complex_types/examplescenario_process.py index 97a962a8..81ee25ca 100644 --- a/spark_fhir_schemas/r4/complex_types/examplescenario_process.py +++ b/spark_fhir_schemas/r4/complex_types/examplescenario_process.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -75,6 +61,25 @@ def get_schema( step: Each step of the process. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.markdown import markdownSchema from spark_fhir_schemas.r4.complex_types.examplescenario_step import ( diff --git a/spark_fhir_schemas/r4/complex_types/examplescenario_step.py b/spark_fhir_schemas/r4/complex_types/examplescenario_step.py index f98739fa..f3caacff 100644 --- a/spark_fhir_schemas/r4/complex_types/examplescenario_step.py +++ b/spark_fhir_schemas/r4/complex_types/examplescenario_step.py @@ -25,21 +25,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -81,6 +67,25 @@ def get_schema( the base step in exceptional/atypical circumstances. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.examplescenario_process import ( ExampleScenario_ProcessSchema, diff --git a/spark_fhir_schemas/r4/complex_types/examplescenario_version.py b/spark_fhir_schemas/r4/complex_types/examplescenario_version.py index 4aa57764..46237784 100644 --- a/spark_fhir_schemas/r4/complex_types/examplescenario_version.py +++ b/spark_fhir_schemas/r4/complex_types/examplescenario_version.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -69,6 +55,25 @@ def get_schema( description: The description of the resource version. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.markdown import markdownSchema diff --git a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_accident.py b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_accident.py index 252c0507..06a447f0 100644 --- a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_accident.py +++ b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_accident.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -87,6 +73,25 @@ def get_schema( locationReference: The physical location of the accident event. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_additem.py b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_additem.py index 44dcc6b0..9ae9c381 100644 --- a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_additem.py +++ b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_additem.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -131,6 +117,25 @@ def get_schema( detail: The second-tier service adjudications for payor added services. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.positiveint import positiveIntSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema diff --git a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_adjudication.py b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_adjudication.py index 811d3595..e29249c7 100644 --- a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_adjudication.py +++ b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_adjudication.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -83,6 +69,25 @@ def get_schema( amount element above. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_benefitbalance.py b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_benefitbalance.py index 5a55f796..02e9035f 100644 --- a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_benefitbalance.py +++ b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_benefitbalance.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -96,6 +82,25 @@ def get_schema( financial: Benefits Used to date. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_careteam.py b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_careteam.py index 06711515..3e90707e 100644 --- a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_careteam.py +++ b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_careteam.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -88,6 +74,25 @@ def get_schema( qualification: The qualification of the practitioner which is applicable for this service. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.positiveint import positiveIntSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema diff --git a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_detail.py b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_detail.py index ba509400..a272adac 100644 --- a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_detail.py +++ b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_detail.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -108,6 +94,25 @@ def get_schema( subDetail: Third-tier of goods and services. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.positiveint import positiveIntSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_detail1.py b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_detail1.py index 811655b1..b90e2072 100644 --- a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_detail1.py +++ b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_detail1.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -96,6 +82,25 @@ def get_schema( subDetail: The third-tier service adjudications for payor added services. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_diagnosis.py b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_diagnosis.py index 98b99ed8..cb89b871 100644 --- a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_diagnosis.py +++ b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_diagnosis.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -85,6 +71,25 @@ def get_schema( predetermined grouping code system. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.positiveint import positiveIntSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_financial.py b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_financial.py index 171ed652..c0769adb 100644 --- a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_financial.py +++ b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_financial.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -88,6 +74,25 @@ def get_schema( usedMoney: The quantity of the benefit which have been consumed to date. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_insurance.py b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_insurance.py index beb52871..88c4aa9a 100644 --- a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_insurance.py +++ b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_insurance.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -87,6 +73,25 @@ def get_schema( prior authorization. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema diff --git a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_item.py b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_item.py index d57b771a..e0402a04 100644 --- a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_item.py +++ b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_item.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -143,6 +129,25 @@ def get_schema( detail: Second-tier of goods and services. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.positiveint import positiveIntSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_payee.py b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_payee.py index cfcc3899..537d4b6c 100644 --- a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_payee.py +++ b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_payee.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -73,6 +59,25 @@ def get_schema( party: Reference to the individual or organization to whom any payment will be made. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_payment.py b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_payment.py index 462f35e6..731bbfe6 100644 --- a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_payment.py +++ b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_payment.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -89,6 +75,25 @@ def get_schema( identifier: Issuer's unique identifier for the payment instrument. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_procedure.py b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_procedure.py index 64b0e725..8bde136c 100644 --- a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_procedure.py +++ b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_procedure.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -83,6 +69,25 @@ def get_schema( udi: Unique Device Identifiers associated with this line item. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.positiveint import positiveIntSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_processnote.py b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_processnote.py index 8e194c3f..e42b1b81 100644 --- a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_processnote.py +++ b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_processnote.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -77,6 +63,25 @@ def get_schema( language: A code to define the language used in the text of the note. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.positiveint import positiveIntSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_related.py b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_related.py index 0f1a2b33..33475c85 100644 --- a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_related.py +++ b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_related.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -76,6 +62,25 @@ def get_schema( particular claim pertains. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_subdetail.py b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_subdetail.py index baa93fec..35057955 100644 --- a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_subdetail.py +++ b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_subdetail.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -106,6 +92,25 @@ def get_schema( adjudication: The adjudication results. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.positiveint import positiveIntSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_subdetail1.py b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_subdetail1.py index 68b50498..ad6873ea 100644 --- a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_subdetail1.py +++ b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_subdetail1.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -94,6 +80,25 @@ def get_schema( adjudication: The adjudication results. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_supportinginfo.py b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_supportinginfo.py index 1b5433d4..7aeb9865 100644 --- a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_supportinginfo.py +++ b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_supportinginfo.py @@ -28,21 +28,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -108,6 +94,25 @@ def get_schema( addition to the content. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.positiveint import positiveIntSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_total.py b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_total.py index 3d8f1758..be798d5c 100644 --- a/spark_fhir_schemas/r4/complex_types/explanationofbenefit_total.py +++ b/spark_fhir_schemas/r4/complex_types/explanationofbenefit_total.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -77,6 +63,25 @@ def get_schema( amount: Monetary total amount associated with the category. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/expression.py b/spark_fhir_schemas/r4/complex_types/expression.py index d1664dda..864423d5 100644 --- a/spark_fhir_schemas/r4/complex_types/expression.py +++ b/spark_fhir_schemas/r4/complex_types/expression.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -67,6 +53,25 @@ def get_schema( reference: A URI that defines where the expression is found. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/complex_types/extension.py b/spark_fhir_schemas/r4/complex_types/extension.py index 4d2cd17e..f9a9171d 100644 --- a/spark_fhir_schemas/r4/complex_types/extension.py +++ b/spark_fhir_schemas/r4/complex_types/extension.py @@ -29,21 +29,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -214,6 +200,25 @@ def get_schema( [Extensibility](extensibility.html) for a list). """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.uri import uriSchema from spark_fhir_schemas.r4.complex_types.address import AddressSchema from spark_fhir_schemas.r4.complex_types.age import AgeSchema diff --git a/spark_fhir_schemas/r4/complex_types/familymemberhistory_condition.py b/spark_fhir_schemas/r4/complex_types/familymemberhistory_condition.py index 6364610e..782e2034 100644 --- a/spark_fhir_schemas/r4/complex_types/familymemberhistory_condition.py +++ b/spark_fhir_schemas/r4/complex_types/familymemberhistory_condition.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -102,6 +88,25 @@ def get_schema( note: An area where general notes can be placed about this specific condition. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/goal_target.py b/spark_fhir_schemas/r4/complex_types/goal_target.py index 7cd10e2e..e5c39cd2 100644 --- a/spark_fhir_schemas/r4/complex_types/goal_target.py +++ b/spark_fhir_schemas/r4/complex_types/goal_target.py @@ -29,21 +29,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -136,6 +122,25 @@ def get_schema( be met. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/graphdefinition_compartment.py b/spark_fhir_schemas/r4/complex_types/graphdefinition_compartment.py index d7d3ea57..01fde146 100644 --- a/spark_fhir_schemas/r4/complex_types/graphdefinition_compartment.py +++ b/spark_fhir_schemas/r4/complex_types/graphdefinition_compartment.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -81,6 +67,25 @@ def get_schema( description: Documentation for FHIRPath expression. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema diff --git a/spark_fhir_schemas/r4/complex_types/graphdefinition_link.py b/spark_fhir_schemas/r4/complex_types/graphdefinition_link.py index 41353dd1..6ddd78a2 100644 --- a/spark_fhir_schemas/r4/complex_types/graphdefinition_link.py +++ b/spark_fhir_schemas/r4/complex_types/graphdefinition_link.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -81,6 +67,25 @@ def get_schema( target: Potential target for the link. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.integer import integerSchema from spark_fhir_schemas.r4.complex_types.graphdefinition_target import ( diff --git a/spark_fhir_schemas/r4/complex_types/graphdefinition_target.py b/spark_fhir_schemas/r4/complex_types/graphdefinition_target.py index 2afdc511..5a410b0a 100644 --- a/spark_fhir_schemas/r4/complex_types/graphdefinition_target.py +++ b/spark_fhir_schemas/r4/complex_types/graphdefinition_target.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -79,6 +65,25 @@ def get_schema( link: Additional links from target resource. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema from spark_fhir_schemas.r4.simple_types.canonical import canonicalSchema diff --git a/spark_fhir_schemas/r4/complex_types/group_characteristic.py b/spark_fhir_schemas/r4/complex_types/group_characteristic.py index d730472c..032b901c 100644 --- a/spark_fhir_schemas/r4/complex_types/group_characteristic.py +++ b/spark_fhir_schemas/r4/complex_types/group_characteristic.py @@ -28,21 +28,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -101,6 +87,25 @@ def get_schema( operation during the month of June. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/group_member.py b/spark_fhir_schemas/r4/complex_types/group_member.py index e3f58f39..2b03dbb3 100644 --- a/spark_fhir_schemas/r4/complex_types/group_member.py +++ b/spark_fhir_schemas/r4/complex_types/group_member.py @@ -28,21 +28,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -87,6 +73,25 @@ def get_schema( may have been a member. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema from spark_fhir_schemas.r4.complex_types.period import PeriodSchema diff --git a/spark_fhir_schemas/r4/complex_types/healthcareservice_availabletime.py b/spark_fhir_schemas/r4/complex_types/healthcareservice_availabletime.py index dbc3a1af..5f29c3d6 100644 --- a/spark_fhir_schemas/r4/complex_types/healthcareservice_availabletime.py +++ b/spark_fhir_schemas/r4/complex_types/healthcareservice_availabletime.py @@ -25,21 +25,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -83,6 +69,25 @@ def get_schema( ignored. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.time import timeSchema diff --git a/spark_fhir_schemas/r4/complex_types/healthcareservice_eligibility.py b/spark_fhir_schemas/r4/complex_types/healthcareservice_eligibility.py index 2fafa869..9c4243cd 100644 --- a/spark_fhir_schemas/r4/complex_types/healthcareservice_eligibility.py +++ b/spark_fhir_schemas/r4/complex_types/healthcareservice_eligibility.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -69,6 +55,25 @@ def get_schema( comment: Describes the eligibility conditions for the service. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/healthcareservice_notavailable.py b/spark_fhir_schemas/r4/complex_types/healthcareservice_notavailable.py index 38d99b57..2e9ab257 100644 --- a/spark_fhir_schemas/r4/complex_types/healthcareservice_notavailable.py +++ b/spark_fhir_schemas/r4/complex_types/healthcareservice_notavailable.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -70,6 +56,25 @@ def get_schema( during: Service is not available (seasonally or for a public holiday) from this date. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.period import PeriodSchema diff --git a/spark_fhir_schemas/r4/complex_types/humanname.py b/spark_fhir_schemas/r4/complex_types/humanname.py index 62762379..72e60ee6 100644 --- a/spark_fhir_schemas/r4/complex_types/humanname.py +++ b/spark_fhir_schemas/r4/complex_types/humanname.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -69,6 +55,25 @@ def get_schema( period: Indicates the period of time when this name was valid for the named person. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.period import PeriodSchema diff --git a/spark_fhir_schemas/r4/complex_types/identifier.py b/spark_fhir_schemas/r4/complex_types/identifier.py index c416d400..117630cb 100644 --- a/spark_fhir_schemas/r4/complex_types/identifier.py +++ b/spark_fhir_schemas/r4/complex_types/identifier.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -68,6 +54,25 @@ def get_schema( assigner: Organization that issued/manages the identifier. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/imagingstudy_instance.py b/spark_fhir_schemas/r4/complex_types/imagingstudy_instance.py index 31aaae34..8b4a7439 100644 --- a/spark_fhir_schemas/r4/complex_types/imagingstudy_instance.py +++ b/spark_fhir_schemas/r4/complex_types/imagingstudy_instance.py @@ -22,21 +22,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -81,6 +67,25 @@ def get_schema( title: The description of the instance. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.coding import CodingSchema diff --git a/spark_fhir_schemas/r4/complex_types/imagingstudy_performer.py b/spark_fhir_schemas/r4/complex_types/imagingstudy_performer.py index 5348515d..cbc32105 100644 --- a/spark_fhir_schemas/r4/complex_types/imagingstudy_performer.py +++ b/spark_fhir_schemas/r4/complex_types/imagingstudy_performer.py @@ -22,21 +22,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -77,6 +63,25 @@ def get_schema( actor: Indicates who or what performed the series. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/imagingstudy_series.py b/spark_fhir_schemas/r4/complex_types/imagingstudy_series.py index 5300e306..4e598202 100644 --- a/spark_fhir_schemas/r4/complex_types/imagingstudy_series.py +++ b/spark_fhir_schemas/r4/complex_types/imagingstudy_series.py @@ -22,21 +22,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -110,6 +96,25 @@ def get_schema( instance: A single SOP instance within the series, e.g. an image, or presentation state. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.simple_types.unsignedint import unsignedIntSchema diff --git a/spark_fhir_schemas/r4/complex_types/immunization_education.py b/spark_fhir_schemas/r4/complex_types/immunization_education.py index 2ce36151..f05fc3c2 100644 --- a/spark_fhir_schemas/r4/complex_types/immunization_education.py +++ b/spark_fhir_schemas/r4/complex_types/immunization_education.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -76,6 +62,25 @@ def get_schema( presentationDate: Date the educational material was given to the patient. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema from spark_fhir_schemas.r4.simple_types.datetime import dateTimeSchema diff --git a/spark_fhir_schemas/r4/complex_types/immunization_performer.py b/spark_fhir_schemas/r4/complex_types/immunization_performer.py index 7854ecde..ea3ef7d1 100644 --- a/spark_fhir_schemas/r4/complex_types/immunization_performer.py +++ b/spark_fhir_schemas/r4/complex_types/immunization_performer.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -72,6 +58,25 @@ def get_schema( actor: The practitioner or organization who performed the action. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/immunization_protocolapplied.py b/spark_fhir_schemas/r4/complex_types/immunization_protocolapplied.py index 705e2be9..4a750b89 100644 --- a/spark_fhir_schemas/r4/complex_types/immunization_protocolapplied.py +++ b/spark_fhir_schemas/r4/complex_types/immunization_protocolapplied.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -90,6 +76,25 @@ def get_schema( seriesDosesString: The recommended number of doses to achieve immunity. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/immunization_reaction.py b/spark_fhir_schemas/r4/complex_types/immunization_reaction.py index a90b26ad..ebaeb6f5 100644 --- a/spark_fhir_schemas/r4/complex_types/immunization_reaction.py +++ b/spark_fhir_schemas/r4/complex_types/immunization_reaction.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -80,6 +66,25 @@ def get_schema( reported: Self-reported indicator. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.datetime import dateTimeSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema diff --git a/spark_fhir_schemas/r4/complex_types/immunizationrecommendation_datecriterion.py b/spark_fhir_schemas/r4/complex_types/immunizationrecommendation_datecriterion.py index 14e3131a..9da6db24 100644 --- a/spark_fhir_schemas/r4/complex_types/immunizationrecommendation_datecriterion.py +++ b/spark_fhir_schemas/r4/complex_types/immunizationrecommendation_datecriterion.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -72,6 +58,25 @@ def get_schema( value: The date whose meaning is specified by dateCriterion.code. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/immunizationrecommendation_recommendation.py b/spark_fhir_schemas/r4/complex_types/immunizationrecommendation_recommendation.py index a96f608e..710a30c7 100644 --- a/spark_fhir_schemas/r4/complex_types/immunizationrecommendation_recommendation.py +++ b/spark_fhir_schemas/r4/complex_types/immunizationrecommendation_recommendation.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -111,6 +97,25 @@ def get_schema( information. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/implementationguide_definition.py b/spark_fhir_schemas/r4/complex_types/implementationguide_definition.py index 2f4df11c..12dba1f4 100644 --- a/spark_fhir_schemas/r4/complex_types/implementationguide_definition.py +++ b/spark_fhir_schemas/r4/complex_types/implementationguide_definition.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -85,6 +71,25 @@ def get_schema( template: A template for building resources. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.implementationguide_grouping import ( ImplementationGuide_GroupingSchema, diff --git a/spark_fhir_schemas/r4/complex_types/implementationguide_dependson.py b/spark_fhir_schemas/r4/complex_types/implementationguide_dependson.py index 6c660cf7..9c7bee84 100644 --- a/spark_fhir_schemas/r4/complex_types/implementationguide_dependson.py +++ b/spark_fhir_schemas/r4/complex_types/implementationguide_dependson.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -78,6 +64,25 @@ def get_schema( required to understand the IG correctly. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.canonical import canonicalSchema from spark_fhir_schemas.r4.simple_types.id import idSchema diff --git a/spark_fhir_schemas/r4/complex_types/implementationguide_global.py b/spark_fhir_schemas/r4/complex_types/implementationguide_global.py index e0ba713e..85c4c2b8 100644 --- a/spark_fhir_schemas/r4/complex_types/implementationguide_global.py +++ b/spark_fhir_schemas/r4/complex_types/implementationguide_global.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -75,6 +61,25 @@ def get_schema( profile: A reference to the profile that all instances must conform to. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema from spark_fhir_schemas.r4.simple_types.canonical import canonicalSchema diff --git a/spark_fhir_schemas/r4/complex_types/implementationguide_grouping.py b/spark_fhir_schemas/r4/complex_types/implementationguide_grouping.py index 77e39696..8fdcf493 100644 --- a/spark_fhir_schemas/r4/complex_types/implementationguide_grouping.py +++ b/spark_fhir_schemas/r4/complex_types/implementationguide_grouping.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -76,6 +62,25 @@ def get_schema( description: Human readable text describing the package. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema if ( diff --git a/spark_fhir_schemas/r4/complex_types/implementationguide_manifest.py b/spark_fhir_schemas/r4/complex_types/implementationguide_manifest.py index 64ef1df9..07e52fa8 100644 --- a/spark_fhir_schemas/r4/complex_types/implementationguide_manifest.py +++ b/spark_fhir_schemas/r4/complex_types/implementationguide_manifest.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -87,6 +73,25 @@ def get_schema( hyperlink in a derived IG. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.url import urlSchema from spark_fhir_schemas.r4.complex_types.implementationguide_resource1 import ( diff --git a/spark_fhir_schemas/r4/complex_types/implementationguide_page.py b/spark_fhir_schemas/r4/complex_types/implementationguide_page.py index 3a45a9cb..72ce5718 100644 --- a/spark_fhir_schemas/r4/complex_types/implementationguide_page.py +++ b/spark_fhir_schemas/r4/complex_types/implementationguide_page.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -82,6 +68,25 @@ def get_schema( page: Nested Pages/Sections under this page. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema diff --git a/spark_fhir_schemas/r4/complex_types/implementationguide_page1.py b/spark_fhir_schemas/r4/complex_types/implementationguide_page1.py index 48dd3edc..e67d950d 100644 --- a/spark_fhir_schemas/r4/complex_types/implementationguide_page1.py +++ b/spark_fhir_schemas/r4/complex_types/implementationguide_page1.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -77,6 +63,25 @@ def get_schema( anchor: The name of an anchor available on the page. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema if ( diff --git a/spark_fhir_schemas/r4/complex_types/implementationguide_parameter.py b/spark_fhir_schemas/r4/complex_types/implementationguide_parameter.py index 51601960..6d730311 100644 --- a/spark_fhir_schemas/r4/complex_types/implementationguide_parameter.py +++ b/spark_fhir_schemas/r4/complex_types/implementationguide_parameter.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -77,6 +63,25 @@ def get_schema( value: Value for named type. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema if ( diff --git a/spark_fhir_schemas/r4/complex_types/implementationguide_resource.py b/spark_fhir_schemas/r4/complex_types/implementationguide_resource.py index 859b772c..32e922f2 100644 --- a/spark_fhir_schemas/r4/complex_types/implementationguide_resource.py +++ b/spark_fhir_schemas/r4/complex_types/implementationguide_resource.py @@ -28,21 +28,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -100,6 +86,25 @@ def get_schema( groupingId: Reference to the id of the grouping this resource appears in. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema from spark_fhir_schemas.r4.simple_types.id import idSchema diff --git a/spark_fhir_schemas/r4/complex_types/implementationguide_resource1.py b/spark_fhir_schemas/r4/complex_types/implementationguide_resource1.py index 1ea5c222..09b4038d 100644 --- a/spark_fhir_schemas/r4/complex_types/implementationguide_resource1.py +++ b/spark_fhir_schemas/r4/complex_types/implementationguide_resource1.py @@ -28,21 +28,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -90,6 +76,25 @@ def get_schema( relativePath: The relative path for primary page for this resource within the IG. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema from spark_fhir_schemas.r4.simple_types.url import urlSchema diff --git a/spark_fhir_schemas/r4/complex_types/implementationguide_template.py b/spark_fhir_schemas/r4/complex_types/implementationguide_template.py index 7791c269..8f8f1a3a 100644 --- a/spark_fhir_schemas/r4/complex_types/implementationguide_template.py +++ b/spark_fhir_schemas/r4/complex_types/implementationguide_template.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -77,6 +63,25 @@ def get_schema( scope: The scope in which the template applies. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema diff --git a/spark_fhir_schemas/r4/complex_types/insuranceplan_benefit.py b/spark_fhir_schemas/r4/complex_types/insuranceplan_benefit.py index 31578cbc..285f8ef6 100644 --- a/spark_fhir_schemas/r4/complex_types/insuranceplan_benefit.py +++ b/spark_fhir_schemas/r4/complex_types/insuranceplan_benefit.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -71,6 +57,25 @@ def get_schema( limit: The specific limits on the benefit. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/insuranceplan_benefit1.py b/spark_fhir_schemas/r4/complex_types/insuranceplan_benefit1.py index 6adf5ee8..5fdaf6ac 100644 --- a/spark_fhir_schemas/r4/complex_types/insuranceplan_benefit1.py +++ b/spark_fhir_schemas/r4/complex_types/insuranceplan_benefit1.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -70,6 +56,25 @@ def get_schema( cost: List of the costs associated with a specific benefit. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/insuranceplan_contact.py b/spark_fhir_schemas/r4/complex_types/insuranceplan_contact.py index aa96b4fe..98ecc092 100644 --- a/spark_fhir_schemas/r4/complex_types/insuranceplan_contact.py +++ b/spark_fhir_schemas/r4/complex_types/insuranceplan_contact.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -74,6 +60,25 @@ def get_schema( address: Visiting or postal addresses for the contact. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/insuranceplan_cost.py b/spark_fhir_schemas/r4/complex_types/insuranceplan_cost.py index ce916a58..ef7d1a16 100644 --- a/spark_fhir_schemas/r4/complex_types/insuranceplan_cost.py +++ b/spark_fhir_schemas/r4/complex_types/insuranceplan_cost.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -76,6 +62,25 @@ def get_schema( rather than currency, e.g. 10% coinsurance). """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/insuranceplan_coverage.py b/spark_fhir_schemas/r4/complex_types/insuranceplan_coverage.py index 2503af76..2f35e12e 100644 --- a/spark_fhir_schemas/r4/complex_types/insuranceplan_coverage.py +++ b/spark_fhir_schemas/r4/complex_types/insuranceplan_coverage.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -72,6 +58,25 @@ def get_schema( benefit: Specific benefits under this type of coverage. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/insuranceplan_generalcost.py b/spark_fhir_schemas/r4/complex_types/insuranceplan_generalcost.py index 7e531116..739a8263 100644 --- a/spark_fhir_schemas/r4/complex_types/insuranceplan_generalcost.py +++ b/spark_fhir_schemas/r4/complex_types/insuranceplan_generalcost.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -73,6 +59,25 @@ def get_schema( comment: Additional information about the general costs associated with this plan. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/insuranceplan_limit.py b/spark_fhir_schemas/r4/complex_types/insuranceplan_limit.py index bb898cd9..efe9dbee 100644 --- a/spark_fhir_schemas/r4/complex_types/insuranceplan_limit.py +++ b/spark_fhir_schemas/r4/complex_types/insuranceplan_limit.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -70,6 +56,25 @@ def get_schema( code: The specific limit on the benefit. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.quantity import QuantitySchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/insuranceplan_plan.py b/spark_fhir_schemas/r4/complex_types/insuranceplan_plan.py index b8932787..48714bc9 100644 --- a/spark_fhir_schemas/r4/complex_types/insuranceplan_plan.py +++ b/spark_fhir_schemas/r4/complex_types/insuranceplan_plan.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -78,6 +64,25 @@ def get_schema( specificCost: Costs associated with the coverage provided by the product. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.identifier import IdentifierSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/insuranceplan_specificcost.py b/spark_fhir_schemas/r4/complex_types/insuranceplan_specificcost.py index b3f8a56e..c23ff36e 100644 --- a/spark_fhir_schemas/r4/complex_types/insuranceplan_specificcost.py +++ b/spark_fhir_schemas/r4/complex_types/insuranceplan_specificcost.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -70,6 +56,25 @@ def get_schema( benefit: List of the specific benefits under this category of benefit. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/invoice_lineitem.py b/spark_fhir_schemas/r4/complex_types/invoice_lineitem.py index fc0711d2..7ea5aa4d 100644 --- a/spark_fhir_schemas/r4/complex_types/invoice_lineitem.py +++ b/spark_fhir_schemas/r4/complex_types/invoice_lineitem.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -84,6 +70,25 @@ def get_schema( prices have been calculated. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.positiveint import positiveIntSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema diff --git a/spark_fhir_schemas/r4/complex_types/invoice_participant.py b/spark_fhir_schemas/r4/complex_types/invoice_participant.py index ff7fe1b4..fe9f7117 100644 --- a/spark_fhir_schemas/r4/complex_types/invoice_participant.py +++ b/spark_fhir_schemas/r4/complex_types/invoice_participant.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -73,6 +59,25 @@ def get_schema( actor: The device, practitioner, etc. who performed or participated in the service. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/invoice_pricecomponent.py b/spark_fhir_schemas/r4/complex_types/invoice_pricecomponent.py index 56dafaef..b7627b80 100644 --- a/spark_fhir_schemas/r4/complex_types/invoice_pricecomponent.py +++ b/spark_fhir_schemas/r4/complex_types/invoice_pricecomponent.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -77,6 +63,25 @@ def get_schema( amount: The amount calculated for this component. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/linkage_item.py b/spark_fhir_schemas/r4/complex_types/linkage_item.py index c86e8587..4d2cfee1 100644 --- a/spark_fhir_schemas/r4/complex_types/linkage_item.py +++ b/spark_fhir_schemas/r4/complex_types/linkage_item.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -72,6 +58,25 @@ def get_schema( resource: The resource instance being linked as part of the group. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema diff --git a/spark_fhir_schemas/r4/complex_types/list_entry.py b/spark_fhir_schemas/r4/complex_types/list_entry.py index c3e6cf4a..3a9fe492 100644 --- a/spark_fhir_schemas/r4/complex_types/list_entry.py +++ b/spark_fhir_schemas/r4/complex_types/list_entry.py @@ -25,21 +25,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -81,6 +67,25 @@ def get_schema( item: A reference to the actual resource from which data was derived. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/location_hoursofoperation.py b/spark_fhir_schemas/r4/complex_types/location_hoursofoperation.py index 3a8d13af..90bb6d14 100644 --- a/spark_fhir_schemas/r4/complex_types/location_hoursofoperation.py +++ b/spark_fhir_schemas/r4/complex_types/location_hoursofoperation.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -85,6 +71,25 @@ def get_schema( closingTime: Time that the Location closes. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema from spark_fhir_schemas.r4.simple_types.time import timeSchema diff --git a/spark_fhir_schemas/r4/complex_types/location_position.py b/spark_fhir_schemas/r4/complex_types/location_position.py index 9e8d0830..6ce38056 100644 --- a/spark_fhir_schemas/r4/complex_types/location_position.py +++ b/spark_fhir_schemas/r4/complex_types/location_position.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -78,6 +64,25 @@ def get_schema( of the altitude element in KML (see notes below). """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.decimal import decimalSchema diff --git a/spark_fhir_schemas/r4/complex_types/marketingstatus.py b/spark_fhir_schemas/r4/complex_types/marketingstatus.py index a95c242f..3e08be3a 100644 --- a/spark_fhir_schemas/r4/complex_types/marketingstatus.py +++ b/spark_fhir_schemas/r4/complex_types/marketingstatus.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -92,6 +78,25 @@ def get_schema( distribution chain. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/measure_component.py b/spark_fhir_schemas/r4/complex_types/measure_component.py index db56264b..e3ef3fce 100644 --- a/spark_fhir_schemas/r4/complex_types/measure_component.py +++ b/spark_fhir_schemas/r4/complex_types/measure_component.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -75,6 +61,25 @@ def get_schema( referenced library, but it may also be a path to a stratifier element. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/measure_group.py b/spark_fhir_schemas/r4/complex_types/measure_group.py index b97bc26b..f7276f5c 100644 --- a/spark_fhir_schemas/r4/complex_types/measure_group.py +++ b/spark_fhir_schemas/r4/complex_types/measure_group.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -77,6 +63,25 @@ def get_schema( Resource Path. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/measure_population.py b/spark_fhir_schemas/r4/complex_types/measure_population.py index 156f9047..304e4e1c 100644 --- a/spark_fhir_schemas/r4/complex_types/measure_population.py +++ b/spark_fhir_schemas/r4/complex_types/measure_population.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -72,6 +58,25 @@ def get_schema( name of an expression in a library. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/measure_stratifier.py b/spark_fhir_schemas/r4/complex_types/measure_stratifier.py index ccc1e1ce..ef404bc4 100644 --- a/spark_fhir_schemas/r4/complex_types/measure_stratifier.py +++ b/spark_fhir_schemas/r4/complex_types/measure_stratifier.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -79,6 +65,25 @@ def get_schema( or a valid FHIR Resource Path. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/measure_supplementaldata.py b/spark_fhir_schemas/r4/complex_types/measure_supplementaldata.py index 22d81653..38cfd1f9 100644 --- a/spark_fhir_schemas/r4/complex_types/measure_supplementaldata.py +++ b/spark_fhir_schemas/r4/complex_types/measure_supplementaldata.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -83,6 +69,25 @@ def get_schema( element. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/measurereport_component.py b/spark_fhir_schemas/r4/complex_types/measurereport_component.py index 29f0d737..eeee6ee2 100644 --- a/spark_fhir_schemas/r4/complex_types/measurereport_component.py +++ b/spark_fhir_schemas/r4/complex_types/measurereport_component.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -73,6 +59,25 @@ def get_schema( value: The stratum component value. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/measurereport_group.py b/spark_fhir_schemas/r4/complex_types/measurereport_group.py index bb9a87fb..35d6d56c 100644 --- a/spark_fhir_schemas/r4/complex_types/measurereport_group.py +++ b/spark_fhir_schemas/r4/complex_types/measurereport_group.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -81,6 +67,25 @@ def get_schema( for each stratifier defined by the measure. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/measurereport_population.py b/spark_fhir_schemas/r4/complex_types/measurereport_population.py index 0b228779..6e4913ee 100644 --- a/spark_fhir_schemas/r4/complex_types/measurereport_population.py +++ b/spark_fhir_schemas/r4/complex_types/measurereport_population.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -76,6 +62,25 @@ def get_schema( for each subject in this population. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/measurereport_population1.py b/spark_fhir_schemas/r4/complex_types/measurereport_population1.py index c46e234d..05de68a1 100644 --- a/spark_fhir_schemas/r4/complex_types/measurereport_population1.py +++ b/spark_fhir_schemas/r4/complex_types/measurereport_population1.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -76,6 +62,25 @@ def get_schema( for each subject in this population in this stratum. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/measurereport_stratifier.py b/spark_fhir_schemas/r4/complex_types/measurereport_stratifier.py index 37de77c3..be181406 100644 --- a/spark_fhir_schemas/r4/complex_types/measurereport_stratifier.py +++ b/spark_fhir_schemas/r4/complex_types/measurereport_stratifier.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -75,6 +61,25 @@ def get_schema( strata, one for each possible gender value. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/measurereport_stratum.py b/spark_fhir_schemas/r4/complex_types/measurereport_stratum.py index a166ed6e..1c75713e 100644 --- a/spark_fhir_schemas/r4/complex_types/measurereport_stratum.py +++ b/spark_fhir_schemas/r4/complex_types/measurereport_stratum.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -81,6 +67,25 @@ def get_schema( type and scoring method, and based on only the members of this stratum. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/medication_batch.py b/spark_fhir_schemas/r4/complex_types/medication_batch.py index 1547db89..230b0a4a 100644 --- a/spark_fhir_schemas/r4/complex_types/medication_batch.py +++ b/spark_fhir_schemas/r4/complex_types/medication_batch.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -73,6 +59,25 @@ def get_schema( expirationDate: When this specific batch of product will expire. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.datetime import dateTimeSchema diff --git a/spark_fhir_schemas/r4/complex_types/medication_ingredient.py b/spark_fhir_schemas/r4/complex_types/medication_ingredient.py index 18bcad19..508495ad 100644 --- a/spark_fhir_schemas/r4/complex_types/medication_ingredient.py +++ b/spark_fhir_schemas/r4/complex_types/medication_ingredient.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -89,6 +75,25 @@ def get_schema( numerator is 250mg and the denominator is 1 tablet. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/medicationadministration_dosage.py b/spark_fhir_schemas/r4/complex_types/medicationadministration_dosage.py index ec7cbbbb..4e0f88db 100644 --- a/spark_fhir_schemas/r4/complex_types/medicationadministration_dosage.py +++ b/spark_fhir_schemas/r4/complex_types/medicationadministration_dosage.py @@ -22,21 +22,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -106,6 +92,25 @@ def get_schema( 2 hours. Other examples: 200 mcg/min or 200 mcg/1 minute; 1 liter/8 hours. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/medicationadministration_performer.py b/spark_fhir_schemas/r4/complex_types/medicationadministration_performer.py index b7aef70b..d3e31781 100644 --- a/spark_fhir_schemas/r4/complex_types/medicationadministration_performer.py +++ b/spark_fhir_schemas/r4/complex_types/medicationadministration_performer.py @@ -22,21 +22,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -78,6 +64,25 @@ def get_schema( actor: Indicates who or what performed the medication administration. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/medicationdispense_performer.py b/spark_fhir_schemas/r4/complex_types/medicationdispense_performer.py index 94a2643d..76c0b0ae 100644 --- a/spark_fhir_schemas/r4/complex_types/medicationdispense_performer.py +++ b/spark_fhir_schemas/r4/complex_types/medicationdispense_performer.py @@ -22,21 +22,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -79,6 +65,25 @@ def get_schema( that the actor is the dispenser of the medication. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/medicationdispense_substitution.py b/spark_fhir_schemas/r4/complex_types/medicationdispense_substitution.py index 035fd71f..e401798b 100644 --- a/spark_fhir_schemas/r4/complex_types/medicationdispense_substitution.py +++ b/spark_fhir_schemas/r4/complex_types/medicationdispense_substitution.py @@ -29,21 +29,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -92,6 +78,25 @@ def get_schema( substitution. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/medicationknowledge_administrationguidelines.py b/spark_fhir_schemas/r4/complex_types/medicationknowledge_administrationguidelines.py index 64525fb4..6952c894 100644 --- a/spark_fhir_schemas/r4/complex_types/medicationknowledge_administrationguidelines.py +++ b/spark_fhir_schemas/r4/complex_types/medicationknowledge_administrationguidelines.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -74,6 +60,25 @@ def get_schema( guidelines (for example, height, weight, gender, etc.). """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.medicationknowledge_dosage import ( MedicationKnowledge_DosageSchema, diff --git a/spark_fhir_schemas/r4/complex_types/medicationknowledge_cost.py b/spark_fhir_schemas/r4/complex_types/medicationknowledge_cost.py index 8be06426..704373f7 100644 --- a/spark_fhir_schemas/r4/complex_types/medicationknowledge_cost.py +++ b/spark_fhir_schemas/r4/complex_types/medicationknowledge_cost.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -72,6 +58,25 @@ def get_schema( cost: The price of the medication. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/medicationknowledge_dosage.py b/spark_fhir_schemas/r4/complex_types/medicationknowledge_dosage.py index 23ca038b..962922f1 100644 --- a/spark_fhir_schemas/r4/complex_types/medicationknowledge_dosage.py +++ b/spark_fhir_schemas/r4/complex_types/medicationknowledge_dosage.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -69,6 +55,25 @@ def get_schema( dosage: Dosage for the medication for the specific guidelines. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/medicationknowledge_drugcharacteristic.py b/spark_fhir_schemas/r4/complex_types/medicationknowledge_drugcharacteristic.py index 896cc7ac..621cf345 100644 --- a/spark_fhir_schemas/r4/complex_types/medicationknowledge_drugcharacteristic.py +++ b/spark_fhir_schemas/r4/complex_types/medicationknowledge_drugcharacteristic.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -76,6 +62,25 @@ def get_schema( valueBase64Binary: Description of the characteristic. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/medicationknowledge_ingredient.py b/spark_fhir_schemas/r4/complex_types/medicationknowledge_ingredient.py index 81f3e2b5..7dc721cc 100644 --- a/spark_fhir_schemas/r4/complex_types/medicationknowledge_ingredient.py +++ b/spark_fhir_schemas/r4/complex_types/medicationknowledge_ingredient.py @@ -25,21 +25,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -85,6 +71,25 @@ def get_schema( numerator is 250mg and the denominator is 1 tablet. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/medicationknowledge_kinetics.py b/spark_fhir_schemas/r4/complex_types/medicationknowledge_kinetics.py index f83b6847..49e512c0 100644 --- a/spark_fhir_schemas/r4/complex_types/medicationknowledge_kinetics.py +++ b/spark_fhir_schemas/r4/complex_types/medicationknowledge_kinetics.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -72,6 +58,25 @@ def get_schema( substance in the body) to decrease by half. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.quantity import QuantitySchema from spark_fhir_schemas.r4.complex_types.duration import DurationSchema diff --git a/spark_fhir_schemas/r4/complex_types/medicationknowledge_maxdispense.py b/spark_fhir_schemas/r4/complex_types/medicationknowledge_maxdispense.py index 82ce60e5..8c29ca50 100644 --- a/spark_fhir_schemas/r4/complex_types/medicationknowledge_maxdispense.py +++ b/spark_fhir_schemas/r4/complex_types/medicationknowledge_maxdispense.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -69,6 +55,25 @@ def get_schema( period: The period that applies to the maximum number of units. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.quantity import QuantitySchema from spark_fhir_schemas.r4.complex_types.duration import DurationSchema diff --git a/spark_fhir_schemas/r4/complex_types/medicationknowledge_medicineclassification.py b/spark_fhir_schemas/r4/complex_types/medicationknowledge_medicineclassification.py index 58ccde4d..f616655b 100644 --- a/spark_fhir_schemas/r4/complex_types/medicationknowledge_medicineclassification.py +++ b/spark_fhir_schemas/r4/complex_types/medicationknowledge_medicineclassification.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -71,6 +57,25 @@ def get_schema( hypertensive, antibiotic, etc.). """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/medicationknowledge_monitoringprogram.py b/spark_fhir_schemas/r4/complex_types/medicationknowledge_monitoringprogram.py index 3f6c0838..fbf58d4a 100644 --- a/spark_fhir_schemas/r4/complex_types/medicationknowledge_monitoringprogram.py +++ b/spark_fhir_schemas/r4/complex_types/medicationknowledge_monitoringprogram.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -69,6 +55,25 @@ def get_schema( name: Name of the reviewing program. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/medicationknowledge_monograph.py b/spark_fhir_schemas/r4/complex_types/medicationknowledge_monograph.py index 153d6598..9f70f24a 100644 --- a/spark_fhir_schemas/r4/complex_types/medicationknowledge_monograph.py +++ b/spark_fhir_schemas/r4/complex_types/medicationknowledge_monograph.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -70,6 +56,25 @@ def get_schema( source: Associated documentation about the medication. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/medicationknowledge_packaging.py b/spark_fhir_schemas/r4/complex_types/medicationknowledge_packaging.py index 74b3889b..9a173314 100644 --- a/spark_fhir_schemas/r4/complex_types/medicationknowledge_packaging.py +++ b/spark_fhir_schemas/r4/complex_types/medicationknowledge_packaging.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -70,6 +56,25 @@ def get_schema( quantity: The number of product units the package would contain if fully loaded. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/medicationknowledge_patientcharacteristics.py b/spark_fhir_schemas/r4/complex_types/medicationknowledge_patientcharacteristics.py index 4163a605..6140c0ce 100644 --- a/spark_fhir_schemas/r4/complex_types/medicationknowledge_patientcharacteristics.py +++ b/spark_fhir_schemas/r4/complex_types/medicationknowledge_patientcharacteristics.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -73,6 +59,25 @@ def get_schema( value: The specific characteristic (e.g. height, weight, gender, etc.). """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/medicationknowledge_regulatory.py b/spark_fhir_schemas/r4/complex_types/medicationknowledge_regulatory.py index 3841f1ab..86c5af4f 100644 --- a/spark_fhir_schemas/r4/complex_types/medicationknowledge_regulatory.py +++ b/spark_fhir_schemas/r4/complex_types/medicationknowledge_regulatory.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -75,6 +61,25 @@ def get_schema( period. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema from spark_fhir_schemas.r4.complex_types.medicationknowledge_substitution import ( diff --git a/spark_fhir_schemas/r4/complex_types/medicationknowledge_relatedmedicationknowledge.py b/spark_fhir_schemas/r4/complex_types/medicationknowledge_relatedmedicationknowledge.py index d68559af..bf21c067 100644 --- a/spark_fhir_schemas/r4/complex_types/medicationknowledge_relatedmedicationknowledge.py +++ b/spark_fhir_schemas/r4/complex_types/medicationknowledge_relatedmedicationknowledge.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -69,6 +55,25 @@ def get_schema( reference: Associated documentation about the associated medication knowledge. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/medicationknowledge_schedule.py b/spark_fhir_schemas/r4/complex_types/medicationknowledge_schedule.py index 12ad67a7..3d62684e 100644 --- a/spark_fhir_schemas/r4/complex_types/medicationknowledge_schedule.py +++ b/spark_fhir_schemas/r4/complex_types/medicationknowledge_schedule.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -67,6 +53,25 @@ def get_schema( schedule: Specifies the specific drug schedule. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/medicationknowledge_substitution.py b/spark_fhir_schemas/r4/complex_types/medicationknowledge_substitution.py index 3a7410ba..c0edf91e 100644 --- a/spark_fhir_schemas/r4/complex_types/medicationknowledge_substitution.py +++ b/spark_fhir_schemas/r4/complex_types/medicationknowledge_substitution.py @@ -25,21 +25,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -76,6 +62,25 @@ def get_schema( allowed: Specifies if regulation allows for changes in the medication when dispensing. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/medicationrequest_dispenserequest.py b/spark_fhir_schemas/r4/complex_types/medicationrequest_dispenserequest.py index 9a9be1dd..a02fb685 100644 --- a/spark_fhir_schemas/r4/complex_types/medicationrequest_dispenserequest.py +++ b/spark_fhir_schemas/r4/complex_types/medicationrequest_dispenserequest.py @@ -22,21 +22,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -96,6 +82,25 @@ def get_schema( performer: Indicates the intended dispensing Organization specified by the prescriber. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.medicationrequest_initialfill import ( MedicationRequest_InitialFillSchema, diff --git a/spark_fhir_schemas/r4/complex_types/medicationrequest_initialfill.py b/spark_fhir_schemas/r4/complex_types/medicationrequest_initialfill.py index 41949d39..aa164061 100644 --- a/spark_fhir_schemas/r4/complex_types/medicationrequest_initialfill.py +++ b/spark_fhir_schemas/r4/complex_types/medicationrequest_initialfill.py @@ -22,21 +22,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -77,6 +63,25 @@ def get_schema( duration: The length of time that the first dispense is expected to last. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.quantity import QuantitySchema from spark_fhir_schemas.r4.complex_types.duration import DurationSchema diff --git a/spark_fhir_schemas/r4/complex_types/medicationrequest_substitution.py b/spark_fhir_schemas/r4/complex_types/medicationrequest_substitution.py index 95bf19fb..1d665631 100644 --- a/spark_fhir_schemas/r4/complex_types/medicationrequest_substitution.py +++ b/spark_fhir_schemas/r4/complex_types/medicationrequest_substitution.py @@ -29,21 +29,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -89,6 +75,25 @@ def get_schema( not be performed. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/medicinalproduct_countrylanguage.py b/spark_fhir_schemas/r4/complex_types/medicinalproduct_countrylanguage.py index 80ee6c00..8a0182db 100644 --- a/spark_fhir_schemas/r4/complex_types/medicinalproduct_countrylanguage.py +++ b/spark_fhir_schemas/r4/complex_types/medicinalproduct_countrylanguage.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -73,6 +59,25 @@ def get_schema( language: Language code for this name. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/medicinalproduct_manufacturingbusinessoperation.py b/spark_fhir_schemas/r4/complex_types/medicinalproduct_manufacturingbusinessoperation.py index 630d7c4a..b91386fa 100644 --- a/spark_fhir_schemas/r4/complex_types/medicinalproduct_manufacturingbusinessoperation.py +++ b/spark_fhir_schemas/r4/complex_types/medicinalproduct_manufacturingbusinessoperation.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -79,6 +65,25 @@ def get_schema( regulator: A regulator which oversees the operation. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/medicinalproduct_name.py b/spark_fhir_schemas/r4/complex_types/medicinalproduct_name.py index 586e9529..017475f4 100644 --- a/spark_fhir_schemas/r4/complex_types/medicinalproduct_name.py +++ b/spark_fhir_schemas/r4/complex_types/medicinalproduct_name.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -73,6 +59,25 @@ def get_schema( countryLanguage: Country where the name applies. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.medicinalproduct_namepart import ( MedicinalProduct_NamePartSchema, diff --git a/spark_fhir_schemas/r4/complex_types/medicinalproduct_namepart.py b/spark_fhir_schemas/r4/complex_types/medicinalproduct_namepart.py index d1b43cbd..c040cba9 100644 --- a/spark_fhir_schemas/r4/complex_types/medicinalproduct_namepart.py +++ b/spark_fhir_schemas/r4/complex_types/medicinalproduct_namepart.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -71,6 +57,25 @@ def get_schema( type: Idenifying type for this part of the name (e.g. strength part). """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.coding import CodingSchema diff --git a/spark_fhir_schemas/r4/complex_types/medicinalproduct_specialdesignation.py b/spark_fhir_schemas/r4/complex_types/medicinalproduct_specialdesignation.py index 4ccd5ec6..fc4dabf0 100644 --- a/spark_fhir_schemas/r4/complex_types/medicinalproduct_specialdesignation.py +++ b/spark_fhir_schemas/r4/complex_types/medicinalproduct_specialdesignation.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -83,6 +69,25 @@ def get_schema( species: Animal species for which this applies. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.identifier import IdentifierSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/medicinalproductauthorization_jurisdictionalauthorization.py b/spark_fhir_schemas/r4/complex_types/medicinalproductauthorization_jurisdictionalauthorization.py index 85bb5d82..8b04b48c 100644 --- a/spark_fhir_schemas/r4/complex_types/medicinalproductauthorization_jurisdictionalauthorization.py +++ b/spark_fhir_schemas/r4/complex_types/medicinalproductauthorization_jurisdictionalauthorization.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -75,6 +61,25 @@ def get_schema( validityPeriod: The start and expected end date of the authorization. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.identifier import IdentifierSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/medicinalproductauthorization_procedure.py b/spark_fhir_schemas/r4/complex_types/medicinalproductauthorization_procedure.py index d815e3cc..f645734e 100644 --- a/spark_fhir_schemas/r4/complex_types/medicinalproductauthorization_procedure.py +++ b/spark_fhir_schemas/r4/complex_types/medicinalproductauthorization_procedure.py @@ -25,21 +25,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -82,6 +68,25 @@ def get_schema( application: Applcations submitted to obtain a marketing authorization. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.identifier import IdentifierSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/medicinalproductcontraindication_othertherapy.py b/spark_fhir_schemas/r4/complex_types/medicinalproductcontraindication_othertherapy.py index 74d9ceb3..94852b2d 100644 --- a/spark_fhir_schemas/r4/complex_types/medicinalproductcontraindication_othertherapy.py +++ b/spark_fhir_schemas/r4/complex_types/medicinalproductcontraindication_othertherapy.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -76,6 +62,25 @@ class of products) as part of an indication or contraindication. class of products) as part of an indication or contraindication. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/medicinalproductindication_othertherapy.py b/spark_fhir_schemas/r4/complex_types/medicinalproductindication_othertherapy.py index 3276e07c..5187be7a 100644 --- a/spark_fhir_schemas/r4/complex_types/medicinalproductindication_othertherapy.py +++ b/spark_fhir_schemas/r4/complex_types/medicinalproductindication_othertherapy.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -74,6 +60,25 @@ class of products) as part of an indication or contraindication. class of products) as part of an indication or contraindication. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/medicinalproductingredient_referencestrength.py b/spark_fhir_schemas/r4/complex_types/medicinalproductingredient_referencestrength.py index d9526409..bea0f577 100644 --- a/spark_fhir_schemas/r4/complex_types/medicinalproductingredient_referencestrength.py +++ b/spark_fhir_schemas/r4/complex_types/medicinalproductingredient_referencestrength.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -75,6 +61,25 @@ def get_schema( country: The country or countries for which the strength range applies. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/medicinalproductingredient_specifiedsubstance.py b/spark_fhir_schemas/r4/complex_types/medicinalproductingredient_specifiedsubstance.py index 8453e4bc..09761a53 100644 --- a/spark_fhir_schemas/r4/complex_types/medicinalproductingredient_specifiedsubstance.py +++ b/spark_fhir_schemas/r4/complex_types/medicinalproductingredient_specifiedsubstance.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -74,6 +60,25 @@ def get_schema( item or pharmaceutical product. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/medicinalproductingredient_strength.py b/spark_fhir_schemas/r4/complex_types/medicinalproductingredient_strength.py index 3248a7f9..ad2fbe7b 100644 --- a/spark_fhir_schemas/r4/complex_types/medicinalproductingredient_strength.py +++ b/spark_fhir_schemas/r4/complex_types/medicinalproductingredient_strength.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -83,6 +69,25 @@ def get_schema( referenceStrength: Strength expressed in terms of a reference substance. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.ratio import RatioSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/medicinalproductingredient_substance.py b/spark_fhir_schemas/r4/complex_types/medicinalproductingredient_substance.py index 76ded0ee..b38c3979 100644 --- a/spark_fhir_schemas/r4/complex_types/medicinalproductingredient_substance.py +++ b/spark_fhir_schemas/r4/complex_types/medicinalproductingredient_substance.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -70,6 +56,25 @@ def get_schema( item or pharmaceutical product. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/medicinalproductinteraction_interactant.py b/spark_fhir_schemas/r4/complex_types/medicinalproductinteraction_interactant.py index bc5a680b..1a521719 100644 --- a/spark_fhir_schemas/r4/complex_types/medicinalproductinteraction_interactant.py +++ b/spark_fhir_schemas/r4/complex_types/medicinalproductinteraction_interactant.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -71,6 +57,25 @@ def get_schema( itemCodeableConcept: The specific medication, food or laboratory test that interacts. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/medicinalproductpackaged_batchidentifier.py b/spark_fhir_schemas/r4/complex_types/medicinalproductpackaged_batchidentifier.py index 0290c31a..ac0c4f13 100644 --- a/spark_fhir_schemas/r4/complex_types/medicinalproductpackaged_batchidentifier.py +++ b/spark_fhir_schemas/r4/complex_types/medicinalproductpackaged_batchidentifier.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -69,6 +55,25 @@ def get_schema( immediatePackaging: A number appearing on the immediate packaging (and not the outer packaging). """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.identifier import IdentifierSchema diff --git a/spark_fhir_schemas/r4/complex_types/medicinalproductpackaged_packageitem.py b/spark_fhir_schemas/r4/complex_types/medicinalproductpackaged_packageitem.py index 0db38d64..87f38c68 100644 --- a/spark_fhir_schemas/r4/complex_types/medicinalproductpackaged_packageitem.py +++ b/spark_fhir_schemas/r4/complex_types/medicinalproductpackaged_packageitem.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -90,6 +76,25 @@ def get_schema( manufacturer: Manufacturer of this Package Item. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.identifier import IdentifierSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/medicinalproductpharmaceutical_characteristics.py b/spark_fhir_schemas/r4/complex_types/medicinalproductpharmaceutical_characteristics.py index 81f60136..2e993464 100644 --- a/spark_fhir_schemas/r4/complex_types/medicinalproductpharmaceutical_characteristics.py +++ b/spark_fhir_schemas/r4/complex_types/medicinalproductpharmaceutical_characteristics.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -69,6 +55,25 @@ def get_schema( status: The status of characteristic e.g. assigned or pending. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/medicinalproductpharmaceutical_routeofadministration.py b/spark_fhir_schemas/r4/complex_types/medicinalproductpharmaceutical_routeofadministration.py index 0a9aeb7b..915a761f 100644 --- a/spark_fhir_schemas/r4/complex_types/medicinalproductpharmaceutical_routeofadministration.py +++ b/spark_fhir_schemas/r4/complex_types/medicinalproductpharmaceutical_routeofadministration.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -88,6 +74,25 @@ def get_schema( targetSpecies: A species for which this route applies. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/medicinalproductpharmaceutical_targetspecies.py b/spark_fhir_schemas/r4/complex_types/medicinalproductpharmaceutical_targetspecies.py index 8f3c1dfb..f6eb9004 100644 --- a/spark_fhir_schemas/r4/complex_types/medicinalproductpharmaceutical_targetspecies.py +++ b/spark_fhir_schemas/r4/complex_types/medicinalproductpharmaceutical_targetspecies.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -70,6 +56,25 @@ def get_schema( appropriate. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/medicinalproductpharmaceutical_withdrawalperiod.py b/spark_fhir_schemas/r4/complex_types/medicinalproductpharmaceutical_withdrawalperiod.py index 30d4e573..bb5c8f0b 100644 --- a/spark_fhir_schemas/r4/complex_types/medicinalproductpharmaceutical_withdrawalperiod.py +++ b/spark_fhir_schemas/r4/complex_types/medicinalproductpharmaceutical_withdrawalperiod.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -72,6 +58,25 @@ def get_schema( supportingInformation: Extra information about the withdrawal period. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/messagedefinition_allowedresponse.py b/spark_fhir_schemas/r4/complex_types/messagedefinition_allowedresponse.py index d8358e7b..0a68d9e4 100644 --- a/spark_fhir_schemas/r4/complex_types/messagedefinition_allowedresponse.py +++ b/spark_fhir_schemas/r4/complex_types/messagedefinition_allowedresponse.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -75,6 +61,25 @@ def get_schema( used (as opposed to one of the alternative responses). """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.canonical import canonicalSchema from spark_fhir_schemas.r4.simple_types.markdown import markdownSchema diff --git a/spark_fhir_schemas/r4/complex_types/messagedefinition_focus.py b/spark_fhir_schemas/r4/complex_types/messagedefinition_focus.py index 804d67eb..9182be42 100644 --- a/spark_fhir_schemas/r4/complex_types/messagedefinition_focus.py +++ b/spark_fhir_schemas/r4/complex_types/messagedefinition_focus.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -80,6 +66,25 @@ def get_schema( to by a message in order for it to be valid against this MessageDefinition. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema from spark_fhir_schemas.r4.simple_types.canonical import canonicalSchema diff --git a/spark_fhir_schemas/r4/complex_types/messageheader_destination.py b/spark_fhir_schemas/r4/complex_types/messageheader_destination.py index eed2fc72..a183b8b3 100644 --- a/spark_fhir_schemas/r4/complex_types/messageheader_destination.py +++ b/spark_fhir_schemas/r4/complex_types/messageheader_destination.py @@ -22,21 +22,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -83,6 +69,25 @@ def get_schema( department when routing to a specific application isn't sufficient. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema from spark_fhir_schemas.r4.simple_types.url import urlSchema diff --git a/spark_fhir_schemas/r4/complex_types/messageheader_response.py b/spark_fhir_schemas/r4/complex_types/messageheader_response.py index 20b85c02..05659543 100644 --- a/spark_fhir_schemas/r4/complex_types/messageheader_response.py +++ b/spark_fhir_schemas/r4/complex_types/messageheader_response.py @@ -22,21 +22,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -80,6 +66,25 @@ def get_schema( details: Full details of any issues found in the message. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema diff --git a/spark_fhir_schemas/r4/complex_types/messageheader_source.py b/spark_fhir_schemas/r4/complex_types/messageheader_source.py index 03dd6276..2fa0fc72 100644 --- a/spark_fhir_schemas/r4/complex_types/messageheader_source.py +++ b/spark_fhir_schemas/r4/complex_types/messageheader_source.py @@ -22,21 +22,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -85,6 +71,25 @@ def get_schema( endpoint: Identifies the routing target to send acknowledgements to. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.contactpoint import ContactPointSchema from spark_fhir_schemas.r4.simple_types.url import urlSchema diff --git a/spark_fhir_schemas/r4/complex_types/meta.py b/spark_fhir_schemas/r4/complex_types/meta.py index 1c824a64..eee2dc55 100644 --- a/spark_fhir_schemas/r4/complex_types/meta.py +++ b/spark_fhir_schemas/r4/complex_types/meta.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -76,6 +62,25 @@ def get_schema( consider the tags when interpreting the meaning of a resource. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.simple_types.instant import instantSchema diff --git a/spark_fhir_schemas/r4/complex_types/molecularsequence_inner.py b/spark_fhir_schemas/r4/complex_types/molecularsequence_inner.py index 6a693dc5..f23e9276 100644 --- a/spark_fhir_schemas/r4/complex_types/molecularsequence_inner.py +++ b/spark_fhir_schemas/r4/complex_types/molecularsequence_inner.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -72,6 +58,25 @@ def get_schema( 1-base, then end is inclusive and includes the last position. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.integer import integerSchema diff --git a/spark_fhir_schemas/r4/complex_types/molecularsequence_outer.py b/spark_fhir_schemas/r4/complex_types/molecularsequence_outer.py index 42c23ab0..a8224b28 100644 --- a/spark_fhir_schemas/r4/complex_types/molecularsequence_outer.py +++ b/spark_fhir_schemas/r4/complex_types/molecularsequence_outer.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -72,6 +58,25 @@ def get_schema( 1-base, then end is inclusive and includes the last position. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.integer import integerSchema diff --git a/spark_fhir_schemas/r4/complex_types/molecularsequence_quality.py b/spark_fhir_schemas/r4/complex_types/molecularsequence_quality.py index c999585b..7483c884 100644 --- a/spark_fhir_schemas/r4/complex_types/molecularsequence_quality.py +++ b/spark_fhir_schemas/r4/complex_types/molecularsequence_quality.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -115,6 +101,25 @@ def get_schema( tradeoff. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/molecularsequence_referenceseq.py b/spark_fhir_schemas/r4/complex_types/molecularsequence_referenceseq.py index f306b4b4..0c3411aa 100644 --- a/spark_fhir_schemas/r4/complex_types/molecularsequence_referenceseq.py +++ b/spark_fhir_schemas/r4/complex_types/molecularsequence_referenceseq.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -99,6 +85,25 @@ def get_schema( position. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/molecularsequence_repository.py b/spark_fhir_schemas/r4/complex_types/molecularsequence_repository.py index 74801c55..9c5a0063 100644 --- a/spark_fhir_schemas/r4/complex_types/molecularsequence_repository.py +++ b/spark_fhir_schemas/r4/complex_types/molecularsequence_repository.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -83,6 +69,25 @@ def get_schema( readsetId: Id of the read in this external repository. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/complex_types/molecularsequence_roc.py b/spark_fhir_schemas/r4/complex_types/molecularsequence_roc.py index 830c0911..5a35a628 100644 --- a/spark_fhir_schemas/r4/complex_types/molecularsequence_roc.py +++ b/spark_fhir_schemas/r4/complex_types/molecularsequence_roc.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -83,6 +69,25 @@ def get_schema( fMeasure: Calculated fScore if the GQ score threshold was set to "score" field value. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.integer import integerSchema from spark_fhir_schemas.r4.simple_types.decimal import decimalSchema diff --git a/spark_fhir_schemas/r4/complex_types/molecularsequence_structurevariant.py b/spark_fhir_schemas/r4/complex_types/molecularsequence_structurevariant.py index d8ff7288..3223ec67 100644 --- a/spark_fhir_schemas/r4/complex_types/molecularsequence_structurevariant.py +++ b/spark_fhir_schemas/r4/complex_types/molecularsequence_structurevariant.py @@ -25,21 +25,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -83,6 +69,25 @@ def get_schema( inner: Structural variant inner. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/molecularsequence_variant.py b/spark_fhir_schemas/r4/complex_types/molecularsequence_variant.py index abb86231..6e700270 100644 --- a/spark_fhir_schemas/r4/complex_types/molecularsequence_variant.py +++ b/spark_fhir_schemas/r4/complex_types/molecularsequence_variant.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -94,6 +80,25 @@ def get_schema( variantPointer: A pointer to an Observation containing variant information. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.integer import integerSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema diff --git a/spark_fhir_schemas/r4/complex_types/money.py b/spark_fhir_schemas/r4/complex_types/money.py index 8e8f202b..8035a19b 100644 --- a/spark_fhir_schemas/r4/complex_types/money.py +++ b/spark_fhir_schemas/r4/complex_types/money.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -55,6 +41,25 @@ def get_schema( currency: ISO 4217 Currency Code. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.decimal import decimalSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema diff --git a/spark_fhir_schemas/r4/complex_types/namingsystem_uniqueid.py b/spark_fhir_schemas/r4/complex_types/namingsystem_uniqueid.py index c1a3d214..ab1b9ebe 100644 --- a/spark_fhir_schemas/r4/complex_types/namingsystem_uniqueid.py +++ b/spark_fhir_schemas/r4/complex_types/namingsystem_uniqueid.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -89,6 +75,25 @@ def get_schema( identifier might be non-deterministic. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.period import PeriodSchema diff --git a/spark_fhir_schemas/r4/complex_types/narrative.py b/spark_fhir_schemas/r4/complex_types/narrative.py index eb5d61f7..7b111430 100644 --- a/spark_fhir_schemas/r4/complex_types/narrative.py +++ b/spark_fhir_schemas/r4/complex_types/narrative.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -59,6 +45,25 @@ def get_schema( div: The actual narrative content, a stripped down version of XHTML. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.xhtml import xhtmlSchema diff --git a/spark_fhir_schemas/r4/complex_types/nutritionorder_administration.py b/spark_fhir_schemas/r4/complex_types/nutritionorder_administration.py index 1e13a829..1f05b372 100644 --- a/spark_fhir_schemas/r4/complex_types/nutritionorder_administration.py +++ b/spark_fhir_schemas/r4/complex_types/nutritionorder_administration.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -79,6 +65,25 @@ def get_schema( according to the specified schedule. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.timing import TimingSchema from spark_fhir_schemas.r4.complex_types.quantity import QuantitySchema diff --git a/spark_fhir_schemas/r4/complex_types/nutritionorder_enteralformula.py b/spark_fhir_schemas/r4/complex_types/nutritionorder_enteralformula.py index 8d6c19dd..1c121de9 100644 --- a/spark_fhir_schemas/r4/complex_types/nutritionorder_enteralformula.py +++ b/spark_fhir_schemas/r4/complex_types/nutritionorder_enteralformula.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -99,6 +85,25 @@ def get_schema( instructions or information. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/nutritionorder_nutrient.py b/spark_fhir_schemas/r4/complex_types/nutritionorder_nutrient.py index d77ff544..e46825c1 100644 --- a/spark_fhir_schemas/r4/complex_types/nutritionorder_nutrient.py +++ b/spark_fhir_schemas/r4/complex_types/nutritionorder_nutrient.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -71,6 +57,25 @@ def get_schema( amount: The quantity of the specified nutrient to include in diet. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/nutritionorder_oraldiet.py b/spark_fhir_schemas/r4/complex_types/nutritionorder_oraldiet.py index 1eb379f8..3989bd00 100644 --- a/spark_fhir_schemas/r4/complex_types/nutritionorder_oraldiet.py +++ b/spark_fhir_schemas/r4/complex_types/nutritionorder_oraldiet.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -86,6 +72,25 @@ def get_schema( diet. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/nutritionorder_supplement.py b/spark_fhir_schemas/r4/complex_types/nutritionorder_supplement.py index 48098355..afe89e48 100644 --- a/spark_fhir_schemas/r4/complex_types/nutritionorder_supplement.py +++ b/spark_fhir_schemas/r4/complex_types/nutritionorder_supplement.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -82,6 +68,25 @@ def get_schema( supplement. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/nutritionorder_texture.py b/spark_fhir_schemas/r4/complex_types/nutritionorder_texture.py index fe020c42..f9676a0e 100644 --- a/spark_fhir_schemas/r4/complex_types/nutritionorder_texture.py +++ b/spark_fhir_schemas/r4/complex_types/nutritionorder_texture.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -73,6 +59,25 @@ def get_schema( applies to. This could be all foods types. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/observation_component.py b/spark_fhir_schemas/r4/complex_types/observation_component.py index ca9c8976..4864c39c 100644 --- a/spark_fhir_schemas/r4/complex_types/observation_component.py +++ b/spark_fhir_schemas/r4/complex_types/observation_component.py @@ -28,21 +28,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -120,6 +106,25 @@ def get_schema( recommended range. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/observation_referencerange.py b/spark_fhir_schemas/r4/complex_types/observation_referencerange.py index 2696f7a3..3a802b1c 100644 --- a/spark_fhir_schemas/r4/complex_types/observation_referencerange.py +++ b/spark_fhir_schemas/r4/complex_types/observation_referencerange.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -94,6 +80,25 @@ def get_schema( a reference value of "Negative" or a list or table of "normals". """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.quantity import QuantitySchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/observationdefinition_qualifiedinterval.py b/spark_fhir_schemas/r4/complex_types/observationdefinition_qualifiedinterval.py index b090d032..9c7ef3f8 100644 --- a/spark_fhir_schemas/r4/complex_types/observationdefinition_qualifiedinterval.py +++ b/spark_fhir_schemas/r4/complex_types/observationdefinition_qualifiedinterval.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -88,6 +74,25 @@ def get_schema( condition: Text based condition for which the reference range is valid. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.range import RangeSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/observationdefinition_quantitativedetails.py b/spark_fhir_schemas/r4/complex_types/observationdefinition_quantitativedetails.py index fb99c4da..88e2712d 100644 --- a/spark_fhir_schemas/r4/complex_types/observationdefinition_quantitativedetails.py +++ b/spark_fhir_schemas/r4/complex_types/observationdefinition_quantitativedetails.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -79,6 +65,25 @@ def get_schema( are of type Quantity. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/operationdefinition_binding.py b/spark_fhir_schemas/r4/complex_types/operationdefinition_binding.py index 84326dcc..4134c588 100644 --- a/spark_fhir_schemas/r4/complex_types/operationdefinition_binding.py +++ b/spark_fhir_schemas/r4/complex_types/operationdefinition_binding.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -74,6 +60,25 @@ def get_schema( identifies the set of codes to be used. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.canonical import canonicalSchema diff --git a/spark_fhir_schemas/r4/complex_types/operationdefinition_overload.py b/spark_fhir_schemas/r4/complex_types/operationdefinition_overload.py index b0c5d6e3..0c484a2a 100644 --- a/spark_fhir_schemas/r4/complex_types/operationdefinition_overload.py +++ b/spark_fhir_schemas/r4/complex_types/operationdefinition_overload.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -71,6 +57,25 @@ def get_schema( comment: Comments to go on overload. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema if ( diff --git a/spark_fhir_schemas/r4/complex_types/operationdefinition_parameter.py b/spark_fhir_schemas/r4/complex_types/operationdefinition_parameter.py index 5bfd6018..91bcbdcb 100644 --- a/spark_fhir_schemas/r4/complex_types/operationdefinition_parameter.py +++ b/spark_fhir_schemas/r4/complex_types/operationdefinition_parameter.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -101,6 +87,25 @@ def get_schema( part: The parts of a nested Parameter. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema from spark_fhir_schemas.r4.simple_types.integer import integerSchema diff --git a/spark_fhir_schemas/r4/complex_types/operationdefinition_referencedfrom.py b/spark_fhir_schemas/r4/complex_types/operationdefinition_referencedfrom.py index 631cdf95..90c1582e 100644 --- a/spark_fhir_schemas/r4/complex_types/operationdefinition_referencedfrom.py +++ b/spark_fhir_schemas/r4/complex_types/operationdefinition_referencedfrom.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -74,6 +60,25 @@ def get_schema( to this resource. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema if ( diff --git a/spark_fhir_schemas/r4/complex_types/operationoutcome_issue.py b/spark_fhir_schemas/r4/complex_types/operationoutcome_issue.py index 34296a04..e2e52307 100644 --- a/spark_fhir_schemas/r4/complex_types/operationoutcome_issue.py +++ b/spark_fhir_schemas/r4/complex_types/operationoutcome_issue.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -90,6 +76,25 @@ def get_schema( the elements in the resource that caused this issue to be raised. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/organization_contact.py b/spark_fhir_schemas/r4/complex_types/organization_contact.py index e80f4a84..dd444f1d 100644 --- a/spark_fhir_schemas/r4/complex_types/organization_contact.py +++ b/spark_fhir_schemas/r4/complex_types/organization_contact.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -80,6 +66,25 @@ def get_schema( address: Visiting or postal addresses for the contact. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/parameterdefinition.py b/spark_fhir_schemas/r4/complex_types/parameterdefinition.py index 2d0a81b2..36074066 100644 --- a/spark_fhir_schemas/r4/complex_types/parameterdefinition.py +++ b/spark_fhir_schemas/r4/complex_types/parameterdefinition.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -74,6 +60,25 @@ def get_schema( that the output data will conform to. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema from spark_fhir_schemas.r4.simple_types.integer import integerSchema diff --git a/spark_fhir_schemas/r4/complex_types/parameters_parameter.py b/spark_fhir_schemas/r4/complex_types/parameters_parameter.py index d156ed68..23c7d9bd 100644 --- a/spark_fhir_schemas/r4/complex_types/parameters_parameter.py +++ b/spark_fhir_schemas/r4/complex_types/parameters_parameter.py @@ -31,21 +31,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -186,6 +172,25 @@ def get_schema( part: A named part of a multi-part parameter. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.address import AddressSchema from spark_fhir_schemas.r4.complex_types.age import AgeSchema diff --git a/spark_fhir_schemas/r4/complex_types/patient_communication.py b/spark_fhir_schemas/r4/complex_types/patient_communication.py index 83df9bd7..4167b2ff 100644 --- a/spark_fhir_schemas/r4/complex_types/patient_communication.py +++ b/spark_fhir_schemas/r4/complex_types/patient_communication.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -82,6 +68,25 @@ def get_schema( languages he masters up a certain level). """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/patient_contact.py b/spark_fhir_schemas/r4/complex_types/patient_contact.py index 44fa7308..a9e823df 100644 --- a/spark_fhir_schemas/r4/complex_types/patient_contact.py +++ b/spark_fhir_schemas/r4/complex_types/patient_contact.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -84,6 +70,25 @@ def get_schema( contacted relating to this patient. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/patient_link.py b/spark_fhir_schemas/r4/complex_types/patient_link.py index 6988e49a..c6aeeb6a 100644 --- a/spark_fhir_schemas/r4/complex_types/patient_link.py +++ b/spark_fhir_schemas/r4/complex_types/patient_link.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -71,6 +57,25 @@ def get_schema( type: The type of link between this patient resource and another patient resource. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema diff --git a/spark_fhir_schemas/r4/complex_types/paymentreconciliation_detail.py b/spark_fhir_schemas/r4/complex_types/paymentreconciliation_detail.py index 4c330df9..9d794b82 100644 --- a/spark_fhir_schemas/r4/complex_types/paymentreconciliation_detail.py +++ b/spark_fhir_schemas/r4/complex_types/paymentreconciliation_detail.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -95,6 +81,25 @@ def get_schema( amount: The monetary amount allocated from the total payment to the payable. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.identifier import IdentifierSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/paymentreconciliation_processnote.py b/spark_fhir_schemas/r4/complex_types/paymentreconciliation_processnote.py index e0a59984..a7bf1493 100644 --- a/spark_fhir_schemas/r4/complex_types/paymentreconciliation_processnote.py +++ b/spark_fhir_schemas/r4/complex_types/paymentreconciliation_processnote.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -71,6 +57,25 @@ def get_schema( text: The explanation or description associated with the processing. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema if ( diff --git a/spark_fhir_schemas/r4/complex_types/period.py b/spark_fhir_schemas/r4/complex_types/period.py index 57b290f3..e7264dba 100644 --- a/spark_fhir_schemas/r4/complex_types/period.py +++ b/spark_fhir_schemas/r4/complex_types/period.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -58,6 +44,25 @@ def get_schema( expected/planned to end at that time. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.datetime import dateTimeSchema diff --git a/spark_fhir_schemas/r4/complex_types/person_link.py b/spark_fhir_schemas/r4/complex_types/person_link.py index 37ee8bd2..03a324cf 100644 --- a/spark_fhir_schemas/r4/complex_types/person_link.py +++ b/spark_fhir_schemas/r4/complex_types/person_link.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -71,6 +57,25 @@ def get_schema( assurance: Level of assurance that this link is associated with the target resource. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema diff --git a/spark_fhir_schemas/r4/complex_types/plandefinition_action.py b/spark_fhir_schemas/r4/complex_types/plandefinition_action.py index 8da1fcbc..de8ce49f 100644 --- a/spark_fhir_schemas/r4/complex_types/plandefinition_action.py +++ b/spark_fhir_schemas/r4/complex_types/plandefinition_action.py @@ -28,21 +28,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -168,6 +154,25 @@ def get_schema( chosen as part of realizing the action definition. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/plandefinition_condition.py b/spark_fhir_schemas/r4/complex_types/plandefinition_condition.py index 8f138c8a..33529f72 100644 --- a/spark_fhir_schemas/r4/complex_types/plandefinition_condition.py +++ b/spark_fhir_schemas/r4/complex_types/plandefinition_condition.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -76,6 +62,25 @@ def get_schema( satisfied. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.expression import ExpressionSchema diff --git a/spark_fhir_schemas/r4/complex_types/plandefinition_dynamicvalue.py b/spark_fhir_schemas/r4/complex_types/plandefinition_dynamicvalue.py index b3ec61d6..8762e66d 100644 --- a/spark_fhir_schemas/r4/complex_types/plandefinition_dynamicvalue.py +++ b/spark_fhir_schemas/r4/complex_types/plandefinition_dynamicvalue.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -82,6 +68,25 @@ def get_schema( expression: An expression specifying the value of the customized element. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.expression import ExpressionSchema diff --git a/spark_fhir_schemas/r4/complex_types/plandefinition_goal.py b/spark_fhir_schemas/r4/complex_types/plandefinition_goal.py index 082cf713..55592bce 100644 --- a/spark_fhir_schemas/r4/complex_types/plandefinition_goal.py +++ b/spark_fhir_schemas/r4/complex_types/plandefinition_goal.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -91,6 +77,25 @@ def get_schema( target: Indicates what should be done and within what timeframe. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/plandefinition_participant.py b/spark_fhir_schemas/r4/complex_types/plandefinition_participant.py index 3e8cce06..b628bf7d 100644 --- a/spark_fhir_schemas/r4/complex_types/plandefinition_participant.py +++ b/spark_fhir_schemas/r4/complex_types/plandefinition_participant.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -75,6 +61,25 @@ def get_schema( role: The role the participant should play in performing the described action. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/plandefinition_relatedaction.py b/spark_fhir_schemas/r4/complex_types/plandefinition_relatedaction.py index 8b9c11f7..b51709d1 100644 --- a/spark_fhir_schemas/r4/complex_types/plandefinition_relatedaction.py +++ b/spark_fhir_schemas/r4/complex_types/plandefinition_relatedaction.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -81,6 +67,25 @@ def get_schema( 30-60 minutes before. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.duration import DurationSchema diff --git a/spark_fhir_schemas/r4/complex_types/plandefinition_target.py b/spark_fhir_schemas/r4/complex_types/plandefinition_target.py index b191cc85..78782b0e 100644 --- a/spark_fhir_schemas/r4/complex_types/plandefinition_target.py +++ b/spark_fhir_schemas/r4/complex_types/plandefinition_target.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -98,6 +84,25 @@ def get_schema( be met. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/population.py b/spark_fhir_schemas/r4/complex_types/population.py index 2b683baf..1511b60a 100644 --- a/spark_fhir_schemas/r4/complex_types/population.py +++ b/spark_fhir_schemas/r4/complex_types/population.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -76,6 +62,25 @@ def get_schema( applies. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.range import RangeSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/practitioner_qualification.py b/spark_fhir_schemas/r4/complex_types/practitioner_qualification.py index 9694b4b2..f7ea8e4a 100644 --- a/spark_fhir_schemas/r4/complex_types/practitioner_qualification.py +++ b/spark_fhir_schemas/r4/complex_types/practitioner_qualification.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -75,6 +61,25 @@ def get_schema( issuer: Organization that regulates and issues the qualification. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.identifier import IdentifierSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/practitionerrole_availabletime.py b/spark_fhir_schemas/r4/complex_types/practitionerrole_availabletime.py index e82194ae..71c50865 100644 --- a/spark_fhir_schemas/r4/complex_types/practitionerrole_availabletime.py +++ b/spark_fhir_schemas/r4/complex_types/practitionerrole_availabletime.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -85,6 +71,25 @@ def get_schema( ignored. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema from spark_fhir_schemas.r4.simple_types.time import timeSchema diff --git a/spark_fhir_schemas/r4/complex_types/practitionerrole_notavailable.py b/spark_fhir_schemas/r4/complex_types/practitionerrole_notavailable.py index df75e900..bb56a39b 100644 --- a/spark_fhir_schemas/r4/complex_types/practitionerrole_notavailable.py +++ b/spark_fhir_schemas/r4/complex_types/practitionerrole_notavailable.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -72,6 +58,25 @@ def get_schema( during: Service is not available (seasonally or for a public holiday) from this date. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.period import PeriodSchema diff --git a/spark_fhir_schemas/r4/complex_types/procedure_focaldevice.py b/spark_fhir_schemas/r4/complex_types/procedure_focaldevice.py index 439beb4b..a7e476e9 100644 --- a/spark_fhir_schemas/r4/complex_types/procedure_focaldevice.py +++ b/spark_fhir_schemas/r4/complex_types/procedure_focaldevice.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -73,6 +59,25 @@ def get_schema( manipulated: The device that was manipulated (changed) during the procedure. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/procedure_performer.py b/spark_fhir_schemas/r4/complex_types/procedure_performer.py index 3bf2c110..d0e8ef5e 100644 --- a/spark_fhir_schemas/r4/complex_types/procedure_performer.py +++ b/spark_fhir_schemas/r4/complex_types/procedure_performer.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -76,6 +62,25 @@ def get_schema( onBehalfOf: The organization the device or practitioner was acting on behalf of. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/prodcharacteristic.py b/spark_fhir_schemas/r4/complex_types/prodcharacteristic.py index 0430ef6c..9f06fd4f 100644 --- a/spark_fhir_schemas/r4/complex_types/prodcharacteristic.py +++ b/spark_fhir_schemas/r4/complex_types/prodcharacteristic.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -111,6 +97,25 @@ def get_schema( vocabulary shall be used The term and the term identifier shall be used. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.quantity import QuantitySchema from spark_fhir_schemas.r4.complex_types.attachment import AttachmentSchema diff --git a/spark_fhir_schemas/r4/complex_types/productshelflife.py b/spark_fhir_schemas/r4/complex_types/productshelflife.py index cf8f5388..1bcf8e0b 100644 --- a/spark_fhir_schemas/r4/complex_types/productshelflife.py +++ b/spark_fhir_schemas/r4/complex_types/productshelflife.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -85,6 +71,25 @@ def get_schema( shall be specified. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.identifier import IdentifierSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/provenance_agent.py b/spark_fhir_schemas/r4/complex_types/provenance_agent.py index 296196f9..b3638dd9 100644 --- a/spark_fhir_schemas/r4/complex_types/provenance_agent.py +++ b/spark_fhir_schemas/r4/complex_types/provenance_agent.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -90,6 +76,25 @@ def get_schema( onBehalfOf: The individual, device, or organization for whom the change was made. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/provenance_entity.py b/spark_fhir_schemas/r4/complex_types/provenance_entity.py index a9dab523..d351d7d6 100644 --- a/spark_fhir_schemas/r4/complex_types/provenance_entity.py +++ b/spark_fhir_schemas/r4/complex_types/provenance_entity.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -91,6 +77,25 @@ def get_schema( activity which generated the entity. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema from spark_fhir_schemas.r4.complex_types.provenance_agent import ( diff --git a/spark_fhir_schemas/r4/complex_types/quantity.py b/spark_fhir_schemas/r4/complex_types/quantity.py index 4a07c991..70950986 100644 --- a/spark_fhir_schemas/r4/complex_types/quantity.py +++ b/spark_fhir_schemas/r4/complex_types/quantity.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -68,6 +54,25 @@ def get_schema( code: A computer processable form of the unit in some unit representation system. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.decimal import decimalSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/complex_types/questionnaire_answeroption.py b/spark_fhir_schemas/r4/complex_types/questionnaire_answeroption.py index 83baebc2..50065d34 100644 --- a/spark_fhir_schemas/r4/complex_types/questionnaire_answeroption.py +++ b/spark_fhir_schemas/r4/complex_types/questionnaire_answeroption.py @@ -29,21 +29,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -93,6 +79,25 @@ def get_schema( answers is initially shown. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.coding import CodingSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema diff --git a/spark_fhir_schemas/r4/complex_types/questionnaire_enablewhen.py b/spark_fhir_schemas/r4/complex_types/questionnaire_enablewhen.py index b6fb7b84..5e6f0276 100644 --- a/spark_fhir_schemas/r4/complex_types/questionnaire_enablewhen.py +++ b/spark_fhir_schemas/r4/complex_types/questionnaire_enablewhen.py @@ -31,21 +31,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -115,6 +101,25 @@ def get_schema( order for the item to be enabled. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.coding import CodingSchema from spark_fhir_schemas.r4.complex_types.quantity import QuantitySchema diff --git a/spark_fhir_schemas/r4/complex_types/questionnaire_initial.py b/spark_fhir_schemas/r4/complex_types/questionnaire_initial.py index 8d2ff975..5394bda6 100644 --- a/spark_fhir_schemas/r4/complex_types/questionnaire_initial.py +++ b/spark_fhir_schemas/r4/complex_types/questionnaire_initial.py @@ -31,21 +31,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -104,6 +90,25 @@ def get_schema( valueReference: The actual value to for an initial answer. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.attachment import AttachmentSchema from spark_fhir_schemas.r4.complex_types.coding import CodingSchema diff --git a/spark_fhir_schemas/r4/complex_types/questionnaire_item.py b/spark_fhir_schemas/r4/complex_types/questionnaire_item.py index 835be162..e03c7c32 100644 --- a/spark_fhir_schemas/r4/complex_types/questionnaire_item.py +++ b/spark_fhir_schemas/r4/complex_types/questionnaire_item.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -139,6 +125,25 @@ def get_schema( item: Text, questions and other groups to be nested beneath a question or group. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema from spark_fhir_schemas.r4.complex_types.coding import CodingSchema diff --git a/spark_fhir_schemas/r4/complex_types/questionnaireresponse_answer.py b/spark_fhir_schemas/r4/complex_types/questionnaireresponse_answer.py index b0371b57..37a31635 100644 --- a/spark_fhir_schemas/r4/complex_types/questionnaireresponse_answer.py +++ b/spark_fhir_schemas/r4/complex_types/questionnaireresponse_answer.py @@ -31,21 +31,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -106,6 +92,25 @@ def get_schema( item: Nested groups and/or questions found within this particular answer. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.attachment import AttachmentSchema from spark_fhir_schemas.r4.complex_types.coding import CodingSchema diff --git a/spark_fhir_schemas/r4/complex_types/questionnaireresponse_item.py b/spark_fhir_schemas/r4/complex_types/questionnaireresponse_item.py index c65a4bd2..37270a5d 100644 --- a/spark_fhir_schemas/r4/complex_types/questionnaireresponse_item.py +++ b/spark_fhir_schemas/r4/complex_types/questionnaireresponse_item.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -82,6 +68,25 @@ def get_schema( item: Questions or sub-groups nested beneath a question or group. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema from spark_fhir_schemas.r4.complex_types.questionnaireresponse_answer import ( diff --git a/spark_fhir_schemas/r4/complex_types/range.py b/spark_fhir_schemas/r4/complex_types/range.py index a542fbe0..4f8d8a3a 100644 --- a/spark_fhir_schemas/r4/complex_types/range.py +++ b/spark_fhir_schemas/r4/complex_types/range.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -55,6 +41,25 @@ def get_schema( high: The high limit. The boundary is inclusive. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.quantity import QuantitySchema diff --git a/spark_fhir_schemas/r4/complex_types/ratio.py b/spark_fhir_schemas/r4/complex_types/ratio.py index ae416734..d5e06c54 100644 --- a/spark_fhir_schemas/r4/complex_types/ratio.py +++ b/spark_fhir_schemas/r4/complex_types/ratio.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -57,6 +43,25 @@ def get_schema( denominator: The value of the denominator. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.quantity import QuantitySchema diff --git a/spark_fhir_schemas/r4/complex_types/reference.py b/spark_fhir_schemas/r4/complex_types/reference.py index 1e2c5dc4..75b8fab3 100644 --- a/spark_fhir_schemas/r4/complex_types/reference.py +++ b/spark_fhir_schemas/r4/complex_types/reference.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -81,6 +67,25 @@ def get_schema( reference. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema from spark_fhir_schemas.r4.complex_types.identifier import IdentifierSchema diff --git a/spark_fhir_schemas/r4/complex_types/relatedartifact.py b/spark_fhir_schemas/r4/complex_types/relatedartifact.py index c0118bdd..2412e240 100644 --- a/spark_fhir_schemas/r4/complex_types/relatedartifact.py +++ b/spark_fhir_schemas/r4/complex_types/relatedartifact.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -72,6 +58,25 @@ def get_schema( knowledge resource. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.markdown import markdownSchema from spark_fhir_schemas.r4.simple_types.url import urlSchema diff --git a/spark_fhir_schemas/r4/complex_types/relatedperson_communication.py b/spark_fhir_schemas/r4/complex_types/relatedperson_communication.py index 5cb34486..0b054d7a 100644 --- a/spark_fhir_schemas/r4/complex_types/relatedperson_communication.py +++ b/spark_fhir_schemas/r4/complex_types/relatedperson_communication.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -84,6 +70,25 @@ def get_schema( languages he masters up a certain level). """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/requestgroup_action.py b/spark_fhir_schemas/r4/complex_types/requestgroup_action.py index a0b65c45..8058b92a 100644 --- a/spark_fhir_schemas/r4/complex_types/requestgroup_action.py +++ b/spark_fhir_schemas/r4/complex_types/requestgroup_action.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -131,6 +117,25 @@ def get_schema( action: Sub actions. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/requestgroup_condition.py b/spark_fhir_schemas/r4/complex_types/requestgroup_condition.py index dd466341..83147333 100644 --- a/spark_fhir_schemas/r4/complex_types/requestgroup_condition.py +++ b/spark_fhir_schemas/r4/complex_types/requestgroup_condition.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -72,6 +58,25 @@ def get_schema( condition is satisfied. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema from spark_fhir_schemas.r4.complex_types.expression import ExpressionSchema diff --git a/spark_fhir_schemas/r4/complex_types/requestgroup_relatedaction.py b/spark_fhir_schemas/r4/complex_types/requestgroup_relatedaction.py index 602f63a3..c1f198b5 100644 --- a/spark_fhir_schemas/r4/complex_types/requestgroup_relatedaction.py +++ b/spark_fhir_schemas/r4/complex_types/requestgroup_relatedaction.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -77,6 +63,25 @@ def get_schema( 30-60 minutes before. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema diff --git a/spark_fhir_schemas/r4/complex_types/researchelementdefinition_characteristic.py b/spark_fhir_schemas/r4/complex_types/researchelementdefinition_characteristic.py index a86ddf0b..7e09eeff 100644 --- a/spark_fhir_schemas/r4/complex_types/researchelementdefinition_characteristic.py +++ b/spark_fhir_schemas/r4/complex_types/researchelementdefinition_characteristic.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -130,6 +116,25 @@ def get_schema( participantEffectiveGroupMeasure: Indicates how elements are aggregated within the study effective period. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/researchstudy_arm.py b/spark_fhir_schemas/r4/complex_types/researchstudy_arm.py index d21eda9f..02310ace 100644 --- a/spark_fhir_schemas/r4/complex_types/researchstudy_arm.py +++ b/spark_fhir_schemas/r4/complex_types/researchstudy_arm.py @@ -23,21 +23,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -83,6 +69,25 @@ def get_schema( a subject adhering to this arm. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/researchstudy_objective.py b/spark_fhir_schemas/r4/complex_types/researchstudy_objective.py index 31f7448b..d73cb5f9 100644 --- a/spark_fhir_schemas/r4/complex_types/researchstudy_objective.py +++ b/spark_fhir_schemas/r4/complex_types/researchstudy_objective.py @@ -23,21 +23,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -79,6 +65,25 @@ def get_schema( type: The kind of study objective. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/resourcelist.py b/spark_fhir_schemas/r4/complex_types/resourcelist.py index 4e66ca3a..71edc14b 100644 --- a/spark_fhir_schemas/r4/complex_types/resourcelist.py +++ b/spark_fhir_schemas/r4/complex_types/resourcelist.py @@ -16,24 +16,29 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, ) -> Union[StructType, DataType]: """ """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] return StringType() diff --git a/spark_fhir_schemas/r4/complex_types/riskassessment_prediction.py b/spark_fhir_schemas/r4/complex_types/riskassessment_prediction.py index cdbb6fc8..acc4a3eb 100644 --- a/spark_fhir_schemas/r4/complex_types/riskassessment_prediction.py +++ b/spark_fhir_schemas/r4/complex_types/riskassessment_prediction.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -97,6 +83,25 @@ def get_schema( rationale: Additional information explaining the basis for the prediction. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/riskevidencesynthesis_certainty.py b/spark_fhir_schemas/r4/complex_types/riskevidencesynthesis_certainty.py index 3b6476fe..3c17d1c0 100644 --- a/spark_fhir_schemas/r4/complex_types/riskevidencesynthesis_certainty.py +++ b/spark_fhir_schemas/r4/complex_types/riskevidencesynthesis_certainty.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -75,6 +61,25 @@ def get_schema( certaintySubcomponent: A description of a component of the overall certainty. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/riskevidencesynthesis_certaintysubcomponent.py b/spark_fhir_schemas/r4/complex_types/riskevidencesynthesis_certaintysubcomponent.py index cefaa039..51aa92c5 100644 --- a/spark_fhir_schemas/r4/complex_types/riskevidencesynthesis_certaintysubcomponent.py +++ b/spark_fhir_schemas/r4/complex_types/riskevidencesynthesis_certaintysubcomponent.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -75,6 +61,25 @@ def get_schema( note: A human-readable string to clarify or explain concepts about the resource. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/riskevidencesynthesis_precisionestimate.py b/spark_fhir_schemas/r4/complex_types/riskevidencesynthesis_precisionestimate.py index 4bd4b473..871a2dfa 100644 --- a/spark_fhir_schemas/r4/complex_types/riskevidencesynthesis_precisionestimate.py +++ b/spark_fhir_schemas/r4/complex_types/riskevidencesynthesis_precisionestimate.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -77,6 +63,25 @@ def get_schema( to: Upper bound of confidence interval. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/riskevidencesynthesis_riskestimate.py b/spark_fhir_schemas/r4/complex_types/riskevidencesynthesis_riskestimate.py index 056afcd9..7e8b8cae 100644 --- a/spark_fhir_schemas/r4/complex_types/riskevidencesynthesis_riskestimate.py +++ b/spark_fhir_schemas/r4/complex_types/riskevidencesynthesis_riskestimate.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -83,6 +69,25 @@ def get_schema( precisionEstimate: A description of the precision of the estimate for the effect. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/riskevidencesynthesis_samplesize.py b/spark_fhir_schemas/r4/complex_types/riskevidencesynthesis_samplesize.py index 8c7bfb37..228ba2da 100644 --- a/spark_fhir_schemas/r4/complex_types/riskevidencesynthesis_samplesize.py +++ b/spark_fhir_schemas/r4/complex_types/riskevidencesynthesis_samplesize.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -75,6 +61,25 @@ def get_schema( numberOfParticipants: Number of participants included in this evidence synthesis. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.integer import integerSchema diff --git a/spark_fhir_schemas/r4/complex_types/sampleddata.py b/spark_fhir_schemas/r4/complex_types/sampleddata.py index 18ea5aea..056ef1ee 100644 --- a/spark_fhir_schemas/r4/complex_types/sampleddata.py +++ b/spark_fhir_schemas/r4/complex_types/sampleddata.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -75,6 +61,25 @@ def get_schema( and "U" (above detection limit) can also be used in place of a decimal value. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.quantity import QuantitySchema from spark_fhir_schemas.r4.simple_types.decimal import decimalSchema diff --git a/spark_fhir_schemas/r4/complex_types/searchparameter_component.py b/spark_fhir_schemas/r4/complex_types/searchparameter_component.py index d41005f5..903c5824 100644 --- a/spark_fhir_schemas/r4/complex_types/searchparameter_component.py +++ b/spark_fhir_schemas/r4/complex_types/searchparameter_component.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -72,6 +58,25 @@ def get_schema( the output of the main SearchParameter.expression. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.canonical import canonicalSchema diff --git a/spark_fhir_schemas/r4/complex_types/signature.py b/spark_fhir_schemas/r4/complex_types/signature.py index 9ded20c8..691b682c 100644 --- a/spark_fhir_schemas/r4/complex_types/signature.py +++ b/spark_fhir_schemas/r4/complex_types/signature.py @@ -22,21 +22,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -81,6 +67,25 @@ def get_schema( electronically this element would be empty. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.coding import CodingSchema from spark_fhir_schemas.r4.simple_types.instant import instantSchema diff --git a/spark_fhir_schemas/r4/complex_types/specimen_collection.py b/spark_fhir_schemas/r4/complex_types/specimen_collection.py index 7a7fe59b..572cadb4 100644 --- a/spark_fhir_schemas/r4/complex_types/specimen_collection.py +++ b/spark_fhir_schemas/r4/complex_types/specimen_collection.py @@ -25,21 +25,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -97,6 +83,25 @@ def get_schema( time prior to sample collection. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema from spark_fhir_schemas.r4.complex_types.period import PeriodSchema diff --git a/spark_fhir_schemas/r4/complex_types/specimen_container.py b/spark_fhir_schemas/r4/complex_types/specimen_container.py index b0da85d0..f953e95f 100644 --- a/spark_fhir_schemas/r4/complex_types/specimen_container.py +++ b/spark_fhir_schemas/r4/complex_types/specimen_container.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -85,6 +71,25 @@ def get_schema( Formalin, Citrate, EDTA. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.identifier import IdentifierSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/specimen_processing.py b/spark_fhir_schemas/r4/complex_types/specimen_processing.py index 26bde69f..f6f6ed99 100644 --- a/spark_fhir_schemas/r4/complex_types/specimen_processing.py +++ b/spark_fhir_schemas/r4/complex_types/specimen_processing.py @@ -25,21 +25,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -86,6 +72,25 @@ def get_schema( formalin. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/specimendefinition_additive.py b/spark_fhir_schemas/r4/complex_types/specimendefinition_additive.py index 726f6544..29758ce3 100644 --- a/spark_fhir_schemas/r4/complex_types/specimendefinition_additive.py +++ b/spark_fhir_schemas/r4/complex_types/specimendefinition_additive.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -71,6 +57,25 @@ def get_schema( the specimen. Examples: Formalin, Citrate, EDTA. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/specimendefinition_container.py b/spark_fhir_schemas/r4/complex_types/specimendefinition_container.py index 6a564f54..e84f0cb7 100644 --- a/spark_fhir_schemas/r4/complex_types/specimendefinition_container.py +++ b/spark_fhir_schemas/r4/complex_types/specimendefinition_container.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -85,6 +71,25 @@ def get_schema( specimen. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/specimendefinition_handling.py b/spark_fhir_schemas/r4/complex_types/specimendefinition_handling.py index 73fb4887..3a369727 100644 --- a/spark_fhir_schemas/r4/complex_types/specimendefinition_handling.py +++ b/spark_fhir_schemas/r4/complex_types/specimendefinition_handling.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -77,6 +63,25 @@ def get_schema( specimen. For instance, 'Protect from light exposure'. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/specimendefinition_typetested.py b/spark_fhir_schemas/r4/complex_types/specimendefinition_typetested.py index 76ecfb14..9a86810d 100644 --- a/spark_fhir_schemas/r4/complex_types/specimendefinition_typetested.py +++ b/spark_fhir_schemas/r4/complex_types/specimendefinition_typetested.py @@ -25,21 +25,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -91,6 +77,25 @@ def get_schema( temperature interval, prior the testing process. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/structuredefinition_context.py b/spark_fhir_schemas/r4/complex_types/structuredefinition_context.py index 3ccac236..ee398065 100644 --- a/spark_fhir_schemas/r4/complex_types/structuredefinition_context.py +++ b/spark_fhir_schemas/r4/complex_types/structuredefinition_context.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -74,6 +60,25 @@ def get_schema( expression: An expression that defines where an extension can be used in resources. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema if ( diff --git a/spark_fhir_schemas/r4/complex_types/structuredefinition_differential.py b/spark_fhir_schemas/r4/complex_types/structuredefinition_differential.py index ef370399..547b753f 100644 --- a/spark_fhir_schemas/r4/complex_types/structuredefinition_differential.py +++ b/spark_fhir_schemas/r4/complex_types/structuredefinition_differential.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -71,6 +57,25 @@ def get_schema( element: Captures constraints on each element within the resource. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.elementdefinition import ( ElementDefinitionSchema, diff --git a/spark_fhir_schemas/r4/complex_types/structuredefinition_mapping.py b/spark_fhir_schemas/r4/complex_types/structuredefinition_mapping.py index 0a0ed0c3..00ee3331 100644 --- a/spark_fhir_schemas/r4/complex_types/structuredefinition_mapping.py +++ b/spark_fhir_schemas/r4/complex_types/structuredefinition_mapping.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -80,6 +66,25 @@ def get_schema( limitations, and other important notes for usage. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/complex_types/structuredefinition_snapshot.py b/spark_fhir_schemas/r4/complex_types/structuredefinition_snapshot.py index 6f5f0905..f84d083b 100644 --- a/spark_fhir_schemas/r4/complex_types/structuredefinition_snapshot.py +++ b/spark_fhir_schemas/r4/complex_types/structuredefinition_snapshot.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -71,6 +57,25 @@ def get_schema( element: Captures constraints on each element within the resource. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.elementdefinition import ( ElementDefinitionSchema, diff --git a/spark_fhir_schemas/r4/complex_types/structuremap_dependent.py b/spark_fhir_schemas/r4/complex_types/structuremap_dependent.py index 485f9520..a20a0159 100644 --- a/spark_fhir_schemas/r4/complex_types/structuremap_dependent.py +++ b/spark_fhir_schemas/r4/complex_types/structuremap_dependent.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -71,6 +57,25 @@ def get_schema( variable: Variable to pass to the rule or group. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.id import idSchema diff --git a/spark_fhir_schemas/r4/complex_types/structuremap_group.py b/spark_fhir_schemas/r4/complex_types/structuremap_group.py index 51837457..6de8afb0 100644 --- a/spark_fhir_schemas/r4/complex_types/structuremap_group.py +++ b/spark_fhir_schemas/r4/complex_types/structuremap_group.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -82,6 +68,25 @@ def get_schema( rule: Transform Rule from source to target. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.structuremap_input import ( diff --git a/spark_fhir_schemas/r4/complex_types/structuremap_input.py b/spark_fhir_schemas/r4/complex_types/structuremap_input.py index 0a613fa7..8ad590e8 100644 --- a/spark_fhir_schemas/r4/complex_types/structuremap_input.py +++ b/spark_fhir_schemas/r4/complex_types/structuremap_input.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -75,6 +61,25 @@ def get_schema( documentation: Documentation for this instance of data. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.id import idSchema diff --git a/spark_fhir_schemas/r4/complex_types/structuremap_parameter.py b/spark_fhir_schemas/r4/complex_types/structuremap_parameter.py index e4c14082..684d02af 100644 --- a/spark_fhir_schemas/r4/complex_types/structuremap_parameter.py +++ b/spark_fhir_schemas/r4/complex_types/structuremap_parameter.py @@ -28,21 +28,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -86,6 +72,25 @@ def get_schema( valueDecimal: Parameter value - variable or literal. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema if ( diff --git a/spark_fhir_schemas/r4/complex_types/structuremap_rule.py b/spark_fhir_schemas/r4/complex_types/structuremap_rule.py index 290dbd58..2e85e6b0 100644 --- a/spark_fhir_schemas/r4/complex_types/structuremap_rule.py +++ b/spark_fhir_schemas/r4/complex_types/structuremap_rule.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -79,6 +65,25 @@ def get_schema( documentation: Documentation for this instance of data. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.structuremap_source import ( diff --git a/spark_fhir_schemas/r4/complex_types/structuremap_source.py b/spark_fhir_schemas/r4/complex_types/structuremap_source.py index 21dd7d03..e22a57da 100644 --- a/spark_fhir_schemas/r4/complex_types/structuremap_source.py +++ b/spark_fhir_schemas/r4/complex_types/structuremap_source.py @@ -30,21 +30,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -204,6 +190,25 @@ def get_schema( when content matching the source rule is found. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.simple_types.integer import integerSchema diff --git a/spark_fhir_schemas/r4/complex_types/structuremap_structure.py b/spark_fhir_schemas/r4/complex_types/structuremap_structure.py index d947a029..804a3be0 100644 --- a/spark_fhir_schemas/r4/complex_types/structuremap_structure.py +++ b/spark_fhir_schemas/r4/complex_types/structuremap_structure.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -75,6 +61,25 @@ def get_schema( documentation: Documentation that describes how the structure is used in the mapping. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.canonical import canonicalSchema diff --git a/spark_fhir_schemas/r4/complex_types/structuremap_target.py b/spark_fhir_schemas/r4/complex_types/structuremap_target.py index 85b3db36..99cffb48 100644 --- a/spark_fhir_schemas/r4/complex_types/structuremap_target.py +++ b/spark_fhir_schemas/r4/complex_types/structuremap_target.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -83,6 +69,25 @@ def get_schema( parameter: Parameters to the transform. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.structuremap_parameter import ( diff --git a/spark_fhir_schemas/r4/complex_types/subscription_channel.py b/spark_fhir_schemas/r4/complex_types/subscription_channel.py index 2f6d1de7..c2c30877 100644 --- a/spark_fhir_schemas/r4/complex_types/subscription_channel.py +++ b/spark_fhir_schemas/r4/complex_types/subscription_channel.py @@ -22,21 +22,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -84,6 +70,25 @@ def get_schema( header: Additional headers / information to send as part of the notification. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.url import urlSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema diff --git a/spark_fhir_schemas/r4/complex_types/substance_ingredient.py b/spark_fhir_schemas/r4/complex_types/substance_ingredient.py index 2f2b6e21..5d76cbe4 100644 --- a/spark_fhir_schemas/r4/complex_types/substance_ingredient.py +++ b/spark_fhir_schemas/r4/complex_types/substance_ingredient.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -71,6 +57,25 @@ def get_schema( substanceReference: Another substance that is a component of this substance. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.ratio import RatioSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/substance_instance.py b/spark_fhir_schemas/r4/complex_types/substance_instance.py index 12071c88..e6d413cb 100644 --- a/spark_fhir_schemas/r4/complex_types/substance_instance.py +++ b/spark_fhir_schemas/r4/complex_types/substance_instance.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -73,6 +59,25 @@ def get_schema( quantity: The amount of the substance. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.identifier import IdentifierSchema from spark_fhir_schemas.r4.simple_types.datetime import dateTimeSchema diff --git a/spark_fhir_schemas/r4/complex_types/substanceamount.py b/spark_fhir_schemas/r4/complex_types/substanceamount.py index 78919724..a502c350 100644 --- a/spark_fhir_schemas/r4/complex_types/substanceamount.py +++ b/spark_fhir_schemas/r4/complex_types/substanceamount.py @@ -23,21 +23,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -99,6 +85,25 @@ def get_schema( referenceRange: Reference range of possible or expected values. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.quantity import QuantitySchema from spark_fhir_schemas.r4.complex_types.range import RangeSchema diff --git a/spark_fhir_schemas/r4/complex_types/substanceamount_referencerange.py b/spark_fhir_schemas/r4/complex_types/substanceamount_referencerange.py index f2d11bf4..8d5ed6d1 100644 --- a/spark_fhir_schemas/r4/complex_types/substanceamount_referencerange.py +++ b/spark_fhir_schemas/r4/complex_types/substanceamount_referencerange.py @@ -23,21 +23,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -79,6 +65,25 @@ def get_schema( highLimit: Upper limit possible or expected. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.quantity import QuantitySchema diff --git a/spark_fhir_schemas/r4/complex_types/substancenucleicacid_linkage.py b/spark_fhir_schemas/r4/complex_types/substancenucleicacid_linkage.py index 7771423d..efc2e5e7 100644 --- a/spark_fhir_schemas/r4/complex_types/substancenucleicacid_linkage.py +++ b/spark_fhir_schemas/r4/complex_types/substancenucleicacid_linkage.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -84,6 +70,25 @@ def get_schema( residueSite: Residues shall be captured as described in 5.3.6.8.3. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.identifier import IdentifierSchema diff --git a/spark_fhir_schemas/r4/complex_types/substancenucleicacid_subunit.py b/spark_fhir_schemas/r4/complex_types/substancenucleicacid_subunit.py index 6618878a..56a645b0 100644 --- a/spark_fhir_schemas/r4/complex_types/substancenucleicacid_subunit.py +++ b/spark_fhir_schemas/r4/complex_types/substancenucleicacid_subunit.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -97,6 +83,25 @@ def get_schema( sugar: 5.3.6.8.1 Sugar ID (Mandatory). """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.integer import integerSchema from spark_fhir_schemas.r4.complex_types.attachment import AttachmentSchema diff --git a/spark_fhir_schemas/r4/complex_types/substancenucleicacid_sugar.py b/spark_fhir_schemas/r4/complex_types/substancenucleicacid_sugar.py index aaa8814b..14258b47 100644 --- a/spark_fhir_schemas/r4/complex_types/substancenucleicacid_sugar.py +++ b/spark_fhir_schemas/r4/complex_types/substancenucleicacid_sugar.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -80,6 +66,25 @@ def get_schema( sequences listed above. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.identifier import IdentifierSchema diff --git a/spark_fhir_schemas/r4/complex_types/substancepolymer_degreeofpolymerisation.py b/spark_fhir_schemas/r4/complex_types/substancepolymer_degreeofpolymerisation.py index 52b6579e..4eecd23a 100644 --- a/spark_fhir_schemas/r4/complex_types/substancepolymer_degreeofpolymerisation.py +++ b/spark_fhir_schemas/r4/complex_types/substancepolymer_degreeofpolymerisation.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -69,6 +55,25 @@ def get_schema( amount: Todo. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/substancepolymer_monomerset.py b/spark_fhir_schemas/r4/complex_types/substancepolymer_monomerset.py index 278156b0..a9c43ba7 100644 --- a/spark_fhir_schemas/r4/complex_types/substancepolymer_monomerset.py +++ b/spark_fhir_schemas/r4/complex_types/substancepolymer_monomerset.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -69,6 +55,25 @@ def get_schema( startingMaterial: Todo. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/substancepolymer_repeat.py b/spark_fhir_schemas/r4/complex_types/substancepolymer_repeat.py index 44ba406c..cec1966a 100644 --- a/spark_fhir_schemas/r4/complex_types/substancepolymer_repeat.py +++ b/spark_fhir_schemas/r4/complex_types/substancepolymer_repeat.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -73,6 +59,25 @@ def get_schema( repeatUnit: Todo. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.integer import integerSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/substancepolymer_repeatunit.py b/spark_fhir_schemas/r4/complex_types/substancepolymer_repeatunit.py index a884ade0..057549d8 100644 --- a/spark_fhir_schemas/r4/complex_types/substancepolymer_repeatunit.py +++ b/spark_fhir_schemas/r4/complex_types/substancepolymer_repeatunit.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -75,6 +61,25 @@ def get_schema( structuralRepresentation: Todo. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/substancepolymer_startingmaterial.py b/spark_fhir_schemas/r4/complex_types/substancepolymer_startingmaterial.py index 919f2f0b..afa116c1 100644 --- a/spark_fhir_schemas/r4/complex_types/substancepolymer_startingmaterial.py +++ b/spark_fhir_schemas/r4/complex_types/substancepolymer_startingmaterial.py @@ -25,21 +25,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -80,6 +66,25 @@ def get_schema( amount: Todo. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/substancepolymer_structuralrepresentation.py b/spark_fhir_schemas/r4/complex_types/substancepolymer_structuralrepresentation.py index f9365f0d..e4d426fd 100644 --- a/spark_fhir_schemas/r4/complex_types/substancepolymer_structuralrepresentation.py +++ b/spark_fhir_schemas/r4/complex_types/substancepolymer_structuralrepresentation.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -71,6 +57,25 @@ def get_schema( attachment: Todo. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/substanceprotein_subunit.py b/spark_fhir_schemas/r4/complex_types/substanceprotein_subunit.py index 06c53614..98fcf638 100644 --- a/spark_fhir_schemas/r4/complex_types/substanceprotein_subunit.py +++ b/spark_fhir_schemas/r4/complex_types/substanceprotein_subunit.py @@ -25,21 +25,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -113,6 +99,25 @@ def get_schema( cTerminalModification: The modification at the C-terminal shall be specified. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.integer import integerSchema from spark_fhir_schemas.r4.complex_types.attachment import AttachmentSchema diff --git a/spark_fhir_schemas/r4/complex_types/substancereferenceinformation_classification.py b/spark_fhir_schemas/r4/complex_types/substancereferenceinformation_classification.py index c7079bf1..249eaffd 100644 --- a/spark_fhir_schemas/r4/complex_types/substancereferenceinformation_classification.py +++ b/spark_fhir_schemas/r4/complex_types/substancereferenceinformation_classification.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -73,6 +59,25 @@ def get_schema( source: Todo. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/substancereferenceinformation_gene.py b/spark_fhir_schemas/r4/complex_types/substancereferenceinformation_gene.py index 38d1a5d4..17df23f2 100644 --- a/spark_fhir_schemas/r4/complex_types/substancereferenceinformation_gene.py +++ b/spark_fhir_schemas/r4/complex_types/substancereferenceinformation_gene.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -71,6 +57,25 @@ def get_schema( source: Todo. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/substancereferenceinformation_geneelement.py b/spark_fhir_schemas/r4/complex_types/substancereferenceinformation_geneelement.py index 139408b8..669e3c54 100644 --- a/spark_fhir_schemas/r4/complex_types/substancereferenceinformation_geneelement.py +++ b/spark_fhir_schemas/r4/complex_types/substancereferenceinformation_geneelement.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -71,6 +57,25 @@ def get_schema( source: Todo. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/substancereferenceinformation_target.py b/spark_fhir_schemas/r4/complex_types/substancereferenceinformation_target.py index ba6f87fa..3c9ca4f7 100644 --- a/spark_fhir_schemas/r4/complex_types/substancereferenceinformation_target.py +++ b/spark_fhir_schemas/r4/complex_types/substancereferenceinformation_target.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -85,6 +71,25 @@ def get_schema( source: Todo. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.identifier import IdentifierSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/substancesourcematerial_author.py b/spark_fhir_schemas/r4/complex_types/substancesourcematerial_author.py index 330563f0..b1179aa8 100644 --- a/spark_fhir_schemas/r4/complex_types/substancesourcematerial_author.py +++ b/spark_fhir_schemas/r4/complex_types/substancesourcematerial_author.py @@ -31,21 +31,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -102,6 +88,25 @@ def get_schema( rank). """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/substancesourcematerial_fractiondescription.py b/spark_fhir_schemas/r4/complex_types/substancesourcematerial_fractiondescription.py index a19549ba..9746de9e 100644 --- a/spark_fhir_schemas/r4/complex_types/substancesourcematerial_fractiondescription.py +++ b/spark_fhir_schemas/r4/complex_types/substancesourcematerial_fractiondescription.py @@ -31,21 +31,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -98,6 +84,25 @@ def get_schema( Specified Substance Group 1. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/substancesourcematerial_hybrid.py b/spark_fhir_schemas/r4/complex_types/substancesourcematerial_hybrid.py index 5ec2f4ba..9d3f7e50 100644 --- a/spark_fhir_schemas/r4/complex_types/substancesourcematerial_hybrid.py +++ b/spark_fhir_schemas/r4/complex_types/substancesourcematerial_hybrid.py @@ -31,21 +31,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -108,6 +94,25 @@ def get_schema( hybridType: The hybrid type of an organism shall be specified. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/substancesourcematerial_organism.py b/spark_fhir_schemas/r4/complex_types/substancesourcematerial_organism.py index 8b5e7a3e..42783215 100644 --- a/spark_fhir_schemas/r4/complex_types/substancesourcematerial_organism.py +++ b/spark_fhir_schemas/r4/complex_types/substancesourcematerial_organism.py @@ -31,21 +31,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -113,6 +99,25 @@ def get_schema( organismGeneral: 4.9.13.7.1 Kingdom (Conditional). """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/substancesourcematerial_organismgeneral.py b/spark_fhir_schemas/r4/complex_types/substancesourcematerial_organismgeneral.py index f63a6363..a5144387 100644 --- a/spark_fhir_schemas/r4/complex_types/substancesourcematerial_organismgeneral.py +++ b/spark_fhir_schemas/r4/complex_types/substancesourcematerial_organismgeneral.py @@ -31,21 +31,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -99,6 +85,25 @@ def get_schema( order: The order of an organism shall be specified,. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/substancesourcematerial_partdescription.py b/spark_fhir_schemas/r4/complex_types/substancesourcematerial_partdescription.py index ef5521fc..6f50b004 100644 --- a/spark_fhir_schemas/r4/complex_types/substancesourcematerial_partdescription.py +++ b/spark_fhir_schemas/r4/complex_types/substancesourcematerial_partdescription.py @@ -31,21 +31,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -97,6 +83,25 @@ def get_schema( apply. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/substancespecification_code.py b/spark_fhir_schemas/r4/complex_types/substancespecification_code.py index 6aec1f64..ed74fcbc 100644 --- a/spark_fhir_schemas/r4/complex_types/substancespecification_code.py +++ b/spark_fhir_schemas/r4/complex_types/substancespecification_code.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -78,6 +64,25 @@ def get_schema( source: Supporting literature. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/substancespecification_isotope.py b/spark_fhir_schemas/r4/complex_types/substancespecification_isotope.py index 8ae9d751..fda8ec33 100644 --- a/spark_fhir_schemas/r4/complex_types/substancespecification_isotope.py +++ b/spark_fhir_schemas/r4/complex_types/substancespecification_isotope.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -78,6 +64,25 @@ def get_schema( acids). """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.identifier import IdentifierSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/substancespecification_moiety.py b/spark_fhir_schemas/r4/complex_types/substancespecification_moiety.py index 5ce122a2..600adb57 100644 --- a/spark_fhir_schemas/r4/complex_types/substancespecification_moiety.py +++ b/spark_fhir_schemas/r4/complex_types/substancespecification_moiety.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -83,6 +69,25 @@ def get_schema( amountString: Quantitative value for this moiety. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/substancespecification_molecularweight.py b/spark_fhir_schemas/r4/complex_types/substancespecification_molecularweight.py index 137fcb59..41e3f8e9 100644 --- a/spark_fhir_schemas/r4/complex_types/substancespecification_molecularweight.py +++ b/spark_fhir_schemas/r4/complex_types/substancespecification_molecularweight.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -76,6 +62,25 @@ def get_schema( value for a given element is given, it would be captured in this field. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/substancespecification_name.py b/spark_fhir_schemas/r4/complex_types/substancespecification_name.py index 746d68b0..b7cb8f39 100644 --- a/spark_fhir_schemas/r4/complex_types/substancespecification_name.py +++ b/spark_fhir_schemas/r4/complex_types/substancespecification_name.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -97,6 +83,25 @@ def get_schema( source: Supporting literature. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/substancespecification_official.py b/spark_fhir_schemas/r4/complex_types/substancespecification_official.py index 735e64a5..3e81ab65 100644 --- a/spark_fhir_schemas/r4/complex_types/substancespecification_official.py +++ b/spark_fhir_schemas/r4/complex_types/substancespecification_official.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -73,6 +59,25 @@ def get_schema( date: Date of official name change. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/substancespecification_property.py b/spark_fhir_schemas/r4/complex_types/substancespecification_property.py index b56a42a8..cdbd1a00 100644 --- a/spark_fhir_schemas/r4/complex_types/substancespecification_property.py +++ b/spark_fhir_schemas/r4/complex_types/substancespecification_property.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -84,6 +70,25 @@ def get_schema( amountString: Quantitative value for this property. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/substancespecification_relationship.py b/spark_fhir_schemas/r4/complex_types/substancespecification_relationship.py index 5e1c7203..0f39b2c3 100644 --- a/spark_fhir_schemas/r4/complex_types/substancespecification_relationship.py +++ b/spark_fhir_schemas/r4/complex_types/substancespecification_relationship.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -107,6 +93,25 @@ def get_schema( source: Supporting literature. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/substancespecification_representation.py b/spark_fhir_schemas/r4/complex_types/substancespecification_representation.py index 357e95be..4e230d37 100644 --- a/spark_fhir_schemas/r4/complex_types/substancespecification_representation.py +++ b/spark_fhir_schemas/r4/complex_types/substancespecification_representation.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -74,6 +60,25 @@ def get_schema( attachment: An attached file with the structural representation. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/substancespecification_structure.py b/spark_fhir_schemas/r4/complex_types/substancespecification_structure.py index 5e800812..be49c508 100644 --- a/spark_fhir_schemas/r4/complex_types/substancespecification_structure.py +++ b/spark_fhir_schemas/r4/complex_types/substancespecification_structure.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -86,6 +72,25 @@ def get_schema( representation: Molecular structural representation. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/supplydelivery_supplieditem.py b/spark_fhir_schemas/r4/complex_types/supplydelivery_supplieditem.py index b5815415..56f28061 100644 --- a/spark_fhir_schemas/r4/complex_types/supplydelivery_supplieditem.py +++ b/spark_fhir_schemas/r4/complex_types/supplydelivery_supplieditem.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -75,6 +61,25 @@ def get_schema( identifies the item from a known list. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.quantity import QuantitySchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/supplyrequest_parameter.py b/spark_fhir_schemas/r4/complex_types/supplyrequest_parameter.py index 2fa9631c..ab832b48 100644 --- a/spark_fhir_schemas/r4/complex_types/supplyrequest_parameter.py +++ b/spark_fhir_schemas/r4/complex_types/supplyrequest_parameter.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -84,6 +70,25 @@ def get_schema( valueBoolean: The value of the device detail. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/task_input.py b/spark_fhir_schemas/r4/complex_types/task_input.py index 4f57956c..900b6ea0 100644 --- a/spark_fhir_schemas/r4/complex_types/task_input.py +++ b/spark_fhir_schemas/r4/complex_types/task_input.py @@ -29,21 +29,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -179,6 +165,25 @@ def get_schema( valueMeta: The value of the input parameter as a basic type. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/task_output.py b/spark_fhir_schemas/r4/complex_types/task_output.py index 178ca17f..6de79b07 100644 --- a/spark_fhir_schemas/r4/complex_types/task_output.py +++ b/spark_fhir_schemas/r4/complex_types/task_output.py @@ -29,21 +29,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -178,6 +164,25 @@ def get_schema( valueMeta: The value of the Output parameter as a basic type. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/task_restriction.py b/spark_fhir_schemas/r4/complex_types/task_restriction.py index b8009a3a..0b4acf92 100644 --- a/spark_fhir_schemas/r4/complex_types/task_restriction.py +++ b/spark_fhir_schemas/r4/complex_types/task_restriction.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -72,6 +58,25 @@ def get_schema( whom is fulfillment sought? """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.positiveint import positiveIntSchema from spark_fhir_schemas.r4.complex_types.period import PeriodSchema diff --git a/spark_fhir_schemas/r4/complex_types/terminologycapabilities_closure.py b/spark_fhir_schemas/r4/complex_types/terminologycapabilities_closure.py index 097afc61..bc285a2d 100644 --- a/spark_fhir_schemas/r4/complex_types/terminologycapabilities_closure.py +++ b/spark_fhir_schemas/r4/complex_types/terminologycapabilities_closure.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -78,6 +64,25 @@ def get_schema( translation: If cross-system closure is supported. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema if ( diff --git a/spark_fhir_schemas/r4/complex_types/terminologycapabilities_codesystem.py b/spark_fhir_schemas/r4/complex_types/terminologycapabilities_codesystem.py index d83d942b..2215eeb8 100644 --- a/spark_fhir_schemas/r4/complex_types/terminologycapabilities_codesystem.py +++ b/spark_fhir_schemas/r4/complex_types/terminologycapabilities_codesystem.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -82,6 +68,25 @@ def get_schema( subsumption: True if subsumption is supported for this version of the code system. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.canonical import canonicalSchema from spark_fhir_schemas.r4.complex_types.terminologycapabilities_version import ( diff --git a/spark_fhir_schemas/r4/complex_types/terminologycapabilities_expansion.py b/spark_fhir_schemas/r4/complex_types/terminologycapabilities_expansion.py index 2e92a74e..638f0b46 100644 --- a/spark_fhir_schemas/r4/complex_types/terminologycapabilities_expansion.py +++ b/spark_fhir_schemas/r4/complex_types/terminologycapabilities_expansion.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -86,6 +72,25 @@ def get_schema( textFilter: Documentation about text searching works. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.terminologycapabilities_parameter import ( TerminologyCapabilities_ParameterSchema, diff --git a/spark_fhir_schemas/r4/complex_types/terminologycapabilities_filter.py b/spark_fhir_schemas/r4/complex_types/terminologycapabilities_filter.py index 7c0d8a33..18cb1156 100644 --- a/spark_fhir_schemas/r4/complex_types/terminologycapabilities_filter.py +++ b/spark_fhir_schemas/r4/complex_types/terminologycapabilities_filter.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -73,6 +59,25 @@ def get_schema( op: Operations supported for the property. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema diff --git a/spark_fhir_schemas/r4/complex_types/terminologycapabilities_implementation.py b/spark_fhir_schemas/r4/complex_types/terminologycapabilities_implementation.py index bad14234..4fa565df 100644 --- a/spark_fhir_schemas/r4/complex_types/terminologycapabilities_implementation.py +++ b/spark_fhir_schemas/r4/complex_types/terminologycapabilities_implementation.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -74,6 +60,25 @@ def get_schema( url: An absolute base URL for the implementation. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.url import urlSchema diff --git a/spark_fhir_schemas/r4/complex_types/terminologycapabilities_parameter.py b/spark_fhir_schemas/r4/complex_types/terminologycapabilities_parameter.py index a8f95614..0a856316 100644 --- a/spark_fhir_schemas/r4/complex_types/terminologycapabilities_parameter.py +++ b/spark_fhir_schemas/r4/complex_types/terminologycapabilities_parameter.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -73,6 +59,25 @@ def get_schema( documentation: Description of support for parameter. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema diff --git a/spark_fhir_schemas/r4/complex_types/terminologycapabilities_software.py b/spark_fhir_schemas/r4/complex_types/terminologycapabilities_software.py index 3d9bef7b..5cb24eab 100644 --- a/spark_fhir_schemas/r4/complex_types/terminologycapabilities_software.py +++ b/spark_fhir_schemas/r4/complex_types/terminologycapabilities_software.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -73,6 +59,25 @@ def get_schema( version: The version identifier for the software covered by this statement. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema if ( diff --git a/spark_fhir_schemas/r4/complex_types/terminologycapabilities_translation.py b/spark_fhir_schemas/r4/complex_types/terminologycapabilities_translation.py index e45be156..70bf3ad6 100644 --- a/spark_fhir_schemas/r4/complex_types/terminologycapabilities_translation.py +++ b/spark_fhir_schemas/r4/complex_types/terminologycapabilities_translation.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -78,6 +64,25 @@ def get_schema( needsMap: Whether the client must identify the map. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema if ( diff --git a/spark_fhir_schemas/r4/complex_types/terminologycapabilities_validatecode.py b/spark_fhir_schemas/r4/complex_types/terminologycapabilities_validatecode.py index 78b16859..b271589c 100644 --- a/spark_fhir_schemas/r4/complex_types/terminologycapabilities_validatecode.py +++ b/spark_fhir_schemas/r4/complex_types/terminologycapabilities_validatecode.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -78,6 +64,25 @@ def get_schema( translations: Whether translations are validated. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema if ( diff --git a/spark_fhir_schemas/r4/complex_types/terminologycapabilities_version.py b/spark_fhir_schemas/r4/complex_types/terminologycapabilities_version.py index 6b049b69..c0c0eb21 100644 --- a/spark_fhir_schemas/r4/complex_types/terminologycapabilities_version.py +++ b/spark_fhir_schemas/r4/complex_types/terminologycapabilities_version.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -89,6 +75,25 @@ def get_schema( property: Properties supported for $lookup. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema from spark_fhir_schemas.r4.complex_types.terminologycapabilities_filter import ( diff --git a/spark_fhir_schemas/r4/complex_types/testreport_action.py b/spark_fhir_schemas/r4/complex_types/testreport_action.py index 9793d81d..90991141 100644 --- a/spark_fhir_schemas/r4/complex_types/testreport_action.py +++ b/spark_fhir_schemas/r4/complex_types/testreport_action.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -69,6 +55,25 @@ def get_schema( assert: The results of the assertion performed on the previous operations. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.testreport_operation import ( TestReport_OperationSchema, diff --git a/spark_fhir_schemas/r4/complex_types/testreport_action1.py b/spark_fhir_schemas/r4/complex_types/testreport_action1.py index e6afd9db..142d5c17 100644 --- a/spark_fhir_schemas/r4/complex_types/testreport_action1.py +++ b/spark_fhir_schemas/r4/complex_types/testreport_action1.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -69,6 +55,25 @@ def get_schema( assert: The results of the assertion performed on the previous operations. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.testreport_operation import ( TestReport_OperationSchema, diff --git a/spark_fhir_schemas/r4/complex_types/testreport_action2.py b/spark_fhir_schemas/r4/complex_types/testreport_action2.py index 5d582c22..b438fb68 100644 --- a/spark_fhir_schemas/r4/complex_types/testreport_action2.py +++ b/spark_fhir_schemas/r4/complex_types/testreport_action2.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -67,6 +53,25 @@ def get_schema( operation: An operation would involve a REST request to a server. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.testreport_operation import ( TestReport_OperationSchema, diff --git a/spark_fhir_schemas/r4/complex_types/testreport_assert.py b/spark_fhir_schemas/r4/complex_types/testreport_assert.py index 2b0ab7c8..99ae3304 100644 --- a/spark_fhir_schemas/r4/complex_types/testreport_assert.py +++ b/spark_fhir_schemas/r4/complex_types/testreport_assert.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -71,6 +57,25 @@ def get_schema( detail: A link to further details on the result. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.markdown import markdownSchema diff --git a/spark_fhir_schemas/r4/complex_types/testreport_operation.py b/spark_fhir_schemas/r4/complex_types/testreport_operation.py index c20baa67..ca048537 100644 --- a/spark_fhir_schemas/r4/complex_types/testreport_operation.py +++ b/spark_fhir_schemas/r4/complex_types/testreport_operation.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -71,6 +57,25 @@ def get_schema( detail: A link to further details on the result. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.markdown import markdownSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/complex_types/testreport_participant.py b/spark_fhir_schemas/r4/complex_types/testreport_participant.py index e0700006..7fa7caa6 100644 --- a/spark_fhir_schemas/r4/complex_types/testreport_participant.py +++ b/spark_fhir_schemas/r4/complex_types/testreport_participant.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -71,6 +57,25 @@ def get_schema( display: The display name of the participant. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/complex_types/testreport_setup.py b/spark_fhir_schemas/r4/complex_types/testreport_setup.py index 36116bc3..7cb1f48b 100644 --- a/spark_fhir_schemas/r4/complex_types/testreport_setup.py +++ b/spark_fhir_schemas/r4/complex_types/testreport_setup.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -67,6 +53,25 @@ def get_schema( action: Action would contain either an operation or an assertion. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.testreport_action import ( TestReport_ActionSchema, diff --git a/spark_fhir_schemas/r4/complex_types/testreport_teardown.py b/spark_fhir_schemas/r4/complex_types/testreport_teardown.py index 303c8945..9f4e9606 100644 --- a/spark_fhir_schemas/r4/complex_types/testreport_teardown.py +++ b/spark_fhir_schemas/r4/complex_types/testreport_teardown.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -67,6 +53,25 @@ def get_schema( action: The teardown action will only contain an operation. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.testreport_action2 import ( TestReport_Action2Schema, diff --git a/spark_fhir_schemas/r4/complex_types/testreport_test.py b/spark_fhir_schemas/r4/complex_types/testreport_test.py index c7a55470..4225ef12 100644 --- a/spark_fhir_schemas/r4/complex_types/testreport_test.py +++ b/spark_fhir_schemas/r4/complex_types/testreport_test.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -72,6 +58,25 @@ def get_schema( action: Action would contain either an operation or an assertion. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.testreport_action1 import ( TestReport_Action1Schema, diff --git a/spark_fhir_schemas/r4/complex_types/testscript_action.py b/spark_fhir_schemas/r4/complex_types/testscript_action.py index 56f8953b..f51cb876 100644 --- a/spark_fhir_schemas/r4/complex_types/testscript_action.py +++ b/spark_fhir_schemas/r4/complex_types/testscript_action.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -72,6 +58,25 @@ def get_schema( test behaves appropriately. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.testscript_operation import ( TestScript_OperationSchema, diff --git a/spark_fhir_schemas/r4/complex_types/testscript_action1.py b/spark_fhir_schemas/r4/complex_types/testscript_action1.py index 64586961..1ed5cd0d 100644 --- a/spark_fhir_schemas/r4/complex_types/testscript_action1.py +++ b/spark_fhir_schemas/r4/complex_types/testscript_action1.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -72,6 +58,25 @@ def get_schema( test behaves appropriately. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.testscript_operation import ( TestScript_OperationSchema, diff --git a/spark_fhir_schemas/r4/complex_types/testscript_action2.py b/spark_fhir_schemas/r4/complex_types/testscript_action2.py index c9524d2f..b4c708a4 100644 --- a/spark_fhir_schemas/r4/complex_types/testscript_action2.py +++ b/spark_fhir_schemas/r4/complex_types/testscript_action2.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -69,6 +55,25 @@ def get_schema( operation: An operation would involve a REST request to a server. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.testscript_operation import ( TestScript_OperationSchema, diff --git a/spark_fhir_schemas/r4/complex_types/testscript_assert.py b/spark_fhir_schemas/r4/complex_types/testscript_assert.py index 6aca6bb3..4dfc7285 100644 --- a/spark_fhir_schemas/r4/complex_types/testscript_assert.py +++ b/spark_fhir_schemas/r4/complex_types/testscript_assert.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -133,6 +119,25 @@ def get_schema( this assert. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema from spark_fhir_schemas.r4.simple_types.id import idSchema diff --git a/spark_fhir_schemas/r4/complex_types/testscript_capability.py b/spark_fhir_schemas/r4/complex_types/testscript_capability.py index feee30e1..fb3c3d92 100644 --- a/spark_fhir_schemas/r4/complex_types/testscript_capability.py +++ b/spark_fhir_schemas/r4/complex_types/testscript_capability.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -94,6 +80,25 @@ def get_schema( statement, then all tests in this script are skipped. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.integer import integerSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/complex_types/testscript_destination.py b/spark_fhir_schemas/r4/complex_types/testscript_destination.py index 48db90eb..e6dc1ee9 100644 --- a/spark_fhir_schemas/r4/complex_types/testscript_destination.py +++ b/spark_fhir_schemas/r4/complex_types/testscript_destination.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -72,6 +58,25 @@ def get_schema( profile: The type of destination profile the test system supports. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.integer import integerSchema from spark_fhir_schemas.r4.complex_types.coding import CodingSchema diff --git a/spark_fhir_schemas/r4/complex_types/testscript_fixture.py b/spark_fhir_schemas/r4/complex_types/testscript_fixture.py index bbc9c9fc..5105d003 100644 --- a/spark_fhir_schemas/r4/complex_types/testscript_fixture.py +++ b/spark_fhir_schemas/r4/complex_types/testscript_fixture.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -87,6 +73,25 @@ def get_schema( operations). """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema diff --git a/spark_fhir_schemas/r4/complex_types/testscript_link.py b/spark_fhir_schemas/r4/complex_types/testscript_link.py index e4fc6775..f539a022 100644 --- a/spark_fhir_schemas/r4/complex_types/testscript_link.py +++ b/spark_fhir_schemas/r4/complex_types/testscript_link.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -71,6 +57,25 @@ def get_schema( description: Short description of the link. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/complex_types/testscript_metadata.py b/spark_fhir_schemas/r4/complex_types/testscript_metadata.py index ea387534..daf8da89 100644 --- a/spark_fhir_schemas/r4/complex_types/testscript_metadata.py +++ b/spark_fhir_schemas/r4/complex_types/testscript_metadata.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -72,6 +58,25 @@ def get_schema( server being tested. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.testscript_link import ( TestScript_LinkSchema, diff --git a/spark_fhir_schemas/r4/complex_types/testscript_operation.py b/spark_fhir_schemas/r4/complex_types/testscript_operation.py index b7dd9970..8947e0c2 100644 --- a/spark_fhir_schemas/r4/complex_types/testscript_operation.py +++ b/spark_fhir_schemas/r4/complex_types/testscript_operation.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -116,6 +102,25 @@ def get_schema( url: Complete request URL. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.coding import CodingSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema diff --git a/spark_fhir_schemas/r4/complex_types/testscript_origin.py b/spark_fhir_schemas/r4/complex_types/testscript_origin.py index c641ce6d..e704a442 100644 --- a/spark_fhir_schemas/r4/complex_types/testscript_origin.py +++ b/spark_fhir_schemas/r4/complex_types/testscript_origin.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -72,6 +58,25 @@ def get_schema( profile: The type of origin profile the test system supports. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.integer import integerSchema from spark_fhir_schemas.r4.complex_types.coding import CodingSchema diff --git a/spark_fhir_schemas/r4/complex_types/testscript_requestheader.py b/spark_fhir_schemas/r4/complex_types/testscript_requestheader.py index 06f0d7a1..0fb4486f 100644 --- a/spark_fhir_schemas/r4/complex_types/testscript_requestheader.py +++ b/spark_fhir_schemas/r4/complex_types/testscript_requestheader.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -71,6 +57,25 @@ def get_schema( value: The value of the header e.g. "application/fhir+xml". """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema if ( diff --git a/spark_fhir_schemas/r4/complex_types/testscript_setup.py b/spark_fhir_schemas/r4/complex_types/testscript_setup.py index 951b98ab..637931f2 100644 --- a/spark_fhir_schemas/r4/complex_types/testscript_setup.py +++ b/spark_fhir_schemas/r4/complex_types/testscript_setup.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -69,6 +55,25 @@ def get_schema( action: Action would contain either an operation or an assertion. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.testscript_action import ( TestScript_ActionSchema, diff --git a/spark_fhir_schemas/r4/complex_types/testscript_teardown.py b/spark_fhir_schemas/r4/complex_types/testscript_teardown.py index 69465c8d..67dbaad8 100644 --- a/spark_fhir_schemas/r4/complex_types/testscript_teardown.py +++ b/spark_fhir_schemas/r4/complex_types/testscript_teardown.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -69,6 +55,25 @@ def get_schema( action: The teardown action will only contain an operation. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.testscript_action2 import ( TestScript_Action2Schema, diff --git a/spark_fhir_schemas/r4/complex_types/testscript_test.py b/spark_fhir_schemas/r4/complex_types/testscript_test.py index 9b3234b2..1dbe45e3 100644 --- a/spark_fhir_schemas/r4/complex_types/testscript_test.py +++ b/spark_fhir_schemas/r4/complex_types/testscript_test.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -74,6 +60,25 @@ def get_schema( action: Action would contain either an operation or an assertion. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.testscript_action1 import ( TestScript_Action1Schema, diff --git a/spark_fhir_schemas/r4/complex_types/testscript_variable.py b/spark_fhir_schemas/r4/complex_types/testscript_variable.py index 17a2123d..3c861f90 100644 --- a/spark_fhir_schemas/r4/complex_types/testscript_variable.py +++ b/spark_fhir_schemas/r4/complex_types/testscript_variable.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -89,6 +75,25 @@ def get_schema( within this variable. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.id import idSchema diff --git a/spark_fhir_schemas/r4/complex_types/timing.py b/spark_fhir_schemas/r4/complex_types/timing.py index 89936c82..e556d4b5 100644 --- a/spark_fhir_schemas/r4/complex_types/timing.py +++ b/spark_fhir_schemas/r4/complex_types/timing.py @@ -22,21 +22,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -84,6 +70,25 @@ def get_schema( .repeat.bounds still applies over the code (and is not contained in the code). """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.datetime import dateTimeSchema from spark_fhir_schemas.r4.complex_types.timing_repeat import ( diff --git a/spark_fhir_schemas/r4/complex_types/timing_repeat.py b/spark_fhir_schemas/r4/complex_types/timing_repeat.py index ff14ea6f..687493d8 100644 --- a/spark_fhir_schemas/r4/complex_types/timing_repeat.py +++ b/spark_fhir_schemas/r4/complex_types/timing_repeat.py @@ -22,21 +22,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -126,6 +112,25 @@ def get_schema( to be after the event. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.duration import DurationSchema from spark_fhir_schemas.r4.complex_types.range import RangeSchema diff --git a/spark_fhir_schemas/r4/complex_types/triggerdefinition.py b/spark_fhir_schemas/r4/complex_types/triggerdefinition.py index 9c45e08b..a7997dd1 100644 --- a/spark_fhir_schemas/r4/complex_types/triggerdefinition.py +++ b/spark_fhir_schemas/r4/complex_types/triggerdefinition.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -81,6 +67,25 @@ def get_schema( of the trigger definition and returns whether or not the trigger fires. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.timing import TimingSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema diff --git a/spark_fhir_schemas/r4/complex_types/usagecontext.py b/spark_fhir_schemas/r4/complex_types/usagecontext.py index 92b1750e..95335e28 100644 --- a/spark_fhir_schemas/r4/complex_types/usagecontext.py +++ b/spark_fhir_schemas/r4/complex_types/usagecontext.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -72,6 +58,25 @@ def get_schema( interpretation of the value is defined by the code. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.coding import CodingSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/valueset_compose.py b/spark_fhir_schemas/r4/complex_types/valueset_compose.py index bb7db176..8c066253 100644 --- a/spark_fhir_schemas/r4/complex_types/valueset_compose.py +++ b/spark_fhir_schemas/r4/complex_types/valueset_compose.py @@ -29,21 +29,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -95,6 +81,25 @@ def get_schema( and/or other value sets. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.valueset_include import ( ValueSet_IncludeSchema, diff --git a/spark_fhir_schemas/r4/complex_types/valueset_concept.py b/spark_fhir_schemas/r4/complex_types/valueset_concept.py index 3c9efd2c..d24ab381 100644 --- a/spark_fhir_schemas/r4/complex_types/valueset_concept.py +++ b/spark_fhir_schemas/r4/complex_types/valueset_concept.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -81,6 +67,25 @@ def get_schema( etc. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema from spark_fhir_schemas.r4.complex_types.valueset_designation import ( diff --git a/spark_fhir_schemas/r4/complex_types/valueset_contains.py b/spark_fhir_schemas/r4/complex_types/valueset_contains.py index 936e8aad..cfd94bfc 100644 --- a/spark_fhir_schemas/r4/complex_types/valueset_contains.py +++ b/spark_fhir_schemas/r4/complex_types/valueset_contains.py @@ -28,21 +28,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -108,6 +94,25 @@ def get_schema( contains: Other codes and entries contained under this entry in the hierarchy. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema diff --git a/spark_fhir_schemas/r4/complex_types/valueset_designation.py b/spark_fhir_schemas/r4/complex_types/valueset_designation.py index efeca70c..2b9f49ed 100644 --- a/spark_fhir_schemas/r4/complex_types/valueset_designation.py +++ b/spark_fhir_schemas/r4/complex_types/valueset_designation.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -77,6 +63,25 @@ def get_schema( value: The text value for this designation. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema from spark_fhir_schemas.r4.complex_types.coding import CodingSchema diff --git a/spark_fhir_schemas/r4/complex_types/valueset_expansion.py b/spark_fhir_schemas/r4/complex_types/valueset_expansion.py index 704a831e..6c09175a 100644 --- a/spark_fhir_schemas/r4/complex_types/valueset_expansion.py +++ b/spark_fhir_schemas/r4/complex_types/valueset_expansion.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -94,6 +80,25 @@ def get_schema( contains: The codes that are contained in the value set expansion. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema from spark_fhir_schemas.r4.simple_types.datetime import dateTimeSchema diff --git a/spark_fhir_schemas/r4/complex_types/valueset_filter.py b/spark_fhir_schemas/r4/complex_types/valueset_filter.py index c5b18edd..81791ccf 100644 --- a/spark_fhir_schemas/r4/complex_types/valueset_filter.py +++ b/spark_fhir_schemas/r4/complex_types/valueset_filter.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -82,6 +68,25 @@ def get_schema( operation is 'exists'. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema diff --git a/spark_fhir_schemas/r4/complex_types/valueset_include.py b/spark_fhir_schemas/r4/complex_types/valueset_include.py index 949fc7f7..1edfc2f8 100644 --- a/spark_fhir_schemas/r4/complex_types/valueset_include.py +++ b/spark_fhir_schemas/r4/complex_types/valueset_include.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -88,6 +74,25 @@ def get_schema( all of the referenced value sets. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema from spark_fhir_schemas.r4.complex_types.valueset_concept import ( diff --git a/spark_fhir_schemas/r4/complex_types/valueset_parameter.py b/spark_fhir_schemas/r4/complex_types/valueset_parameter.py index cb02df07..0ba6a745 100644 --- a/spark_fhir_schemas/r4/complex_types/valueset_parameter.py +++ b/spark_fhir_schemas/r4/complex_types/valueset_parameter.py @@ -31,21 +31,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -99,6 +85,25 @@ def get_schema( valueDateTime: The value of the parameter. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema if ( diff --git a/spark_fhir_schemas/r4/complex_types/verificationresult_attestation.py b/spark_fhir_schemas/r4/complex_types/verificationresult_attestation.py index 7a1cd792..7a0aaf96 100644 --- a/spark_fhir_schemas/r4/complex_types/verificationresult_attestation.py +++ b/spark_fhir_schemas/r4/complex_types/verificationresult_attestation.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -94,6 +80,25 @@ def get_schema( information. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/verificationresult_primarysource.py b/spark_fhir_schemas/r4/complex_types/verificationresult_primarysource.py index b3301dca..835df8f9 100644 --- a/spark_fhir_schemas/r4/complex_types/verificationresult_primarysource.py +++ b/spark_fhir_schemas/r4/complex_types/verificationresult_primarysource.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -85,6 +71,25 @@ def get_schema( changes; any changes; as defined by source). """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( diff --git a/spark_fhir_schemas/r4/complex_types/verificationresult_validator.py b/spark_fhir_schemas/r4/complex_types/verificationresult_validator.py index d0dfd00e..7d6df849 100644 --- a/spark_fhir_schemas/r4/complex_types/verificationresult_validator.py +++ b/spark_fhir_schemas/r4/complex_types/verificationresult_validator.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -73,6 +59,25 @@ def get_schema( attestationSignature: Signed assertion by the validator that they have validated the information. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema from spark_fhir_schemas.r4.complex_types.signature import SignatureSchema diff --git a/spark_fhir_schemas/r4/complex_types/visionprescription_lensspecification.py b/spark_fhir_schemas/r4/complex_types/visionprescription_lensspecification.py index 8ab79b25..e07917f2 100644 --- a/spark_fhir_schemas/r4/complex_types/visionprescription_lensspecification.py +++ b/spark_fhir_schemas/r4/complex_types/visionprescription_lensspecification.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -96,6 +82,25 @@ def get_schema( note: Notes for special requirements such as coatings and lens materials. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, diff --git a/spark_fhir_schemas/r4/complex_types/visionprescription_prism.py b/spark_fhir_schemas/r4/complex_types/visionprescription_prism.py index 9b9dfbec..0cfa4179 100644 --- a/spark_fhir_schemas/r4/complex_types/visionprescription_prism.py +++ b/spark_fhir_schemas/r4/complex_types/visionprescription_prism.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -71,6 +57,25 @@ def get_schema( base: The relative base, or reference lens edge, for the prism. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.simple_types.decimal import decimalSchema diff --git a/spark_fhir_schemas/r4/resources/account.py b/spark_fhir_schemas/r4/resources/account.py index cb28cda6..b122a08a 100644 --- a/spark_fhir_schemas/r4/resources/account.py +++ b/spark_fhir_schemas/r4/resources/account.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -120,6 +106,25 @@ def get_schema( partOf: Reference to a parent Account. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/activitydefinition.py b/spark_fhir_schemas/r4/resources/activitydefinition.py index 75df39ee..89162740 100644 --- a/spark_fhir_schemas/r4/resources/activitydefinition.py +++ b/spark_fhir_schemas/r4/resources/activitydefinition.py @@ -29,21 +29,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -283,6 +269,25 @@ def get_schema( resource that would contain the result. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/adverseevent.py b/spark_fhir_schemas/r4/resources/adverseevent.py index bee50aa8..db6a9209 100644 --- a/spark_fhir_schemas/r4/resources/adverseevent.py +++ b/spark_fhir_schemas/r4/resources/adverseevent.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -150,6 +136,25 @@ def get_schema( study: AdverseEvent.study. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/allergyintolerance.py b/spark_fhir_schemas/r4/resources/allergyintolerance.py index 539c37ec..10f4af2e 100644 --- a/spark_fhir_schemas/r4/resources/allergyintolerance.py +++ b/spark_fhir_schemas/r4/resources/allergyintolerance.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -166,6 +152,25 @@ def get_schema( substance. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/appointment.py b/spark_fhir_schemas/r4/resources/appointment.py index b86ddae3..71421c64 100644 --- a/spark_fhir_schemas/r4/resources/appointment.py +++ b/spark_fhir_schemas/r4/resources/appointment.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -176,6 +162,25 @@ def get_schema( calculated by the scheduling system. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/appointmentresponse.py b/spark_fhir_schemas/r4/resources/appointmentresponse.py index 54e99bbc..898b6ab2 100644 --- a/spark_fhir_schemas/r4/resources/appointmentresponse.py +++ b/spark_fhir_schemas/r4/resources/appointmentresponse.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -116,6 +102,25 @@ def get_schema( comment: Additional comments about the appointment. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/auditevent.py b/spark_fhir_schemas/r4/resources/auditevent.py index 6c75ab7b..9e3e2638 100644 --- a/spark_fhir_schemas/r4/resources/auditevent.py +++ b/spark_fhir_schemas/r4/resources/auditevent.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -118,6 +104,25 @@ def get_schema( entity: Specific instances of data or objects that have been accessed. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/basic.py b/spark_fhir_schemas/r4/resources/basic.py index b49ae821..b7ea16b8 100644 --- a/spark_fhir_schemas/r4/resources/basic.py +++ b/spark_fhir_schemas/r4/resources/basic.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -113,6 +99,25 @@ def get_schema( author: Indicates who was responsible for creating the resource instance. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/binary.py b/spark_fhir_schemas/r4/resources/binary.py index 931b133e..96195903 100644 --- a/spark_fhir_schemas/r4/resources/binary.py +++ b/spark_fhir_schemas/r4/resources/binary.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -77,6 +63,25 @@ def get_schema( data: The actual content, base64 encoded. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/biologicallyderivedproduct.py b/spark_fhir_schemas/r4/resources/biologicallyderivedproduct.py index 81c04bac..66cdf7cd 100644 --- a/spark_fhir_schemas/r4/resources/biologicallyderivedproduct.py +++ b/spark_fhir_schemas/r4/resources/biologicallyderivedproduct.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -123,6 +109,25 @@ def get_schema( storage: Product storage. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/bodystructure.py b/spark_fhir_schemas/r4/resources/bodystructure.py index 8dd9468f..b85e1677 100644 --- a/spark_fhir_schemas/r4/resources/bodystructure.py +++ b/spark_fhir_schemas/r4/resources/bodystructure.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -117,6 +103,25 @@ def get_schema( patient: The person to which the body site belongs. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/bundle.py b/spark_fhir_schemas/r4/resources/bundle.py index d3787510..f89432e8 100644 --- a/spark_fhir_schemas/r4/resources/bundle.py +++ b/spark_fhir_schemas/r4/resources/bundle.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -78,6 +64,25 @@ def get_schema( signature: Digital Signature - base64 encoded. XML-DSig or a JWT. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/capabilitystatement.py b/spark_fhir_schemas/r4/resources/capabilitystatement.py index 321765b3..229d86c5 100644 --- a/spark_fhir_schemas/r4/resources/capabilitystatement.py +++ b/spark_fhir_schemas/r4/resources/capabilitystatement.py @@ -28,21 +28,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -204,6 +190,25 @@ def get_schema( document: A document definition. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/careplan.py b/spark_fhir_schemas/r4/resources/careplan.py index eb1d9e3d..292c81b9 100644 --- a/spark_fhir_schemas/r4/resources/careplan.py +++ b/spark_fhir_schemas/r4/resources/careplan.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -158,6 +144,25 @@ def get_schema( note: General notes about the care plan not covered elsewhere. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/careteam.py b/spark_fhir_schemas/r4/resources/careteam.py index 712eceab..a700d290 100644 --- a/spark_fhir_schemas/r4/resources/careteam.py +++ b/spark_fhir_schemas/r4/resources/careteam.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -124,6 +110,25 @@ def get_schema( note: Comments made about the CareTeam. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/catalogentry.py b/spark_fhir_schemas/r4/resources/catalogentry.py index cc9e08f1..22682ead 100644 --- a/spark_fhir_schemas/r4/resources/catalogentry.py +++ b/spark_fhir_schemas/r4/resources/catalogentry.py @@ -25,21 +25,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -126,6 +112,25 @@ def get_schema( medication. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/chargeitem.py b/spark_fhir_schemas/r4/resources/chargeitem.py index ad8561e6..c44c04b2 100644 --- a/spark_fhir_schemas/r4/resources/chargeitem.py +++ b/spark_fhir_schemas/r4/resources/chargeitem.py @@ -29,21 +29,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -168,6 +154,25 @@ def get_schema( supportingInformation: Further information supporting this charge. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/chargeitemdefinition.py b/spark_fhir_schemas/r4/resources/chargeitemdefinition.py index 7aef5d4a..589fa29a 100644 --- a/spark_fhir_schemas/r4/resources/chargeitemdefinition.py +++ b/spark_fhir_schemas/r4/resources/chargeitemdefinition.py @@ -29,21 +29,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -192,6 +178,25 @@ def get_schema( apply. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/claim.py b/spark_fhir_schemas/r4/resources/claim.py index f3294349..cc0d2ba4 100644 --- a/spark_fhir_schemas/r4/resources/claim.py +++ b/spark_fhir_schemas/r4/resources/claim.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -166,6 +152,25 @@ def get_schema( total: The total value of the all the items in the claim. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/claimresponse.py b/spark_fhir_schemas/r4/resources/claimresponse.py index 926c1a81..785953a3 100644 --- a/spark_fhir_schemas/r4/resources/claimresponse.py +++ b/spark_fhir_schemas/r4/resources/claimresponse.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -161,6 +147,25 @@ def get_schema( error: Errors encountered during the processing of the adjudication. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/clinicalimpression.py b/spark_fhir_schemas/r4/resources/clinicalimpression.py index 53d2729c..bd5966a4 100644 --- a/spark_fhir_schemas/r4/resources/clinicalimpression.py +++ b/spark_fhir_schemas/r4/resources/clinicalimpression.py @@ -31,21 +31,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -165,6 +151,25 @@ def get_schema( appear. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/codesystem.py b/spark_fhir_schemas/r4/resources/codesystem.py index 92eb6a57..ac0555c5 100644 --- a/spark_fhir_schemas/r4/resources/codesystem.py +++ b/spark_fhir_schemas/r4/resources/codesystem.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -194,6 +180,25 @@ def get_schema( meanings of the hierarchical relationships are. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/communication.py b/spark_fhir_schemas/r4/resources/communication.py index 4a8fc52e..f03f16d4 100644 --- a/spark_fhir_schemas/r4/resources/communication.py +++ b/spark_fhir_schemas/r4/resources/communication.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -155,6 +141,25 @@ def get_schema( or other interested parties. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/communicationrequest.py b/spark_fhir_schemas/r4/resources/communicationrequest.py index 123efb27..50557e42 100644 --- a/spark_fhir_schemas/r4/resources/communicationrequest.py +++ b/spark_fhir_schemas/r4/resources/communicationrequest.py @@ -28,21 +28,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -162,6 +148,25 @@ def get_schema( or other participants. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/compartmentdefinition.py b/spark_fhir_schemas/r4/resources/compartmentdefinition.py index 80981418..384d4a4c 100644 --- a/spark_fhir_schemas/r4/resources/compartmentdefinition.py +++ b/spark_fhir_schemas/r4/resources/compartmentdefinition.py @@ -25,21 +25,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -151,6 +137,25 @@ def get_schema( resource: Information about how a resource is related to the compartment. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/composition.py b/spark_fhir_schemas/r4/resources/composition.py index f358cce3..57ab8592 100644 --- a/spark_fhir_schemas/r4/resources/composition.py +++ b/spark_fhir_schemas/r4/resources/composition.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -150,6 +136,25 @@ def get_schema( section: The root of the sections that make up the composition. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/conceptmap.py b/spark_fhir_schemas/r4/resources/conceptmap.py index a4b2d95f..dba26476 100644 --- a/spark_fhir_schemas/r4/resources/conceptmap.py +++ b/spark_fhir_schemas/r4/resources/conceptmap.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -175,6 +161,25 @@ def get_schema( group: A group of mappings that all have the same source and target system. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/condition.py b/spark_fhir_schemas/r4/resources/condition.py index e8771351..9d4c782e 100644 --- a/spark_fhir_schemas/r4/resources/condition.py +++ b/spark_fhir_schemas/r4/resources/condition.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -176,6 +162,25 @@ def get_schema( entry for description of the Condition, its diagnosis and prognosis. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/consent.py b/spark_fhir_schemas/r4/resources/consent.py index c2aacbed..528edd29 100644 --- a/spark_fhir_schemas/r4/resources/consent.py +++ b/spark_fhir_schemas/r4/resources/consent.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -137,6 +123,25 @@ def get_schema( addition or removal of access permissions. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/contract.py b/spark_fhir_schemas/r4/resources/contract.py index 708644f8..4487ac99 100644 --- a/spark_fhir_schemas/r4/resources/contract.py +++ b/spark_fhir_schemas/r4/resources/contract.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -219,6 +205,25 @@ def get_schema( Contract. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/coverage.py b/spark_fhir_schemas/r4/resources/coverage.py index 9c0d4723..7a17fbe8 100644 --- a/spark_fhir_schemas/r4/resources/coverage.py +++ b/spark_fhir_schemas/r4/resources/coverage.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -146,6 +132,25 @@ def get_schema( contract: The policy(s) which constitute this insurance coverage. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/coverageeligibilityrequest.py b/spark_fhir_schemas/r4/resources/coverageeligibilityrequest.py index f5377851..24736d9f 100644 --- a/spark_fhir_schemas/r4/resources/coverageeligibilityrequest.py +++ b/spark_fhir_schemas/r4/resources/coverageeligibilityrequest.py @@ -29,21 +29,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -145,6 +131,25 @@ def get_schema( authorization prior to service delivery may be required by the payor. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/coverageeligibilityresponse.py b/spark_fhir_schemas/r4/resources/coverageeligibilityresponse.py index 31dd1d68..be0be5ff 100644 --- a/spark_fhir_schemas/r4/resources/coverageeligibilityresponse.py +++ b/spark_fhir_schemas/r4/resources/coverageeligibilityresponse.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -140,6 +126,25 @@ def get_schema( error: Errors encountered during the processing of the request. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/detectedissue.py b/spark_fhir_schemas/r4/resources/detectedissue.py index 67f8bc0c..f25eea4a 100644 --- a/spark_fhir_schemas/r4/resources/detectedissue.py +++ b/spark_fhir_schemas/r4/resources/detectedissue.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -134,6 +120,25 @@ def get_schema( reduce/eliminate the need for any action. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/device.py b/spark_fhir_schemas/r4/resources/device.py index c27773ff..564545c8 100644 --- a/spark_fhir_schemas/r4/resources/device.py +++ b/spark_fhir_schemas/r4/resources/device.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -161,6 +147,25 @@ def get_schema( parent: The parent device. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/devicedefinition.py b/spark_fhir_schemas/r4/resources/devicedefinition.py index 02e4d812..0a1f6e27 100644 --- a/spark_fhir_schemas/r4/resources/devicedefinition.py +++ b/spark_fhir_schemas/r4/resources/devicedefinition.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -149,6 +135,25 @@ def get_schema( material: A substance used to create the material(s) of which the device is made. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/devicemetric.py b/spark_fhir_schemas/r4/resources/devicemetric.py index 1aec44ff..65a67cff 100644 --- a/spark_fhir_schemas/r4/resources/devicemetric.py +++ b/spark_fhir_schemas/r4/resources/devicemetric.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -135,6 +121,25 @@ def get_schema( performed. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/devicerequest.py b/spark_fhir_schemas/r4/resources/devicerequest.py index 35eee621..7302ded8 100644 --- a/spark_fhir_schemas/r4/resources/devicerequest.py +++ b/spark_fhir_schemas/r4/resources/devicerequest.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -172,6 +158,25 @@ def get_schema( relevantHistory: Key events in the history of the request. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/deviceusestatement.py b/spark_fhir_schemas/r4/resources/deviceusestatement.py index 9f0c006a..c33dd100 100644 --- a/spark_fhir_schemas/r4/resources/deviceusestatement.py +++ b/spark_fhir_schemas/r4/resources/deviceusestatement.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -136,6 +122,25 @@ def get_schema( statement. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/diagnosticreport.py b/spark_fhir_schemas/r4/resources/diagnosticreport.py index aa371680..d0060408 100644 --- a/spark_fhir_schemas/r4/resources/diagnosticreport.py +++ b/spark_fhir_schemas/r4/resources/diagnosticreport.py @@ -29,21 +29,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -164,6 +150,25 @@ def get_schema( equivalent. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/documentmanifest.py b/spark_fhir_schemas/r4/resources/documentmanifest.py index 6489eea7..8d27a8fd 100644 --- a/spark_fhir_schemas/r4/resources/documentmanifest.py +++ b/spark_fhir_schemas/r4/resources/documentmanifest.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -128,6 +114,25 @@ def get_schema( related: Related identifiers or resources associated with the DocumentManifest. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/documentreference.py b/spark_fhir_schemas/r4/resources/documentreference.py index 55c2076e..d3232368 100644 --- a/spark_fhir_schemas/r4/resources/documentreference.py +++ b/spark_fhir_schemas/r4/resources/documentreference.py @@ -22,21 +22,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -146,6 +132,25 @@ def get_schema( context: The clinical context in which the document was prepared. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/effectevidencesynthesis.py b/spark_fhir_schemas/r4/resources/effectevidencesynthesis.py index cfcc18e9..1c30899b 100644 --- a/spark_fhir_schemas/r4/resources/effectevidencesynthesis.py +++ b/spark_fhir_schemas/r4/resources/effectevidencesynthesis.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -210,6 +196,25 @@ def get_schema( certainty: A description of the certainty of the effect estimate. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/encounter.py b/spark_fhir_schemas/r4/resources/encounter.py index 100c0a36..e19c16b7 100644 --- a/spark_fhir_schemas/r4/resources/encounter.py +++ b/spark_fhir_schemas/r4/resources/encounter.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -164,6 +150,25 @@ def get_schema( time). """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/endpoint.py b/spark_fhir_schemas/r4/resources/endpoint.py index c30ac6e5..accb9426 100644 --- a/spark_fhir_schemas/r4/resources/endpoint.py +++ b/spark_fhir_schemas/r4/resources/endpoint.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -124,6 +110,25 @@ def get_schema( header: Additional headers / information to send as part of the notification. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/enrollmentrequest.py b/spark_fhir_schemas/r4/resources/enrollmentrequest.py index c1f639e1..50ea9929 100644 --- a/spark_fhir_schemas/r4/resources/enrollmentrequest.py +++ b/spark_fhir_schemas/r4/resources/enrollmentrequest.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -105,6 +91,25 @@ def get_schema( coverage: Reference to the program or plan identification, underwriter or payor. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/enrollmentresponse.py b/spark_fhir_schemas/r4/resources/enrollmentresponse.py index 5579f11e..6d5d3174 100644 --- a/spark_fhir_schemas/r4/resources/enrollmentresponse.py +++ b/spark_fhir_schemas/r4/resources/enrollmentresponse.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -107,6 +93,25 @@ def get_schema( requestProvider: The practitioner who is responsible for the services rendered to the patient. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/episodeofcare.py b/spark_fhir_schemas/r4/resources/episodeofcare.py index bc55cc47..9e48251d 100644 --- a/spark_fhir_schemas/r4/resources/episodeofcare.py +++ b/spark_fhir_schemas/r4/resources/episodeofcare.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -125,6 +111,25 @@ def get_schema( account: The set of accounts that may be used for billing for this EpisodeOfCare. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/eventdefinition.py b/spark_fhir_schemas/r4/resources/eventdefinition.py index c262e464..06c0f291 100644 --- a/spark_fhir_schemas/r4/resources/eventdefinition.py +++ b/spark_fhir_schemas/r4/resources/eventdefinition.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -204,6 +190,25 @@ def get_schema( conditions is met. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/evidence.py b/spark_fhir_schemas/r4/resources/evidence.py index f73fd22a..c0044e19 100644 --- a/spark_fhir_schemas/r4/resources/evidence.py +++ b/spark_fhir_schemas/r4/resources/evidence.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -200,6 +186,25 @@ def get_schema( research. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/evidencevariable.py b/spark_fhir_schemas/r4/resources/evidencevariable.py index d08376a4..c832fffe 100644 --- a/spark_fhir_schemas/r4/resources/evidencevariable.py +++ b/spark_fhir_schemas/r4/resources/evidencevariable.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -198,6 +184,25 @@ def get_schema( characteristics are applied with "and" semantics. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/examplescenario.py b/spark_fhir_schemas/r4/resources/examplescenario.py index 557a7d05..3be3a5db 100644 --- a/spark_fhir_schemas/r4/resources/examplescenario.py +++ b/spark_fhir_schemas/r4/resources/examplescenario.py @@ -25,21 +25,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -163,6 +149,25 @@ def get_schema( workflow: Another nested workflow. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/explanationofbenefit.py b/spark_fhir_schemas/r4/resources/explanationofbenefit.py index a9ab0c6b..aea2dff4 100644 --- a/spark_fhir_schemas/r4/resources/explanationofbenefit.py +++ b/spark_fhir_schemas/r4/resources/explanationofbenefit.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -207,6 +193,25 @@ def get_schema( benefitBalance: Balance by Benefit Category. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/familymemberhistory.py b/spark_fhir_schemas/r4/resources/familymemberhistory.py index 4ba56ec1..2d9e8544 100644 --- a/spark_fhir_schemas/r4/resources/familymemberhistory.py +++ b/spark_fhir_schemas/r4/resources/familymemberhistory.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -171,6 +157,25 @@ def get_schema( condition. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/flag.py b/spark_fhir_schemas/r4/resources/flag.py index f8580b33..f3e4be0b 100644 --- a/spark_fhir_schemas/r4/resources/flag.py +++ b/spark_fhir_schemas/r4/resources/flag.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -111,6 +97,25 @@ def get_schema( author: The person, organization or device that created the flag. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/goal.py b/spark_fhir_schemas/r4/resources/goal.py index e8088160..e68d2e5c 100644 --- a/spark_fhir_schemas/r4/resources/goal.py +++ b/spark_fhir_schemas/r4/resources/goal.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -144,6 +130,25 @@ def get_schema( outcomeReference: Details of what's changed (or not changed). """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/graphdefinition.py b/spark_fhir_schemas/r4/resources/graphdefinition.py index bc02aacd..e9787ea0 100644 --- a/spark_fhir_schemas/r4/resources/graphdefinition.py +++ b/spark_fhir_schemas/r4/resources/graphdefinition.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -158,6 +144,25 @@ def get_schema( link: Links this graph makes rules about. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/group.py b/spark_fhir_schemas/r4/resources/group.py index d0630e17..e09de611 100644 --- a/spark_fhir_schemas/r4/resources/group.py +++ b/spark_fhir_schemas/r4/resources/group.py @@ -28,21 +28,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -127,6 +113,25 @@ def get_schema( member: Identifies the resource instances that are members of the group. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/guidanceresponse.py b/spark_fhir_schemas/r4/resources/guidanceresponse.py index e3c27752..2599843e 100644 --- a/spark_fhir_schemas/r4/resources/guidanceresponse.py +++ b/spark_fhir_schemas/r4/resources/guidanceresponse.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -152,6 +138,25 @@ def get_schema( the evaluation. A subsequent request to the service should include this data. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/healthcareservice.py b/spark_fhir_schemas/r4/resources/healthcareservice.py index 773301fe..1aa408f1 100644 --- a/spark_fhir_schemas/r4/resources/healthcareservice.py +++ b/spark_fhir_schemas/r4/resources/healthcareservice.py @@ -25,21 +25,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -164,6 +150,25 @@ def get_schema( healthcare services defined at this resource. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/imagingstudy.py b/spark_fhir_schemas/r4/resources/imagingstudy.py index c72626ef..c6f1698d 100644 --- a/spark_fhir_schemas/r4/resources/imagingstudy.py +++ b/spark_fhir_schemas/r4/resources/imagingstudy.py @@ -22,21 +22,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -156,6 +142,25 @@ def get_schema( series: Each study has one or more series of images or other content. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/immunization.py b/spark_fhir_schemas/r4/resources/immunization.py index 6a3ac848..060d9445 100644 --- a/spark_fhir_schemas/r4/resources/immunization.py +++ b/spark_fhir_schemas/r4/resources/immunization.py @@ -28,21 +28,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -172,6 +158,25 @@ def get_schema( administered the dose. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/immunizationevaluation.py b/spark_fhir_schemas/r4/resources/immunizationevaluation.py index bb6f90b2..35c2448e 100644 --- a/spark_fhir_schemas/r4/resources/immunizationevaluation.py +++ b/spark_fhir_schemas/r4/resources/immunizationevaluation.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -134,6 +120,25 @@ def get_schema( seriesDosesString: The recommended number of doses to achieve immunity. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/immunizationrecommendation.py b/spark_fhir_schemas/r4/resources/immunizationrecommendation.py index 0c655a9f..96df44f7 100644 --- a/spark_fhir_schemas/r4/resources/immunizationrecommendation.py +++ b/spark_fhir_schemas/r4/resources/immunizationrecommendation.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -101,6 +87,25 @@ def get_schema( recommendation: Vaccine administration recommendations. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/implementationguide.py b/spark_fhir_schemas/r4/resources/implementationguide.py index da2d2d32..321436fa 100644 --- a/spark_fhir_schemas/r4/resources/implementationguide.py +++ b/spark_fhir_schemas/r4/resources/implementationguide.py @@ -28,21 +28,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -183,6 +169,25 @@ def get_schema( publication tooling. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/insuranceplan.py b/spark_fhir_schemas/r4/resources/insuranceplan.py index f2cbf419..8198eb5c 100644 --- a/spark_fhir_schemas/r4/resources/insuranceplan.py +++ b/spark_fhir_schemas/r4/resources/insuranceplan.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -124,6 +110,25 @@ def get_schema( plan: Details about an insurance plan. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/invoice.py b/spark_fhir_schemas/r4/resources/invoice.py index d79b514c..357e7f3e 100644 --- a/spark_fhir_schemas/r4/resources/invoice.py +++ b/spark_fhir_schemas/r4/resources/invoice.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -132,6 +118,25 @@ def get_schema( note: Comments made about the invoice by the issuer, subject, or other participants. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/library.py b/spark_fhir_schemas/r4/resources/library.py index 1d987ae4..33c7a7cb 100644 --- a/spark_fhir_schemas/r4/resources/library.py +++ b/spark_fhir_schemas/r4/resources/library.py @@ -29,21 +29,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -217,6 +203,25 @@ def get_schema( contentType of the attachment determines how to interpret the content. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/linkage.py b/spark_fhir_schemas/r4/resources/linkage.py index 21115ea5..546ca088 100644 --- a/spark_fhir_schemas/r4/resources/linkage.py +++ b/spark_fhir_schemas/r4/resources/linkage.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -109,6 +95,25 @@ def get_schema( of linked items. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/list.py b/spark_fhir_schemas/r4/resources/list.py index 9f12d20b..41f9584f 100644 --- a/spark_fhir_schemas/r4/resources/list.py +++ b/spark_fhir_schemas/r4/resources/list.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -121,6 +107,25 @@ def get_schema( emptyReason: If the list is empty, why the list is empty. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/location.py b/spark_fhir_schemas/r4/resources/location.py index 08d78f86..a6db2e79 100644 --- a/spark_fhir_schemas/r4/resources/location.py +++ b/spark_fhir_schemas/r4/resources/location.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -139,6 +125,25 @@ class of locations. endpoint: Technical endpoints providing access to services operated for the location. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/measure.py b/spark_fhir_schemas/r4/resources/measure.py index edd94407..31f46041 100644 --- a/spark_fhir_schemas/r4/resources/measure.py +++ b/spark_fhir_schemas/r4/resources/measure.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -244,6 +230,25 @@ def get_schema( Resource Path. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/measurereport.py b/spark_fhir_schemas/r4/resources/measurereport.py index 216fbba1..559e8b07 100644 --- a/spark_fhir_schemas/r4/resources/measurereport.py +++ b/spark_fhir_schemas/r4/resources/measurereport.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -126,6 +112,25 @@ def get_schema( calculation of this measure. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/media.py b/spark_fhir_schemas/r4/resources/media.py index 51123c46..c1c371c0 100644 --- a/spark_fhir_schemas/r4/resources/media.py +++ b/spark_fhir_schemas/r4/resources/media.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -158,6 +144,25 @@ def get_schema( note: Comments made about the media by the performer, subject or other participants. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/medication.py b/spark_fhir_schemas/r4/resources/medication.py index b914a351..f95b2a66 100644 --- a/spark_fhir_schemas/r4/resources/medication.py +++ b/spark_fhir_schemas/r4/resources/medication.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -117,6 +103,25 @@ def get_schema( batch: Information that only applies to packages (not products). """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/medicationadministration.py b/spark_fhir_schemas/r4/resources/medicationadministration.py index a35e573b..22574a48 100644 --- a/spark_fhir_schemas/r4/resources/medicationadministration.py +++ b/spark_fhir_schemas/r4/resources/medicationadministration.py @@ -29,21 +29,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -173,6 +159,25 @@ def get_schema( administration was verified. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/medicationdispense.py b/spark_fhir_schemas/r4/resources/medicationdispense.py index ef2c1312..280073c1 100644 --- a/spark_fhir_schemas/r4/resources/medicationdispense.py +++ b/spark_fhir_schemas/r4/resources/medicationdispense.py @@ -22,21 +22,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -174,6 +160,25 @@ def get_schema( dispense was verified. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/medicationknowledge.py b/spark_fhir_schemas/r4/resources/medicationknowledge.py index 8d7932d1..1196fbff 100644 --- a/spark_fhir_schemas/r4/resources/medicationknowledge.py +++ b/spark_fhir_schemas/r4/resources/medicationknowledge.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -151,6 +137,25 @@ def get_schema( a medication from the body. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/medicationrequest.py b/spark_fhir_schemas/r4/resources/medicationrequest.py index 2e20b35c..69850ce2 100644 --- a/spark_fhir_schemas/r4/resources/medicationrequest.py +++ b/spark_fhir_schemas/r4/resources/medicationrequest.py @@ -29,21 +29,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -219,6 +205,25 @@ def get_schema( resource. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/medicationstatement.py b/spark_fhir_schemas/r4/resources/medicationstatement.py index f0c53051..3ac9963a 100644 --- a/spark_fhir_schemas/r4/resources/medicationstatement.py +++ b/spark_fhir_schemas/r4/resources/medicationstatement.py @@ -46,21 +46,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -198,6 +184,25 @@ def get_schema( dosage: Indicates how the medication is/was or should be taken by the patient. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/medicinalproduct.py b/spark_fhir_schemas/r4/resources/medicinalproduct.py index f5c2a8b2..29a611cc 100644 --- a/spark_fhir_schemas/r4/resources/medicinalproduct.py +++ b/spark_fhir_schemas/r4/resources/medicinalproduct.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -140,6 +126,25 @@ def get_schema( of a rare disease. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/medicinalproductauthorization.py b/spark_fhir_schemas/r4/resources/medicinalproductauthorization.py index c2cd7fb6..3c17779c 100644 --- a/spark_fhir_schemas/r4/resources/medicinalproductauthorization.py +++ b/spark_fhir_schemas/r4/resources/medicinalproductauthorization.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -128,6 +114,25 @@ def get_schema( procedure: The regulatory procedure for granting or amending a marketing authorization. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/medicinalproductcontraindication.py b/spark_fhir_schemas/r4/resources/medicinalproductcontraindication.py index 1ff970c9..1ce4a038 100644 --- a/spark_fhir_schemas/r4/resources/medicinalproductcontraindication.py +++ b/spark_fhir_schemas/r4/resources/medicinalproductcontraindication.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -107,6 +93,25 @@ def get_schema( population: The population group to which this applies. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/medicinalproductindication.py b/spark_fhir_schemas/r4/resources/medicinalproductindication.py index 5f7b9e3a..b8c4c0ad 100644 --- a/spark_fhir_schemas/r4/resources/medicinalproductindication.py +++ b/spark_fhir_schemas/r4/resources/medicinalproductindication.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -108,6 +94,25 @@ def get_schema( population: The population group to which this applies. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/medicinalproductingredient.py b/spark_fhir_schemas/r4/resources/medicinalproductingredient.py index 93bc97d9..7dc5a661 100644 --- a/spark_fhir_schemas/r4/resources/medicinalproductingredient.py +++ b/spark_fhir_schemas/r4/resources/medicinalproductingredient.py @@ -25,21 +25,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -110,6 +96,25 @@ def get_schema( substance: The ingredient substance. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/medicinalproductinteraction.py b/spark_fhir_schemas/r4/resources/medicinalproductinteraction.py index 65d8eb41..d563a461 100644 --- a/spark_fhir_schemas/r4/resources/medicinalproductinteraction.py +++ b/spark_fhir_schemas/r4/resources/medicinalproductinteraction.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -107,6 +93,25 @@ def get_schema( management: Actions for managing the interaction. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/medicinalproductmanufactured.py b/spark_fhir_schemas/r4/resources/medicinalproductmanufactured.py index d1795f18..11951286 100644 --- a/spark_fhir_schemas/r4/resources/medicinalproductmanufactured.py +++ b/spark_fhir_schemas/r4/resources/medicinalproductmanufactured.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -106,6 +92,25 @@ def get_schema( otherCharacteristics: Other codeable characteristics. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/medicinalproductpackaged.py b/spark_fhir_schemas/r4/resources/medicinalproductpackaged.py index bb2b55f2..5b95a1d0 100644 --- a/spark_fhir_schemas/r4/resources/medicinalproductpackaged.py +++ b/spark_fhir_schemas/r4/resources/medicinalproductpackaged.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -109,6 +95,25 @@ def get_schema( items within. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/medicinalproductpharmaceutical.py b/spark_fhir_schemas/r4/resources/medicinalproductpharmaceutical.py index bb7a3442..b3143bdb 100644 --- a/spark_fhir_schemas/r4/resources/medicinalproductpharmaceutical.py +++ b/spark_fhir_schemas/r4/resources/medicinalproductpharmaceutical.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -104,6 +90,25 @@ def get_schema( with the body. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/medicinalproductundesirableeffect.py b/spark_fhir_schemas/r4/resources/medicinalproductundesirableeffect.py index 02ea93bb..40633661 100644 --- a/spark_fhir_schemas/r4/resources/medicinalproductundesirableeffect.py +++ b/spark_fhir_schemas/r4/resources/medicinalproductundesirableeffect.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -99,6 +85,25 @@ def get_schema( population: The population group to which this applies. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/messagedefinition.py b/spark_fhir_schemas/r4/resources/messagedefinition.py index 6aea7ade..ce0798da 100644 --- a/spark_fhir_schemas/r4/resources/messagedefinition.py +++ b/spark_fhir_schemas/r4/resources/messagedefinition.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -185,6 +171,25 @@ def get_schema( can also specify profiles that apply to the various resources. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/messageheader.py b/spark_fhir_schemas/r4/resources/messageheader.py index 48154df0..cda9925f 100644 --- a/spark_fhir_schemas/r4/resources/messageheader.py +++ b/spark_fhir_schemas/r4/resources/messageheader.py @@ -22,21 +22,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -136,6 +122,25 @@ def get_schema( definition: Permanent link to the MessageDefinition for this message. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/molecularsequence.py b/spark_fhir_schemas/r4/resources/molecularsequence.py index 64a31320..81d32222 100644 --- a/spark_fhir_schemas/r4/resources/molecularsequence.py +++ b/spark_fhir_schemas/r4/resources/molecularsequence.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -135,6 +121,25 @@ def get_schema( structureVariant: Information about chromosome structure variation. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/namingsystem.py b/spark_fhir_schemas/r4/resources/namingsystem.py index 8c4c0a49..66484c94 100644 --- a/spark_fhir_schemas/r4/resources/namingsystem.py +++ b/spark_fhir_schemas/r4/resources/namingsystem.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -138,6 +124,25 @@ def get_schema( exchange. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/nutritionorder.py b/spark_fhir_schemas/r4/resources/nutritionorder.py index 754bf682..8701c4fa 100644 --- a/spark_fhir_schemas/r4/resources/nutritionorder.py +++ b/spark_fhir_schemas/r4/resources/nutritionorder.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -151,6 +137,25 @@ def get_schema( other participants. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/observation.py b/spark_fhir_schemas/r4/resources/observation.py index e6a547cd..8230fa93 100644 --- a/spark_fhir_schemas/r4/resources/observation.py +++ b/spark_fhir_schemas/r4/resources/observation.py @@ -28,21 +28,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -232,6 +218,25 @@ def get_schema( genetics observations. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/observationdefinition.py b/spark_fhir_schemas/r4/resources/observationdefinition.py index 0e8871db..8d8d9a2d 100644 --- a/spark_fhir_schemas/r4/resources/observationdefinition.py +++ b/spark_fhir_schemas/r4/resources/observationdefinition.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -133,6 +119,25 @@ def get_schema( ObservationDefinition. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/operationdefinition.py b/spark_fhir_schemas/r4/resources/operationdefinition.py index e0279e91..dffb7db9 100644 --- a/spark_fhir_schemas/r4/resources/operationdefinition.py +++ b/spark_fhir_schemas/r4/resources/operationdefinition.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -190,6 +176,25 @@ def get_schema( for this operation. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/operationoutcome.py b/spark_fhir_schemas/r4/resources/operationoutcome.py index a6502336..ca7f0d32 100644 --- a/spark_fhir_schemas/r4/resources/operationoutcome.py +++ b/spark_fhir_schemas/r4/resources/operationoutcome.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -93,6 +79,25 @@ def get_schema( issue: An error, warning, or information message that results from a system action. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/organization.py b/spark_fhir_schemas/r4/resources/organization.py index 67f3cfcb..f1ce79e4 100644 --- a/spark_fhir_schemas/r4/resources/organization.py +++ b/spark_fhir_schemas/r4/resources/organization.py @@ -28,21 +28,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -125,6 +111,25 @@ def get_schema( organization. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/organizationaffiliation.py b/spark_fhir_schemas/r4/resources/organizationaffiliation.py index b21b866a..37dd5886 100644 --- a/spark_fhir_schemas/r4/resources/organizationaffiliation.py +++ b/spark_fhir_schemas/r4/resources/organizationaffiliation.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -127,6 +113,25 @@ def get_schema( endpoint: Technical endpoints providing access to services operated for this role. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/parameters.py b/spark_fhir_schemas/r4/resources/parameters.py index ad87d2d0..e216974b 100644 --- a/spark_fhir_schemas/r4/resources/parameters.py +++ b/spark_fhir_schemas/r4/resources/parameters.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -64,6 +50,25 @@ def get_schema( parameter: A parameter passed to or received from the operation. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/patient.py b/spark_fhir_schemas/r4/resources/patient.py index b91eef36..d98e0064 100644 --- a/spark_fhir_schemas/r4/resources/patient.py +++ b/spark_fhir_schemas/r4/resources/patient.py @@ -29,21 +29,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -150,6 +136,25 @@ def get_schema( link: Link to another patient resource that concerns the same actual patient. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/paymentnotice.py b/spark_fhir_schemas/r4/resources/paymentnotice.py index 4c100491..a7b10662 100644 --- a/spark_fhir_schemas/r4/resources/paymentnotice.py +++ b/spark_fhir_schemas/r4/resources/paymentnotice.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -123,6 +109,25 @@ def get_schema( paymentStatus: A code indicating whether payment has been sent or cleared. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/paymentreconciliation.py b/spark_fhir_schemas/r4/resources/paymentreconciliation.py index c6480bb7..c62c6467 100644 --- a/spark_fhir_schemas/r4/resources/paymentreconciliation.py +++ b/spark_fhir_schemas/r4/resources/paymentreconciliation.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -130,6 +116,25 @@ def get_schema( processNote: A note that describes or explains the processing in a human readable form. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/person.py b/spark_fhir_schemas/r4/resources/person.py index a7b5ca9c..628834a6 100644 --- a/spark_fhir_schemas/r4/resources/person.py +++ b/spark_fhir_schemas/r4/resources/person.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -120,6 +106,25 @@ def get_schema( link: Link to a resource that concerns the same actual person. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/plandefinition.py b/spark_fhir_schemas/r4/resources/plandefinition.py index 15d447bf..f89b0d5c 100644 --- a/spark_fhir_schemas/r4/resources/plandefinition.py +++ b/spark_fhir_schemas/r4/resources/plandefinition.py @@ -29,21 +29,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -221,6 +207,25 @@ def get_schema( action: An action or group of actions to be taken as part of the plan. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/practitioner.py b/spark_fhir_schemas/r4/resources/practitioner.py index 8677dbca..eb707e13 100644 --- a/spark_fhir_schemas/r4/resources/practitioner.py +++ b/spark_fhir_schemas/r4/resources/practitioner.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -127,6 +113,25 @@ def get_schema( communication: A language the practitioner can use in patient communication. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/practitionerrole.py b/spark_fhir_schemas/r4/resources/practitionerrole.py index eb0ef6fc..2031f76f 100644 --- a/spark_fhir_schemas/r4/resources/practitionerrole.py +++ b/spark_fhir_schemas/r4/resources/practitionerrole.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -134,6 +120,25 @@ def get_schema( with this role. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/procedure.py b/spark_fhir_schemas/r4/resources/procedure.py index 9661f02e..7f30c547 100644 --- a/spark_fhir_schemas/r4/resources/procedure.py +++ b/spark_fhir_schemas/r4/resources/procedure.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -196,6 +182,25 @@ def get_schema( usedCode: Identifies coded items that were used as part of the procedure. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/provenance.py b/spark_fhir_schemas/r4/resources/provenance.py index 3077f795..d8af6bc4 100644 --- a/spark_fhir_schemas/r4/resources/provenance.py +++ b/spark_fhir_schemas/r4/resources/provenance.py @@ -33,21 +33,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -142,6 +128,25 @@ def get_schema( Provenance.agent. The purpose of the signature is indicated. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/questionnaire.py b/spark_fhir_schemas/r4/resources/questionnaire.py index 7a084aae..11abcdd6 100644 --- a/spark_fhir_schemas/r4/resources/questionnaire.py +++ b/spark_fhir_schemas/r4/resources/questionnaire.py @@ -28,21 +28,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -182,6 +168,25 @@ def get_schema( questionnaire. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/questionnaireresponse.py b/spark_fhir_schemas/r4/resources/questionnaireresponse.py index 775c442f..fdf76680 100644 --- a/spark_fhir_schemas/r4/resources/questionnaireresponse.py +++ b/spark_fhir_schemas/r4/resources/questionnaireresponse.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -127,6 +113,25 @@ def get_schema( provided. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/relatedperson.py b/spark_fhir_schemas/r4/resources/relatedperson.py index 48626181..22d15a7a 100644 --- a/spark_fhir_schemas/r4/resources/relatedperson.py +++ b/spark_fhir_schemas/r4/resources/relatedperson.py @@ -28,21 +28,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -127,6 +113,25 @@ def get_schema( communication: A language which may be used to communicate with about the patient's health. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/requestgroup.py b/spark_fhir_schemas/r4/resources/requestgroup.py index 83a667da..da316eb1 100644 --- a/spark_fhir_schemas/r4/resources/requestgroup.py +++ b/spark_fhir_schemas/r4/resources/requestgroup.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -136,6 +122,25 @@ def get_schema( action: The actions, if any, produced by the evaluation of the artifact. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/researchdefinition.py b/spark_fhir_schemas/r4/resources/researchdefinition.py index 36e3b8d1..e4f8bd46 100644 --- a/spark_fhir_schemas/r4/resources/researchdefinition.py +++ b/spark_fhir_schemas/r4/resources/researchdefinition.py @@ -28,21 +28,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -230,6 +216,25 @@ def get_schema( for the research. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/researchelementdefinition.py b/spark_fhir_schemas/r4/resources/researchelementdefinition.py index c6ec868c..694ded1d 100644 --- a/spark_fhir_schemas/r4/resources/researchelementdefinition.py +++ b/spark_fhir_schemas/r4/resources/researchelementdefinition.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -223,6 +209,25 @@ def get_schema( characteristics are applied with "and" semantics. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/researchstudy.py b/spark_fhir_schemas/r4/resources/researchstudy.py index 68d0c969..40b0e7d0 100644 --- a/spark_fhir_schemas/r4/resources/researchstudy.py +++ b/spark_fhir_schemas/r4/resources/researchstudy.py @@ -23,21 +23,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -166,6 +152,25 @@ def get_schema( to be answered by the analysis of data collected during the study. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/researchsubject.py b/spark_fhir_schemas/r4/resources/researchsubject.py index 7d5f69c0..2564001c 100644 --- a/spark_fhir_schemas/r4/resources/researchsubject.py +++ b/spark_fhir_schemas/r4/resources/researchsubject.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -109,6 +95,25 @@ def get_schema( consent: A record of the patient's informed agreement to participate in the study. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/riskassessment.py b/spark_fhir_schemas/r4/resources/riskassessment.py index 01ed3e37..a466eada 100644 --- a/spark_fhir_schemas/r4/resources/riskassessment.py +++ b/spark_fhir_schemas/r4/resources/riskassessment.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -138,6 +124,25 @@ def get_schema( note: Additional comments about the risk assessment. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/riskevidencesynthesis.py b/spark_fhir_schemas/r4/resources/riskevidencesynthesis.py index 26551875..7963753c 100644 --- a/spark_fhir_schemas/r4/resources/riskevidencesynthesis.py +++ b/spark_fhir_schemas/r4/resources/riskevidencesynthesis.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -204,6 +190,25 @@ def get_schema( certainty: A description of the certainty of the risk estimate. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/schedule.py b/spark_fhir_schemas/r4/resources/schedule.py index efdd1915..5157ae1e 100644 --- a/spark_fhir_schemas/r4/resources/schedule.py +++ b/spark_fhir_schemas/r4/resources/schedule.py @@ -25,21 +25,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -121,6 +107,25 @@ def get_schema( custom constraints on the slots that may be associated. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/searchparameter.py b/spark_fhir_schemas/r4/resources/searchparameter.py index 5f48ac4c..bdc101a0 100644 --- a/spark_fhir_schemas/r4/resources/searchparameter.py +++ b/spark_fhir_schemas/r4/resources/searchparameter.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -191,6 +177,25 @@ def get_schema( component: Used to define the parts of a composite search parameter. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/servicerequest.py b/spark_fhir_schemas/r4/resources/servicerequest.py index 8bde53ca..a7bebb8a 100644 --- a/spark_fhir_schemas/r4/resources/servicerequest.py +++ b/spark_fhir_schemas/r4/resources/servicerequest.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -218,6 +204,25 @@ def get_schema( relevantHistory: Key events in the history of the request. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/slot.py b/spark_fhir_schemas/r4/resources/slot.py index 0ca02933..a7ec4b0f 100644 --- a/spark_fhir_schemas/r4/resources/slot.py +++ b/spark_fhir_schemas/r4/resources/slot.py @@ -25,21 +25,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -127,6 +113,25 @@ def get_schema( constraints on the slot. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/specimen.py b/spark_fhir_schemas/r4/resources/specimen.py index 309e5930..76739a57 100644 --- a/spark_fhir_schemas/r4/resources/specimen.py +++ b/spark_fhir_schemas/r4/resources/specimen.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -122,6 +108,25 @@ def get_schema( collection. (for example: broken vial, sent with patient, frozen). """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/specimendefinition.py b/spark_fhir_schemas/r4/resources/specimendefinition.py index 3e5c06a4..bbb0c572 100644 --- a/spark_fhir_schemas/r4/resources/specimendefinition.py +++ b/spark_fhir_schemas/r4/resources/specimendefinition.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -101,6 +87,25 @@ def get_schema( typeTested: Specimen conditioned in a container as expected by the testing laboratory. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/structuredefinition.py b/spark_fhir_schemas/r4/resources/structuredefinition.py index e7fa6dae..4cd76426 100644 --- a/spark_fhir_schemas/r4/resources/structuredefinition.py +++ b/spark_fhir_schemas/r4/resources/structuredefinition.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -204,6 +190,25 @@ def get_schema( statement of differences that it applies. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/structuremap.py b/spark_fhir_schemas/r4/resources/structuremap.py index 1a2e48ac..74222813 100644 --- a/spark_fhir_schemas/r4/resources/structuremap.py +++ b/spark_fhir_schemas/r4/resources/structuremap.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -167,6 +153,25 @@ def get_schema( maintenance. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/subscription.py b/spark_fhir_schemas/r4/resources/subscription.py index f83cb51c..fba3a0f4 100644 --- a/spark_fhir_schemas/r4/resources/subscription.py +++ b/spark_fhir_schemas/r4/resources/subscription.py @@ -22,21 +22,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -116,6 +102,25 @@ def get_schema( criteria. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/substance.py b/spark_fhir_schemas/r4/resources/substance.py index a818f268..6921dbb7 100644 --- a/spark_fhir_schemas/r4/resources/substance.py +++ b/spark_fhir_schemas/r4/resources/substance.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -106,6 +92,25 @@ def get_schema( ingredient: A substance can be composed of other substances. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/substancenucleicacid.py b/spark_fhir_schemas/r4/resources/substancenucleicacid.py index d435119a..5b31a589 100644 --- a/spark_fhir_schemas/r4/resources/substancenucleicacid.py +++ b/spark_fhir_schemas/r4/resources/substancenucleicacid.py @@ -21,21 +21,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -113,6 +99,25 @@ def get_schema( sequences will be repeated multiple times. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/substancepolymer.py b/spark_fhir_schemas/r4/resources/substancepolymer.py index 2317fa5b..312351ae 100644 --- a/spark_fhir_schemas/r4/resources/substancepolymer.py +++ b/spark_fhir_schemas/r4/resources/substancepolymer.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -101,6 +87,25 @@ def get_schema( repeat: Todo. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/substanceprotein.py b/spark_fhir_schemas/r4/resources/substanceprotein.py index edeec3b0..628411b0 100644 --- a/spark_fhir_schemas/r4/resources/substanceprotein.py +++ b/spark_fhir_schemas/r4/resources/substanceprotein.py @@ -25,21 +25,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -127,6 +113,25 @@ def get_schema( multiple times. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/substancereferenceinformation.py b/spark_fhir_schemas/r4/resources/substancereferenceinformation.py index 3cf9263b..b2de71d8 100644 --- a/spark_fhir_schemas/r4/resources/substancereferenceinformation.py +++ b/spark_fhir_schemas/r4/resources/substancereferenceinformation.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -99,6 +85,25 @@ def get_schema( target: Todo. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/substancesourcematerial.py b/spark_fhir_schemas/r4/resources/substancesourcematerial.py index 07f34a7b..485f052a 100644 --- a/spark_fhir_schemas/r4/resources/substancesourcematerial.py +++ b/spark_fhir_schemas/r4/resources/substancesourcematerial.py @@ -31,21 +31,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -164,6 +150,25 @@ def get_schema( partDescription: To do. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/substancespecification.py b/spark_fhir_schemas/r4/resources/substancespecification.py index 342f71b2..e5dcc355 100644 --- a/spark_fhir_schemas/r4/resources/substancespecification.py +++ b/spark_fhir_schemas/r4/resources/substancespecification.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -131,6 +117,25 @@ def get_schema( sourceMaterial: Material or taxonomic/anatomical source for the substance. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/supplydelivery.py b/spark_fhir_schemas/r4/resources/supplydelivery.py index 9f26039c..015de606 100644 --- a/spark_fhir_schemas/r4/resources/supplydelivery.py +++ b/spark_fhir_schemas/r4/resources/supplydelivery.py @@ -25,21 +25,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -125,6 +111,25 @@ def get_schema( receiver: Identifies the person who picked up the Supply. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/supplyrequest.py b/spark_fhir_schemas/r4/resources/supplyrequest.py index 0c7442b4..81c884b2 100644 --- a/spark_fhir_schemas/r4/resources/supplyrequest.py +++ b/spark_fhir_schemas/r4/resources/supplyrequest.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -143,6 +129,25 @@ def get_schema( deliverTo: Where the supply is destined to go. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/task.py b/spark_fhir_schemas/r4/resources/task.py index b2c7b503..6fc33d29 100644 --- a/spark_fhir_schemas/r4/resources/task.py +++ b/spark_fhir_schemas/r4/resources/task.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -171,6 +157,25 @@ def get_schema( output: Outputs produced by the Task. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/terminologycapabilities.py b/spark_fhir_schemas/r4/resources/terminologycapabilities.py index ad9d738e..6cfe20a7 100644 --- a/spark_fhir_schemas/r4/resources/terminologycapabilities.py +++ b/spark_fhir_schemas/r4/resources/terminologycapabilities.py @@ -27,21 +27,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -192,6 +178,25 @@ def get_schema( closure: Whether the $closure operation is supported. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/testreport.py b/spark_fhir_schemas/r4/resources/testreport.py index c0431794..27f87d50 100644 --- a/spark_fhir_schemas/r4/resources/testreport.py +++ b/spark_fhir_schemas/r4/resources/testreport.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -119,6 +105,25 @@ def get_schema( tests were executed (successfully or otherwise). """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/testscript.py b/spark_fhir_schemas/r4/resources/testscript.py index 3aa223c2..64b47bbe 100644 --- a/spark_fhir_schemas/r4/resources/testscript.py +++ b/spark_fhir_schemas/r4/resources/testscript.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -181,6 +167,25 @@ def get_schema( (successfully or otherwise). """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/valueset.py b/spark_fhir_schemas/r4/resources/valueset.py index 14bec64b..de773883 100644 --- a/spark_fhir_schemas/r4/resources/valueset.py +++ b/spark_fhir_schemas/r4/resources/valueset.py @@ -28,21 +28,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -174,6 +160,25 @@ def get_schema( has been performed. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/verificationresult.py b/spark_fhir_schemas/r4/resources/verificationresult.py index 75875ae2..20fa7a0c 100644 --- a/spark_fhir_schemas/r4/resources/verificationresult.py +++ b/spark_fhir_schemas/r4/resources/verificationresult.py @@ -26,21 +26,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -130,6 +116,25 @@ def get_schema( validator: Information about the entity validating information. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/resources/visionprescription.py b/spark_fhir_schemas/r4/resources/visionprescription.py index 508422dc..b673115a 100644 --- a/spark_fhir_schemas/r4/resources/visionprescription.py +++ b/spark_fhir_schemas/r4/resources/visionprescription.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -110,6 +96,25 @@ def get_schema( authorization for the fullfillment by certified professionals. """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema diff --git a/spark_fhir_schemas/r4/simple_types/base64binary.py b/spark_fhir_schemas/r4/simple_types/base64binary.py index 6a1d3ead..a7d13406 100644 --- a/spark_fhir_schemas/r4/simple_types/base64binary.py +++ b/spark_fhir_schemas/r4/simple_types/base64binary.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -42,4 +28,23 @@ def get_schema( """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] return StringType() diff --git a/spark_fhir_schemas/r4/simple_types/boolean.py b/spark_fhir_schemas/r4/simple_types/boolean.py index 9c319ee3..8691ddd5 100644 --- a/spark_fhir_schemas/r4/simple_types/boolean.py +++ b/spark_fhir_schemas/r4/simple_types/boolean.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -42,4 +28,23 @@ def get_schema( """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] return BooleanType() diff --git a/spark_fhir_schemas/r4/simple_types/canonical.py b/spark_fhir_schemas/r4/simple_types/canonical.py index 75fa95d8..81503c8b 100644 --- a/spark_fhir_schemas/r4/simple_types/canonical.py +++ b/spark_fhir_schemas/r4/simple_types/canonical.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -42,4 +28,23 @@ def get_schema( """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] return StringType() diff --git a/spark_fhir_schemas/r4/simple_types/code.py b/spark_fhir_schemas/r4/simple_types/code.py index fb59cb7a..ad847d33 100644 --- a/spark_fhir_schemas/r4/simple_types/code.py +++ b/spark_fhir_schemas/r4/simple_types/code.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -46,4 +32,23 @@ def get_schema( """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] return StringType() diff --git a/spark_fhir_schemas/r4/simple_types/date.py b/spark_fhir_schemas/r4/simple_types/date.py index f67e31dc..50c19cf4 100644 --- a/spark_fhir_schemas/r4/simple_types/date.py +++ b/spark_fhir_schemas/r4/simple_types/date.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -46,4 +32,23 @@ def get_schema( """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] return DateType() diff --git a/spark_fhir_schemas/r4/simple_types/datetime.py b/spark_fhir_schemas/r4/simple_types/datetime.py index f5ac3125..f1107f36 100644 --- a/spark_fhir_schemas/r4/simple_types/datetime.py +++ b/spark_fhir_schemas/r4/simple_types/datetime.py @@ -22,21 +22,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -50,4 +36,23 @@ def get_schema( """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] return TimestampType() diff --git a/spark_fhir_schemas/r4/simple_types/decimal.py b/spark_fhir_schemas/r4/simple_types/decimal.py index 6049904f..cb9579bc 100644 --- a/spark_fhir_schemas/r4/simple_types/decimal.py +++ b/spark_fhir_schemas/r4/simple_types/decimal.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -42,4 +28,23 @@ def get_schema( """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] return FloatType() diff --git a/spark_fhir_schemas/r4/simple_types/id.py b/spark_fhir_schemas/r4/simple_types/id.py index 83acba35..e5d0ee36 100644 --- a/spark_fhir_schemas/r4/simple_types/id.py +++ b/spark_fhir_schemas/r4/simple_types/id.py @@ -20,21 +20,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -46,4 +32,23 @@ def get_schema( """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] return StringType() diff --git a/spark_fhir_schemas/r4/simple_types/instant.py b/spark_fhir_schemas/r4/simple_types/instant.py index 4971fd6c..4523fcef 100644 --- a/spark_fhir_schemas/r4/simple_types/instant.py +++ b/spark_fhir_schemas/r4/simple_types/instant.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -42,4 +28,23 @@ def get_schema( """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] return StringType() diff --git a/spark_fhir_schemas/r4/simple_types/integer.py b/spark_fhir_schemas/r4/simple_types/integer.py index 58810525..0e5d4d1c 100644 --- a/spark_fhir_schemas/r4/simple_types/integer.py +++ b/spark_fhir_schemas/r4/simple_types/integer.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -42,4 +28,23 @@ def get_schema( """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] return IntegerType() diff --git a/spark_fhir_schemas/r4/simple_types/markdown.py b/spark_fhir_schemas/r4/simple_types/markdown.py index 0200da0e..c1a708b3 100644 --- a/spark_fhir_schemas/r4/simple_types/markdown.py +++ b/spark_fhir_schemas/r4/simple_types/markdown.py @@ -19,21 +19,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -44,4 +30,23 @@ def get_schema( """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] return StringType() diff --git a/spark_fhir_schemas/r4/simple_types/oid.py b/spark_fhir_schemas/r4/simple_types/oid.py index 2afc3ec1..8f510d08 100644 --- a/spark_fhir_schemas/r4/simple_types/oid.py +++ b/spark_fhir_schemas/r4/simple_types/oid.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -42,4 +28,23 @@ def get_schema( """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] return StringType() diff --git a/spark_fhir_schemas/r4/simple_types/positiveint.py b/spark_fhir_schemas/r4/simple_types/positiveint.py index 527a1df6..c2b8c678 100644 --- a/spark_fhir_schemas/r4/simple_types/positiveint.py +++ b/spark_fhir_schemas/r4/simple_types/positiveint.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -42,4 +28,23 @@ def get_schema( """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] return IntegerType() diff --git a/spark_fhir_schemas/r4/simple_types/string.py b/spark_fhir_schemas/r4/simple_types/string.py index de9917a6..a8423f81 100644 --- a/spark_fhir_schemas/r4/simple_types/string.py +++ b/spark_fhir_schemas/r4/simple_types/string.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -42,4 +28,23 @@ def get_schema( """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] return StringType() diff --git a/spark_fhir_schemas/r4/simple_types/time.py b/spark_fhir_schemas/r4/simple_types/time.py index aee01776..da018834 100644 --- a/spark_fhir_schemas/r4/simple_types/time.py +++ b/spark_fhir_schemas/r4/simple_types/time.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -42,4 +28,23 @@ def get_schema( """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] return StringType() diff --git a/spark_fhir_schemas/r4/simple_types/unsignedint.py b/spark_fhir_schemas/r4/simple_types/unsignedint.py index 55e893e9..fdb60299 100644 --- a/spark_fhir_schemas/r4/simple_types/unsignedint.py +++ b/spark_fhir_schemas/r4/simple_types/unsignedint.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -42,4 +28,23 @@ def get_schema( """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] return IntegerType() diff --git a/spark_fhir_schemas/r4/simple_types/uri.py b/spark_fhir_schemas/r4/simple_types/uri.py index c0c5ea4e..9166f04e 100644 --- a/spark_fhir_schemas/r4/simple_types/uri.py +++ b/spark_fhir_schemas/r4/simple_types/uri.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -42,4 +28,23 @@ def get_schema( """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] return StringType() diff --git a/spark_fhir_schemas/r4/simple_types/url.py b/spark_fhir_schemas/r4/simple_types/url.py index d04311cf..59c2f5eb 100644 --- a/spark_fhir_schemas/r4/simple_types/url.py +++ b/spark_fhir_schemas/r4/simple_types/url.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -42,4 +28,23 @@ def get_schema( """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] return StringType() diff --git a/spark_fhir_schemas/r4/simple_types/uuid.py b/spark_fhir_schemas/r4/simple_types/uuid.py index 27a782e9..637e2a81 100644 --- a/spark_fhir_schemas/r4/simple_types/uuid.py +++ b/spark_fhir_schemas/r4/simple_types/uuid.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -42,4 +28,23 @@ def get_schema( """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] return StringType() diff --git a/spark_fhir_schemas/r4/simple_types/xhtml.py b/spark_fhir_schemas/r4/simple_types/xhtml.py index d47c4770..3b110362 100644 --- a/spark_fhir_schemas/r4/simple_types/xhtml.py +++ b/spark_fhir_schemas/r4/simple_types/xhtml.py @@ -18,21 +18,7 @@ def get_schema( nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, - extension_fields: Optional[List[str]] = [ - "valueBoolean", - "valueCode", - "valueDate", - "valueDateTime", - "valueDecimal", - "valueId", - "valueInteger", - "valuePositiveInt", - "valueString", - "valueTime", - "valueUnsignedInt", - "valueUri", - "valueUrl", - ], + extension_fields: Optional[List[str]] = None, extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, @@ -42,4 +28,23 @@ def get_schema( """ + if extension_fields is None: + extension_fields = [ + "valueBoolean", + "valueCode", + "valueDate", + "valueDateTime", + "valueDecimal", + "valueId", + "valueInteger", + "valuePositiveInt", + "valueString", + "valueTime", + "valueUnsignedInt", + "valueUri", + "valueUrl", + "valueReference", + "valueCodeableConcept", + "valueAddress", + ] return StringType()