From 9b420f82ee7dde9c8588d39b20f7fcde0cd45916 Mon Sep 17 00:00:00 2001 From: "A.M.S.I Attanayake" Date: Wed, 10 Sep 2025 14:55:04 +0530 Subject: [PATCH] update uscore311 --- uscore311/Dependencies.toml | 15 +- uscore311/extensions.bal | 646 ++++++++++++++++++ ...ontal_circumference_percentile_profile.bal | 29 +- .../resource_uscore_care_plan_profile.bal | 98 +-- uscore311/resource_uscore_care_team.bal | 8 +- uscore311/resource_uscore_condition.bal | 8 +- ...ic_report_profile_laboratory_reporting.bal | 16 +- ...iagnostic_report_profile_note_exchange.bal | 16 +- ...urce_uscore_document_reference_profile.bal | 12 +- .../resource_uscore_encounter_profile.bal | 8 +- .../resource_uscore_immunization_profile.bal | 20 +- ..._laboratory_result_observation_profile.bal | 21 +- .../resource_uscore_medication_profile.bal | 12 +- ...urce_uscore_medication_request_profile.bal | 20 +- uscore311/resource_uscore_patient_profile.bal | 14 +- ...diatric_bmifor_age_observation_profile.bal | 29 +- ..._weight_for_height_observation_profile.bal | 29 +- .../resource_uscore_practitioner_profile.bal | 12 +- .../resource_uscore_procedure_profile.bal | 12 +- uscore311/resource_uscore_provenance.bal | 24 +- ...resource_uscore_pulse_oximetry_profile.bal | 141 ++-- ...resource_uscore_smoking_status_profile.bal | 21 +- 22 files changed, 915 insertions(+), 296 deletions(-) create mode 100644 uscore311/extensions.bal diff --git a/uscore311/Dependencies.toml b/uscore311/Dependencies.toml index 3858c821..9c462cfe 100644 --- a/uscore311/Dependencies.toml +++ b/uscore311/Dependencies.toml @@ -5,7 +5,7 @@ [ballerina] dependencies-toml-version = "2" -distribution-version = "2201.12.2" +distribution-version = "2201.12.8" [[package]] org = "ballerina" @@ -53,7 +53,7 @@ dependencies = [ [[package]] org = "ballerina" name = "data.jsondata" -version = "1.1.0" +version = "1.1.1" dependencies = [ {org = "ballerina", name = "jballerina.java"}, {org = "ballerina", name = "lang.object"} @@ -73,7 +73,7 @@ dependencies = [ [[package]] org = "ballerina" name = "http" -version = "2.14.0" +version = "2.14.5" dependencies = [ {org = "ballerina", name = "auth"}, {org = "ballerina", name = "cache"}, @@ -230,7 +230,7 @@ dependencies = [ [[package]] org = "ballerina" name = "oauth2" -version = "2.14.0" +version = "2.14.1" dependencies = [ {org = "ballerina", name = "cache"}, {org = "ballerina", name = "crypto"}, @@ -260,10 +260,11 @@ dependencies = [ [[package]] org = "ballerina" name = "task" -version = "2.7.0" +version = "2.10.0" dependencies = [ {org = "ballerina", name = "jballerina.java"}, - {org = "ballerina", name = "time"} + {org = "ballerina", name = "time"}, + {org = "ballerina", name = "uuid"} ] [[package]] @@ -296,7 +297,7 @@ dependencies = [ [[package]] org = "ballerinax" name = "health.base" -version = "1.1.0" +version = "1.1.1" dependencies = [ {org = "ballerina", name = "http"}, {org = "ballerina", name = "io"}, diff --git a/uscore311/extensions.bal b/uscore311/extensions.bal new file mode 100644 index 00000000..00439dc6 --- /dev/null +++ b/uscore311/extensions.bal @@ -0,0 +1,646 @@ +// Copyright (c) 2025, WSO2 LLC. (http://www.wso2.com). + +// WSO2 LLC. licenses this file to you under the Apache License, +// Version 2.0 (the "License"); you may not use this file except +// in compliance with the License. +// You may obtain a copy of the License at + +// http://www.apache.org/licenses/LICENSE-2.0 + +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// AUTO-GENERATED FILE. +// This file is auto-generated by Ballerina. + +import ballerinax/health.fhir.r4; + +public type UsCoreBirthsexExtensions (UsCoreBirthsexValueCode ); +public type UsCoreRaceExtensions (UsCoreRaceValueCoding | UsCoreRaceText | UsCoreRaceOmbCategory | UsCoreRaceDetailed | UsCoreRaceValueString ); +public type UsCoreEthnicityExtensions (UsCoreEthnicityOmbCategory | UsCoreEthnicityDetailed | UsCoreEthnicityText ); +public type UsCoreDirectExtensions (UsCoreDirectValueBoolean ); + +@r4:DataTypeDefinition { + name: "UsCoreBirthsex", + baseType: (), + elements: { + "valueCode": { + name: "valueCode", + dataType: r4:code, + min: 1, + max: 1, + isArray: false, + description: "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + path: "Extension.value[x]" + }, + + "url": { + name: "url", + dataType: string, + min: 1, + max: 1, + isArray: false, + description: "Source of the definition for the extension code - a logical name or a URL.", + path: "Extension.url" + } + + }, + serializers: { + 'xml: r4:complexDataTypeXMLSerializer, + 'json: r4:complexDataTypeJsonSerializer + } +} + +public type UsCoreBirthsex record {| + *r4:CodeExtension; + + r4:code valueCode; + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex" url = "http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex"; +|}; + +@r4:DataTypeDefinition { + name: "UsCoreDirect", + baseType: (), + elements: { + "valueBoolean": { + name: "valueBoolean", + dataType: boolean, + min: 1, + max: 1, + isArray: false, + description: "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + path: "Extension.value[x]" + }, + + "url": { + name: "url", + dataType: string, + min: 1, + max: 1, + isArray: false, + description: "Source of the definition for the extension code - a logical name or a URL.", + path: "Extension.url" + } + + }, + serializers: { + 'xml: r4:complexDataTypeXMLSerializer, + 'json: r4:complexDataTypeJsonSerializer + } +} + +public type UsCoreDirect record {| + *r4:BooleanExtension; + + boolean valueBoolean; + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-direct" url = "http://hl7.org/fhir/us/core/StructureDefinition/us-core-direct"; +|}; + +@r4:DataTypeDefinition { + name: "UsCoreEthnicity", + baseType: (), + elements: { + "url": { + name: "url", + dataType: string, + min: 1, + max: 1, + isArray: false, + description: "Source of the definition for the extension code - a logical name or a URL.", + path: "Extension.url" + } + + }, + serializers: { + 'xml: r4:complexDataTypeXMLSerializer, + 'json: r4:complexDataTypeJsonSerializer + } +} + +public type UsCoreEthnicity record {| + *r4:ExtensionExtension; + + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity" url = "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity"; +|}; + +@r4:DataTypeDefinition { + name: "UsCoreRace", + baseType: (), + elements: { + "url": { + name: "url", + dataType: string, + min: 1, + max: 1, + isArray: false, + description: "Source of the definition for the extension code - a logical name or a URL.", + path: "Extension.url" + } + + }, + serializers: { + 'xml: r4:complexDataTypeXMLSerializer, + 'json: r4:complexDataTypeJsonSerializer + } +} + +public type UsCoreRace record {| + *r4:ExtensionExtension; + + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race" url = "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race"; +|}; + +@r4:DataTypeDefinition { + name: "UsCoreBirthsexValueCode", + baseType: (), + elements: { + }, + serializers: { + 'xml: r4:complexDataTypeXMLSerializer, + 'json: r4:complexDataTypeJsonSerializer + } +} + +public type UsCoreBirthsexValueCode record {| + *r4:ExtensionExtension; + +|}; + +@r4:DataTypeDefinition { + name: "UsCoreDirectValueBoolean", + baseType: (), + elements: { + }, + serializers: { + 'xml: r4:complexDataTypeXMLSerializer, + 'json: r4:complexDataTypeJsonSerializer + } +} + +public type UsCoreDirectValueBoolean record {| + *r4:ExtensionExtension; + +|}; + +@r4:DataTypeDefinition { + name: "UsCoreEthnicityDetailed", + baseType: (), + elements: { + "valueBase64Binary": { + name: "valueBase64Binary", + dataType: r4:base64Binary, + min: 0, + max: 1, + isArray: false, + description: "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + path: "detailed.value[x]" + }, + + "valueCoding": { + name: "valueCoding", + dataType: r4:Coding, + min: 1, + max: 1, + isArray: false, + description: "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + path: "detailed.value[x]" + }, + + "extension": { + name: "extension", + dataType: r4:Extension, + min: 0, + max: int:MAX_VALUE, + isArray: true, + description: "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + path: "detailed.extension" + }, + + "id": { + name: "id", + dataType: string, + min: 0, + max: 1, + isArray: false, + description: "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + path: "detailed.id" + }, + + "url": { + name: "url", + dataType: r4:uri, + min: 1, + max: 1, + isArray: false, + description: "Source of the definition for the extension code - a logical name or a URL.", + path: "detailed.url" + } + + }, + serializers: { + 'xml: r4:complexDataTypeXMLSerializer, + 'json: r4:complexDataTypeJsonSerializer + } +} + +public type UsCoreEthnicityDetailed record {| + *r4:CodingExtension; + + r4:base64Binary valueBase64Binary?; + r4:Coding valueCoding; + r4:Extension[] extension?; + string id?; + string url; +|}; + +@r4:DataTypeDefinition { + name: "UsCoreEthnicityOmbCategory", + baseType: (), + elements: { + "valueBase64Binary": { + name: "valueBase64Binary", + dataType: r4:base64Binary, + min: 0, + max: 1, + isArray: false, + description: "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + path: "ombCategory.value[x]" + }, + + "valueCoding": { + name: "valueCoding", + dataType: r4:Coding, + min: 1, + max: 1, + isArray: false, + description: "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + path: "ombCategory.value[x]" + }, + + "extension": { + name: "extension", + dataType: r4:Extension, + min: 0, + max: int:MAX_VALUE, + isArray: true, + description: "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + path: "ombCategory.extension" + }, + + "id": { + name: "id", + dataType: string, + min: 0, + max: 1, + isArray: false, + description: "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + path: "ombCategory.id" + }, + + "url": { + name: "url", + dataType: r4:uri, + min: 1, + max: 1, + isArray: false, + description: "Source of the definition for the extension code - a logical name or a URL.", + path: "ombCategory.url" + } + + }, + serializers: { + 'xml: r4:complexDataTypeXMLSerializer, + 'json: r4:complexDataTypeJsonSerializer + } +} + +public type UsCoreEthnicityOmbCategory record {| + *r4:CodingExtension; + + r4:base64Binary valueBase64Binary?; + r4:Coding valueCoding; + r4:Extension[] extension?; + string id?; + string url; +|}; + +@r4:DataTypeDefinition { + name: "UsCoreEthnicityText", + baseType: (), + elements: { + "valueBase64Binary": { + name: "valueBase64Binary", + dataType: r4:base64Binary, + min: 0, + max: 1, + isArray: false, + description: "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + path: "text.value[x]" + }, + + "extension": { + name: "extension", + dataType: r4:Extension, + min: 0, + max: int:MAX_VALUE, + isArray: true, + description: "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + path: "text.extension" + }, + + "valueString": { + name: "valueString", + dataType: string, + min: 1, + max: 1, + isArray: false, + description: "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + path: "text.value[x]" + }, + + "id": { + name: "id", + dataType: string, + min: 0, + max: 1, + isArray: false, + description: "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + path: "text.id" + }, + + "url": { + name: "url", + dataType: r4:uri, + min: 1, + max: 1, + isArray: false, + description: "Source of the definition for the extension code - a logical name or a URL.", + path: "text.url" + } + + }, + serializers: { + 'xml: r4:complexDataTypeXMLSerializer, + 'json: r4:complexDataTypeJsonSerializer + } +} + +public type UsCoreEthnicityText record {| + *r4:StringExtension; + + r4:base64Binary valueBase64Binary?; + r4:Extension[] extension?; + string valueString; + string id?; + string url; +|}; + +@r4:DataTypeDefinition { + name: "UsCoreRaceDetailed", + baseType: (), + elements: { + "valueBase64Binary": { + name: "valueBase64Binary", + dataType: r4:base64Binary, + min: 0, + max: 1, + isArray: false, + description: "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + path: "detailed.value[x]" + }, + + "valueCoding": { + name: "valueCoding", + dataType: r4:Coding, + min: 1, + max: 1, + isArray: false, + description: "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + path: "detailed.valueCoding" + }, + + "extension": { + name: "extension", + dataType: r4:Extension, + min: 0, + max: int:MAX_VALUE, + isArray: true, + description: "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + path: "detailed.extension" + }, + + "id": { + name: "id", + dataType: string, + min: 0, + max: 1, + isArray: false, + description: "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + path: "detailed.id" + }, + + "url": { + name: "url", + dataType: r4:uri, + min: 1, + max: 1, + isArray: false, + description: "Source of the definition for the extension code - a logical name or a URL.", + path: "detailed.url" + } + + }, + serializers: { + 'xml: r4:complexDataTypeXMLSerializer, + 'json: r4:complexDataTypeJsonSerializer + } +} + +public type UsCoreRaceDetailed record {| + *r4:CodingExtension; + + r4:base64Binary valueBase64Binary?; + r4:Coding valueCoding; + r4:Extension[] extension?; + string id?; + string url; +|}; + +@r4:DataTypeDefinition { + name: "UsCoreRaceOmbCategory", + baseType: (), + elements: { + "valueBase64Binary": { + name: "valueBase64Binary", + dataType: r4:base64Binary, + min: 0, + max: 1, + isArray: false, + description: "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + path: "ombCategory.value[x]" + }, + + "valueCoding": { + name: "valueCoding", + dataType: r4:Coding, + min: 1, + max: 1, + isArray: false, + description: "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + path: "ombCategory.valueCoding" + }, + + "extension": { + name: "extension", + dataType: r4:Extension, + min: 0, + max: int:MAX_VALUE, + isArray: true, + description: "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + path: "ombCategory.extension" + }, + + "id": { + name: "id", + dataType: string, + min: 0, + max: 1, + isArray: false, + description: "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + path: "ombCategory.id" + }, + + "url": { + name: "url", + dataType: r4:uri, + min: 1, + max: 1, + isArray: false, + description: "Source of the definition for the extension code - a logical name or a URL.", + path: "ombCategory.url" + } + + }, + serializers: { + 'xml: r4:complexDataTypeXMLSerializer, + 'json: r4:complexDataTypeJsonSerializer + } +} + +public type UsCoreRaceOmbCategory record {| + *r4:CodingExtension; + + r4:base64Binary valueBase64Binary?; + r4:Coding valueCoding; + r4:Extension[] extension?; + string id?; + string url; +|}; + +@r4:DataTypeDefinition { + name: "UsCoreRaceText", + baseType: (), + elements: { + "valueBase64Binary": { + name: "valueBase64Binary", + dataType: r4:base64Binary, + min: 0, + max: 1, + isArray: false, + description: "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + path: "text.value[x]" + }, + + "extension": { + name: "extension", + dataType: r4:Extension, + min: 0, + max: int:MAX_VALUE, + isArray: true, + description: "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + path: "text.extension" + }, + + "valueString": { + name: "valueString", + dataType: string, + min: 1, + max: 1, + isArray: false, + description: "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + path: "text.valueString" + }, + + "id": { + name: "id", + dataType: string, + min: 0, + max: 1, + isArray: false, + description: "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + path: "text.id" + }, + + "url": { + name: "url", + dataType: r4:uri, + min: 1, + max: 1, + isArray: false, + description: "Source of the definition for the extension code - a logical name or a URL.", + path: "text.url" + } + + }, + serializers: { + 'xml: r4:complexDataTypeXMLSerializer, + 'json: r4:complexDataTypeJsonSerializer + } +} + +public type UsCoreRaceText record {| + *r4:StringExtension; + + r4:base64Binary valueBase64Binary?; + r4:Extension[] extension?; + string valueString; + string id?; + string url; +|}; + +@r4:DataTypeDefinition { + name: "UsCoreRaceValueCoding", + baseType: (), + elements: { + }, + serializers: { + 'xml: r4:complexDataTypeXMLSerializer, + 'json: r4:complexDataTypeJsonSerializer + } +} + +public type UsCoreRaceValueCoding record {| + *r4:ExtensionExtension; + +|}; + +@r4:DataTypeDefinition { + name: "UsCoreRaceValueString", + baseType: (), + elements: { + }, + serializers: { + 'xml: r4:complexDataTypeXMLSerializer, + 'json: r4:complexDataTypeJsonSerializer + } +} + +public type UsCoreRaceValueString record {| + *r4:ExtensionExtension; + +|}; + diff --git a/uscore311/resource_us_core_pediatric_head_occipital_frontal_circumference_percentile_profile.bal b/uscore311/resource_us_core_pediatric_head_occipital_frontal_circumference_percentile_profile.bal index 90cc21b3..368cffb7 100644 --- a/uscore311/resource_us_core_pediatric_head_occipital_frontal_circumference_percentile_profile.bal +++ b/uscore311/resource_us_core_pediatric_head_occipital_frontal_circumference_percentile_profile.bal @@ -1,4 +1,4 @@ -// Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com). +// Copyright (c) 2025, WSO2 LLC. (http://www.wso2.com). // WSO2 LLC. licenses this file to you under the Apache License, // Version 2.0 (the "License"); you may not use this file except @@ -13,7 +13,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. - +// // AUTO-GENERATED FILE. // This file is auto-generated by Ballerina. @@ -219,7 +219,7 @@ public const RESOURCE_NAME_USCOREPEDIATRICHEADOCCIPITALFRONTALCIRCUMFERENCEPERCE "effectivePeriod" : { name: "effectivePeriod", dataType: r4:Period, - min: 1, + min: 0, max: 1, isArray: false, path: "Observation.effective[x]" @@ -285,7 +285,7 @@ public const RESOURCE_NAME_USCOREPEDIATRICHEADOCCIPITALFRONTALCIRCUMFERENCEPERCE "effectiveDateTime" : { name: "effectiveDateTime", dataType: r4:dateTime, - min: 1, + min: 0, max: 1, isArray: false, path: "Observation.effective[x]" @@ -370,7 +370,7 @@ public type UsCorePediatricHeadOccipitalFrontalCircumferencePercentileProfile re UsCorePediatricHeadOccipitalFrontalCircumferencePercentileProfileValue valueQuantity?; r4:Identifier[] identifier?; r4:Reference[] performer?; - r4:Period effectivePeriod; + r4:Period effectivePeriod?; r4:CodeableConcept method?; r4:Reference[] hasMember?; r4:Reference encounter?; @@ -378,7 +378,7 @@ public type UsCorePediatricHeadOccipitalFrontalCircumferencePercentileProfile re UsCorePediatricHeadOccipitalFrontalCircumferencePercentileProfileComponent[] component?; r4:Resource[] contained?; UsCorePediatricHeadOccipitalFrontalCircumferencePercentileProfileReferenceRange[] referenceRange?; - r4:dateTime effectiveDateTime; + r4:dateTime effectiveDateTime?; r4:CodeableConcept[] interpretation?; r4:Meta meta?; r4:uri implicitRules?; @@ -386,10 +386,6 @@ public type UsCorePediatricHeadOccipitalFrontalCircumferencePercentileProfile re minLength: { value: 1, message: "Validation failed for $.Observation.category constraint. This field must be an array containing at least one item." - }, - maxLength: { - value: 1, - message: "Validation failed for $.Observation.category constraint. This field must be an array containing at most one item." } } r4:CodeableConcept[] category; @@ -783,6 +779,7 @@ public type UsCorePediatricHeadOccipitalFrontalCircumferencePercentileProfileCod # + modifierExtension - May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself). # + valueCodeableConcept - Vital Sign Value recorded with UCUM. # + valueRatio - Vital Sign Value recorded with UCUM. +# + referenceRange - Guidance on how to interpret the value by comparison to a normal or recommended range. # + valueString - Vital Sign Value recorded with UCUM. # + interpretation - A categorical assessment of an observation value. For example, high, low, normal. # + valueSampledData - Vital Sign Value recorded with UCUM. @@ -876,6 +873,17 @@ public type UsCorePediatricHeadOccipitalFrontalCircumferencePercentileProfileCod description: "Vital Sign Value recorded with UCUM.", path: "Observation.component.value[x]" }, + + "referenceRange": { + name: "referenceRange", + dataType: UsCorePediatricHeadOccipitalFrontalCircumferencePercentileProfileReferenceRange, + min: 0, + max: int:MAX_VALUE, + isArray: true, + description: "Guidance on how to interpret the value by comparison to a normal or recommended range.", + path: "Observation.component.referenceRange" + }, + "valueString": { name: "valueString", dataType: string, @@ -966,6 +974,7 @@ public type UsCorePediatricHeadOccipitalFrontalCircumferencePercentileProfileCom r4:Extension[] modifierExtension?; r4:CodeableConcept valueCodeableConcept?; r4:Ratio valueRatio?; + UsCorePediatricHeadOccipitalFrontalCircumferencePercentileProfileReferenceRange [] referenceRange?; string valueString?; r4:CodeableConcept[] interpretation?; r4:SampledData valueSampledData?; diff --git a/uscore311/resource_uscore_care_plan_profile.bal b/uscore311/resource_uscore_care_plan_profile.bal index f462a49e..e8a8e0e2 100644 --- a/uscore311/resource_uscore_care_plan_profile.bal +++ b/uscore311/resource_uscore_care_plan_profile.bal @@ -1,4 +1,4 @@ -// Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com). +// Copyright (c) 2025, WSO2 LLC. (http://www.wso2.com). // WSO2 LLC. licenses this file to you under the Apache License, // Version 2.0 (the "License"); you may not use this file except @@ -13,7 +13,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. - +// // AUTO-GENERATED FILE. // This file is auto-generated by Ballerina. @@ -363,10 +363,6 @@ public type USCoreCarePlanProfile record {| minLength: { value: 1, message: "Validation failed for $.CarePlan.category constraint. This field must be an array containing at least one item." - }, - maxLength: { - value: 1, - message: "Validation failed for $.CarePlan.category constraint. This field must be an array containing at most one item." } } r4:CodeableConcept[] category; @@ -408,20 +404,20 @@ public enum USCoreCarePlanProfileActivityDetailStatus { # + kind - A description of the kind of resource the in-line definition of a care plan activity is representing. The CarePlan.activity.detail is an in-line definition when a resource is not referenced using CarePlan.activity.reference. For example, a MedicationRequest, a ServiceRequest, or a CommunicationRequest. # + modifierExtension - May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself). # + description - This provides a textual description of constraints on the intended activity occurrence, including relation to other activities. It may also include objectives, pre-conditions and end-conditions. Finally, it may convey specifics about the activity such as body site, method, route, etc. -# + productCarePlanCodeableConcept - Identifies the food, drug or other product to be consumed or supplied in the activity. +# + productReference - Identifies the food, drug or other product to be consumed or supplied in the activity. # + reasonReference - Indicates another resource, such as the health condition(s), whose existence justifies this request and drove the inclusion of this particular activity as part of the plan. -# + scheduledCarePlanPeriod - The period, timing or frequency upon which the described activity is to occur. # + instantiatesCanonical - The URL pointing to a FHIR-defined protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan activity. -# + scheduledCarePlanString - The period, timing or frequency upon which the described activity is to occur. # + instantiatesUri - The URL pointing to an externally maintained protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan activity. -# + productCarePlanReference - Identifies the food, drug or other product to be consumed or supplied in the activity. +# + scheduledString - The period, timing or frequency upon which the described activity is to occur. # + statusReason - Provides reason why the activity isn't yet started, is on hold, was cancelled, etc. +# + scheduledTiming - The period, timing or frequency upon which the described activity is to occur. +# + scheduledPeriod - The period, timing or frequency upon which the described activity is to occur. # + dailyAmount - Identifies the quantity expected to be consumed in a given day. # + location - Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc. # + id - Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. # + reasonCode - Provides the rationale that drove the inclusion of this particular activity as part of the plan or the reason why the activity was prohibited. # + doNotPerform - If true, indicates that the described activity is one that must NOT be engaged in when following the plan. If false, or missing, indicates that the described activity is one that should be engaged in when following the plan. -# + scheduledCarePlanTiming - The period, timing or frequency upon which the described activity is to occur. +# + productCodeableConcept - Identifies the food, drug or other product to be consumed or supplied in the activity. # + status - Identifies what progress is being made for the specific activity. @r4:DataTypeDefinition { name: "USCoreCarePlanProfileActivityDetail", @@ -499,9 +495,10 @@ public enum USCoreCarePlanProfileActivityDetailStatus { description: "This provides a textual description of constraints on the intended activity occurrence, including relation to other activities. It may also include objectives, pre-conditions and end-conditions. Finally, it may convey specifics about the activity such as body site, method, route, etc.", path: "CarePlan.activity.detail.description" }, - "productCarePlanCodeableConcept": { - name: "productCarePlanCodeableConcept", - dataType: r4:CodeableConcept, + + "productReference": { + name: "productReference", + dataType: r4:Reference, min: 0, max: 1, isArray: false, @@ -517,15 +514,7 @@ public enum USCoreCarePlanProfileActivityDetailStatus { description: "Indicates another resource, such as the health condition(s), whose existence justifies this request and drove the inclusion of this particular activity as part of the plan.", path: "CarePlan.activity.detail.reasonReference" }, - "scheduledCarePlanPeriod": { - name: "scheduledCarePlanPeriod", - dataType: r4:Period, - min: 0, - max: 1, - isArray: false, - description: "The period, timing or frequency upon which the described activity is to occur.", - path: "CarePlan.activity.detail.scheduled[x]" - }, + "instantiatesCanonical": { name: "instantiatesCanonical", dataType: r4:canonical, @@ -535,15 +524,7 @@ public enum USCoreCarePlanProfileActivityDetailStatus { description: "The URL pointing to a FHIR-defined protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan activity.", path: "CarePlan.activity.detail.instantiatesCanonical" }, - "scheduledCarePlanString": { - name: "scheduledCarePlanString", - dataType: string, - min: 0, - max: 1, - isArray: false, - description: "The period, timing or frequency upon which the described activity is to occur.", - path: "CarePlan.activity.detail.scheduled[x]" - }, + "instantiatesUri": { name: "instantiatesUri", dataType: r4:uri, @@ -553,14 +534,15 @@ public enum USCoreCarePlanProfileActivityDetailStatus { description: "The URL pointing to an externally maintained protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan activity.", path: "CarePlan.activity.detail.instantiatesUri" }, - "productCarePlanReference": { - name: "productCarePlanReference", - dataType: r4:Reference, + + "scheduledString": { + name: "scheduledString", + dataType: string, min: 0, max: 1, isArray: false, - description: "Identifies the food, drug or other product to be consumed or supplied in the activity.", - path: "CarePlan.activity.detail.product[x]" + description: "The period, timing or frequency upon which the described activity is to occur.", + path: "CarePlan.activity.detail.scheduled[x]" }, "statusReason": { name: "statusReason", @@ -571,6 +553,27 @@ public enum USCoreCarePlanProfileActivityDetailStatus { description: "Provides reason why the activity isn't yet started, is on hold, was cancelled, etc.", path: "CarePlan.activity.detail.statusReason" }, + + "scheduledTiming": { + name: "scheduledTiming", + dataType: r4:Timing, + min: 0, + max: 1, + isArray: false, + description: "The period, timing or frequency upon which the described activity is to occur.", + path: "CarePlan.activity.detail.scheduled[x]" + }, + + "scheduledPeriod": { + name: "scheduledPeriod", + dataType: r4:Period, + min: 0, + max: 1, + isArray: false, + description: "The period, timing or frequency upon which the described activity is to occur.", + path: "CarePlan.activity.detail.scheduled[x]" + }, + "dailyAmount": { name: "dailyAmount", dataType: r4:Quantity, @@ -616,14 +619,15 @@ public enum USCoreCarePlanProfileActivityDetailStatus { description: "If true, indicates that the described activity is one that must NOT be engaged in when following the plan. If false, or missing, indicates that the described activity is one that should be engaged in when following the plan.", path: "CarePlan.activity.detail.doNotPerform" }, - "scheduledCarePlanTiming": { - name: "scheduledCarePlanTiming", - dataType: r4:Timing, + + "productCodeableConcept": { + name: "productCodeableConcept", + dataType: r4:CodeableConcept, min: 0, max: 1, isArray: false, - description: "The period, timing or frequency upon which the described activity is to occur.", - path: "CarePlan.activity.detail.scheduled[x]" + description: "Identifies the food, drug or other product to be consumed or supplied in the activity.", + path: "CarePlan.activity.detail.product[x]" }, "status": { name: "status", @@ -651,20 +655,20 @@ public type USCoreCarePlanProfileActivityDetail record {| USCoreCarePlanProfileActivityDetailKind kind?; r4:Extension[] modifierExtension?; string description?; - r4:CodeableConcept productCarePlanCodeableConcept?; + r4:Reference productReference?; r4:Reference[] reasonReference?; - r4:Period scheduledCarePlanPeriod?; r4:canonical[] instantiatesCanonical?; - string scheduledCarePlanString?; r4:uri[] instantiatesUri?; - r4:Reference productCarePlanReference?; + string scheduledString?; r4:CodeableConcept statusReason?; + r4:Timing scheduledTiming?; + r4:Period scheduledPeriod?; r4:Quantity dailyAmount?; r4:Reference location?; string id?; r4:CodeableConcept[] reasonCode?; boolean doNotPerform?; - r4:Timing scheduledCarePlanTiming?; + r4:CodeableConcept productCodeableConcept?; USCoreCarePlanProfileActivityDetailStatus status; |}; diff --git a/uscore311/resource_uscore_care_team.bal b/uscore311/resource_uscore_care_team.bal index 21901da9..ad564266 100644 --- a/uscore311/resource_uscore_care_team.bal +++ b/uscore311/resource_uscore_care_team.bal @@ -1,4 +1,4 @@ -// Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com). +// Copyright (c) 2025, WSO2 LLC. (http://www.wso2.com). // WSO2 LLC. licenses this file to you under the Apache License, // Version 2.0 (the "License"); you may not use this file except @@ -13,7 +13,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. - +// // AUTO-GENERATED FILE. // This file is auto-generated by Ballerina. @@ -248,10 +248,6 @@ public type USCoreCareTeam record {| minLength: { value: 1, message: "Validation failed for $.CareTeam.participant constraint. This field must be an array containing at least one item." - }, - maxLength: { - value: 1, - message: "Validation failed for $.CareTeam.participant constraint. This field must be an array containing at most one item." } } USCoreCareTeamParticipant[] participant; diff --git a/uscore311/resource_uscore_condition.bal b/uscore311/resource_uscore_condition.bal index fd1e1808..a99f44b9 100644 --- a/uscore311/resource_uscore_condition.bal +++ b/uscore311/resource_uscore_condition.bal @@ -1,4 +1,4 @@ -// Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com). +// Copyright (c) 2025, WSO2 LLC. (http://www.wso2.com). // WSO2 LLC. licenses this file to you under the Apache License, // Version 2.0 (the "License"); you may not use this file except @@ -13,7 +13,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. - +// // AUTO-GENERATED FILE. // This file is auto-generated by Ballerina. @@ -381,10 +381,6 @@ public type USCoreCondition record {| minLength: { value: 1, message: "Validation failed for $.Condition.category constraint. This field must be an array containing at least one item." - }, - maxLength: { - value: 1, - message: "Validation failed for $.Condition.category constraint. This field must be an array containing at most one item." } } r4:CodeableConcept[] category; diff --git a/uscore311/resource_uscore_diagnostic_report_profile_laboratory_reporting.bal b/uscore311/resource_uscore_diagnostic_report_profile_laboratory_reporting.bal index 86fbc6ba..cd57c19d 100644 --- a/uscore311/resource_uscore_diagnostic_report_profile_laboratory_reporting.bal +++ b/uscore311/resource_uscore_diagnostic_report_profile_laboratory_reporting.bal @@ -1,4 +1,4 @@ -// Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com). +// Copyright (c) 2025, WSO2 LLC. (http://www.wso2.com). // WSO2 LLC. licenses this file to you under the Apache License, // Version 2.0 (the "License"); you may not use this file except @@ -13,7 +13,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. - +// // AUTO-GENERATED FILE. // This file is auto-generated by Ballerina. @@ -196,7 +196,7 @@ public const RESOURCE_NAME_USCOREDIAGNOSTICREPORTPROFILELABORATORYREPORTING = "D "effectivePeriod" : { name: "effectivePeriod", dataType: r4:Period, - min: 1, + min: 0, max: 1, isArray: false, path: "DiagnosticReport.effective[x]" @@ -237,7 +237,7 @@ public const RESOURCE_NAME_USCOREDIAGNOSTICREPORTPROFILELABORATORYREPORTING = "D "effectiveDateTime" : { name: "effectiveDateTime", dataType: r4:dateTime, - min: 1, + min: 0, max: 1, isArray: false, path: "DiagnosticReport.effective[x]" @@ -311,22 +311,18 @@ public type USCoreDiagnosticReportProfileLaboratoryReporting record {| r4:Reference[] basedOn?; r4:Identifier[] identifier?; r4:Reference[] performer?; - r4:Period effectivePeriod; + r4:Period effectivePeriod?; r4:Reference[] resultsInterpreter?; r4:CodeableConcept[] conclusionCode?; r4:Reference encounter?; r4:Resource[] contained?; - r4:dateTime effectiveDateTime; + r4:dateTime effectiveDateTime?; r4:Meta meta?; r4:uri implicitRules?; @constraint:Array { minLength: { value: 1, message: "Validation failed for $.DiagnosticReport.category constraint. This field must be an array containing at least one item." - }, - maxLength: { - value: 1, - message: "Validation failed for $.DiagnosticReport.category constraint. This field must be an array containing at most one item." } } r4:CodeableConcept[] category; diff --git a/uscore311/resource_uscore_diagnostic_report_profile_note_exchange.bal b/uscore311/resource_uscore_diagnostic_report_profile_note_exchange.bal index e60b3062..c6483932 100644 --- a/uscore311/resource_uscore_diagnostic_report_profile_note_exchange.bal +++ b/uscore311/resource_uscore_diagnostic_report_profile_note_exchange.bal @@ -1,4 +1,4 @@ -// Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com). +// Copyright (c) 2025, WSO2 LLC. (http://www.wso2.com). // WSO2 LLC. licenses this file to you under the Apache License, // Version 2.0 (the "License"); you may not use this file except @@ -13,7 +13,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. - +// // AUTO-GENERATED FILE. // This file is auto-generated by Ballerina. @@ -191,7 +191,7 @@ public const RESOURCE_NAME_USCOREDIAGNOSTICREPORTPROFILENOTEEXCHANGE = "Diagnost "effectivePeriod" : { name: "effectivePeriod", dataType: r4:Period, - min: 1, + min: 0, max: 1, isArray: false, path: "DiagnosticReport.effective[x]" @@ -232,7 +232,7 @@ public const RESOURCE_NAME_USCOREDIAGNOSTICREPORTPROFILENOTEEXCHANGE = "Diagnost "effectiveDateTime" : { name: "effectiveDateTime", dataType: r4:dateTime, - min: 1, + min: 0, max: 1, isArray: false, path: "DiagnosticReport.effective[x]" @@ -306,22 +306,18 @@ public type USCoreDiagnosticReportProfileNoteExchange record {| r4:Reference[] basedOn?; r4:Identifier[] identifier?; r4:Reference[] performer?; - r4:Period effectivePeriod; + r4:Period effectivePeriod?; r4:Reference[] resultsInterpreter?; r4:CodeableConcept[] conclusionCode?; r4:Reference encounter?; r4:Resource[] contained?; - r4:dateTime effectiveDateTime; + r4:dateTime effectiveDateTime?; r4:Meta meta?; r4:uri implicitRules?; @constraint:Array { minLength: { value: 1, message: "Validation failed for $.DiagnosticReport.category constraint. This field must be an array containing at least one item." - }, - maxLength: { - value: 1, - message: "Validation failed for $.DiagnosticReport.category constraint. This field must be an array containing at most one item." } } r4:CodeableConcept[] category; diff --git a/uscore311/resource_uscore_document_reference_profile.bal b/uscore311/resource_uscore_document_reference_profile.bal index 94b1af68..7be87a95 100644 --- a/uscore311/resource_uscore_document_reference_profile.bal +++ b/uscore311/resource_uscore_document_reference_profile.bal @@ -1,4 +1,4 @@ -// Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com). +// Copyright (c) 2025, WSO2 LLC. (http://www.wso2.com). // WSO2 LLC. licenses this file to you under the Apache License, // Version 2.0 (the "License"); you may not use this file except @@ -13,7 +13,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. - +// // AUTO-GENERATED FILE. // This file is auto-generated by Ballerina. @@ -280,10 +280,6 @@ public type USCoreDocumentReferenceProfile record {| minLength: { value: 1, message: "Validation failed for $.DocumentReference.content constraint. This field must be an array containing at least one item." - }, - maxLength: { - value: 1, - message: "Validation failed for $.DocumentReference.content constraint. This field must be an array containing at most one item." } } USCoreDocumentReferenceProfileContent[] content; @@ -298,10 +294,6 @@ public type USCoreDocumentReferenceProfile record {| minLength: { value: 1, message: "Validation failed for $.DocumentReference.category constraint. This field must be an array containing at least one item." - }, - maxLength: { - value: 1, - message: "Validation failed for $.DocumentReference.category constraint. This field must be an array containing at most one item." } } r4:CodeableConcept[] category; diff --git a/uscore311/resource_uscore_encounter_profile.bal b/uscore311/resource_uscore_encounter_profile.bal index 13a08000..f49750aa 100644 --- a/uscore311/resource_uscore_encounter_profile.bal +++ b/uscore311/resource_uscore_encounter_profile.bal @@ -1,4 +1,4 @@ -// Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com). +// Copyright (c) 2025, WSO2 LLC. (http://www.wso2.com). // WSO2 LLC. licenses this file to you under the Apache License, // Version 2.0 (the "License"); you may not use this file except @@ -13,7 +13,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. - +// // AUTO-GENERATED FILE. // This file is auto-generated by Ballerina. @@ -340,10 +340,6 @@ public type USCoreEncounterProfile record {| minLength: { value: 1, message: "Validation failed for $.Encounter.type constraint. This field must be an array containing at least one item." - }, - maxLength: { - value: 1, - message: "Validation failed for $.Encounter.type constraint. This field must be an array containing at most one item." } } r4:CodeableConcept[] 'type; diff --git a/uscore311/resource_uscore_immunization_profile.bal b/uscore311/resource_uscore_immunization_profile.bal index 40f3e562..ee6112a4 100644 --- a/uscore311/resource_uscore_immunization_profile.bal +++ b/uscore311/resource_uscore_immunization_profile.bal @@ -1,4 +1,4 @@ -// Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com). +// Copyright (c) 2025, WSO2 LLC. (http://www.wso2.com). // WSO2 LLC. licenses this file to you under the Apache License, // Version 2.0 (the "License"); you may not use this file except @@ -13,7 +13,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. - +// // AUTO-GENERATED FILE. // This file is auto-generated by Ballerina. @@ -343,7 +343,7 @@ public const RESOURCE_NAME_USCOREIMMUNIZATIONPROFILE = "Immunization"; "occurrenceDateTime" : { name: "occurrenceDateTime", dataType: r4:dateTime, - min: 1, + min: 0, max: 1, isArray: false, path: "Immunization.occurrence[x]" @@ -351,7 +351,7 @@ public const RESOURCE_NAME_USCOREIMMUNIZATIONPROFILE = "Immunization"; "occurrenceString" : { name: "occurrenceString", dataType: string, - min: 1, + min: 0, max: 1, isArray: false, path: "Immunization.occurrence[x]" @@ -418,8 +418,8 @@ public type USCoreImmunizationProfile record {| r4:uri implicitRules?; r4:CodeableConcept reportOrigin?; r4:Reference location?; - r4:dateTime occurrenceDateTime; - string occurrenceString; + r4:dateTime occurrenceDateTime?; + string occurrenceString?; r4:CodeableConcept fundingSource?; USCoreImmunizationProfileStatus status; r4:Element ...; @@ -527,7 +527,7 @@ public type USCoreImmunizationProfileReaction record {| "doseNumberString": { name: "doseNumberString", dataType: string, - min: 1, + min: 0, max: 1, isArray: false, description: "Nominal position in a series.", @@ -572,7 +572,7 @@ public type USCoreImmunizationProfileReaction record {| "doseNumberPositiveInt": { name: "doseNumberPositiveInt", dataType: r4:positiveInt, - min: 1, + min: 0, max: 1, isArray: false, description: "Nominal position in a series.", @@ -623,12 +623,12 @@ public type USCoreImmunizationProfileReaction record {| public type USCoreImmunizationProfileProtocolApplied record {| *r4:BackboneElement; - string doseNumberString; + string doseNumberString?; r4:Extension[] extension?; r4:positiveInt seriesDosesPositiveInt?; string series?; r4:Reference authority?; - r4:positiveInt doseNumberPositiveInt; + r4:positiveInt doseNumberPositiveInt?; r4:Extension[] modifierExtension?; r4:CodeableConcept[] targetDisease?; string seriesDosesString?; diff --git a/uscore311/resource_uscore_laboratory_result_observation_profile.bal b/uscore311/resource_uscore_laboratory_result_observation_profile.bal index d4df2521..67b21435 100644 --- a/uscore311/resource_uscore_laboratory_result_observation_profile.bal +++ b/uscore311/resource_uscore_laboratory_result_observation_profile.bal @@ -1,4 +1,4 @@ -// Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com). +// Copyright (c) 2025, WSO2 LLC. (http://www.wso2.com). // WSO2 LLC. licenses this file to you under the Apache License, // Version 2.0 (the "License"); you may not use this file except @@ -13,7 +13,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. - +// // AUTO-GENERATED FILE. // This file is auto-generated by Ballerina. @@ -486,10 +486,6 @@ public type USCoreLaboratoryResultObservationProfile record {| minLength: { value: 1, message: "Validation failed for $.Observation.category constraint. This field must be an array containing at least one item." - }, - maxLength: { - value: 1, - message: "Validation failed for $.Observation.category constraint. This field must be an array containing at most one item." } } r4:CodeableConcept[] category; @@ -710,6 +706,7 @@ public type USCoreLaboratoryResultObservationProfileCategoryCoding record {| # + modifierExtension - May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself). # + valueCodeableConcept - The information determined as a result of making the observation, if the information has a simple value. # + valueRatio - The information determined as a result of making the observation, if the information has a simple value. +# + referenceRange - Guidance on how to interpret the value by comparison to a normal or recommended range. # + valueString - The information determined as a result of making the observation, if the information has a simple value. # + interpretation - A categorical assessment of an observation value. For example, high, low, normal. # + valueSampledData - The information determined as a result of making the observation, if the information has a simple value. @@ -803,6 +800,17 @@ public type USCoreLaboratoryResultObservationProfileCategoryCoding record {| description: "The information determined as a result of making the observation, if the information has a simple value.", path: "Observation.component.value[x]" }, + + "referenceRange": { + name: "referenceRange", + dataType: USCoreLaboratoryResultObservationProfileReferenceRange, + min: 0, + max: int:MAX_VALUE, + isArray: true, + description: "Guidance on how to interpret the value by comparison to a normal or recommended range.", + path: "Observation.component.referenceRange" + }, + "valueString": { name: "valueString", dataType: string, @@ -893,6 +901,7 @@ public type USCoreLaboratoryResultObservationProfileComponent record {| r4:Extension[] modifierExtension?; r4:CodeableConcept valueCodeableConcept?; r4:Ratio valueRatio?; + USCoreLaboratoryResultObservationProfileReferenceRange [] referenceRange?; string valueString?; r4:CodeableConcept[] interpretation?; r4:SampledData valueSampledData?; diff --git a/uscore311/resource_uscore_medication_profile.bal b/uscore311/resource_uscore_medication_profile.bal index a53fd235..d9878eab 100644 --- a/uscore311/resource_uscore_medication_profile.bal +++ b/uscore311/resource_uscore_medication_profile.bal @@ -1,4 +1,4 @@ -// Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com). +// Copyright (c) 2025, WSO2 LLC. (http://www.wso2.com). // WSO2 LLC. licenses this file to you under the Apache License, // Version 2.0 (the "License"); you may not use this file except @@ -13,7 +13,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. - +// // AUTO-GENERATED FILE. // This file is auto-generated by Ballerina. @@ -303,7 +303,7 @@ public enum USCoreMedicationProfileStatus { "itemReference": { name: "itemReference", dataType: r4:Reference, - min: 1, + min: 0, max: 1, isArray: false, description: "The actual ingredient - either a substance (simple ingredient) or another medication of a medication.", @@ -330,7 +330,7 @@ public enum USCoreMedicationProfileStatus { "itemCodeableConcept": { name: "itemCodeableConcept", dataType: r4:CodeableConcept, - min: 1, + min: 0, max: 1, isArray: false, description: "The actual ingredient - either a substance (simple ingredient) or another medication of a medication.", @@ -372,10 +372,10 @@ public enum USCoreMedicationProfileStatus { public type USCoreMedicationProfileIngredient record {| *r4:BackboneElement; - r4:Reference itemReference; + r4:Reference itemReference?; r4:Extension[] extension?; r4:Ratio strength?; - r4:CodeableConcept itemCodeableConcept; + r4:CodeableConcept itemCodeableConcept?; r4:Extension[] modifierExtension?; string id?; boolean isActive?; diff --git a/uscore311/resource_uscore_medication_request_profile.bal b/uscore311/resource_uscore_medication_request_profile.bal index d163878a..98d0b0a4 100644 --- a/uscore311/resource_uscore_medication_request_profile.bal +++ b/uscore311/resource_uscore_medication_request_profile.bal @@ -1,4 +1,4 @@ -// Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com). +// Copyright (c) 2025, WSO2 LLC. (http://www.wso2.com). // WSO2 LLC. licenses this file to you under the Apache License, // Version 2.0 (the "License"); you may not use this file except @@ -13,7 +13,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. - +// // AUTO-GENERATED FILE. // This file is auto-generated by Ballerina. @@ -165,7 +165,7 @@ public const RESOURCE_NAME_USCOREMEDICATIONREQUESTPROFILE = "MedicationRequest"; "medicationReference" : { name: "medicationReference", dataType: r4:Reference, - min: 1, + min: 0, max: 1, isArray: false, path: "MedicationRequest.medication[x]", @@ -320,7 +320,7 @@ public const RESOURCE_NAME_USCOREMEDICATIONREQUESTPROFILE = "MedicationRequest"; "medicationCodeableConcept" : { name: "medicationCodeableConcept", dataType: r4:CodeableConcept, - min: 1, + min: 0, max: 1, isArray: false, path: "MedicationRequest.medication[x]", @@ -441,7 +441,7 @@ public type USCoreMedicationRequestProfile record {| r4:Reference[] reasonReference?; r4:code language?; r4:uri[] instantiatesUri?; - r4:Reference medicationReference; + r4:Reference medicationReference?; r4:Reference reportedReference?; r4:CodeableConcept statusReason?; USCoreMedicationRequestProfileDispenseRequest dispenseRequest?; @@ -460,7 +460,7 @@ public type USCoreMedicationRequestProfile record {| r4:Reference[] supportingInformation?; r4:Reference encounter?; r4:canonical[] instantiatesCanonical?; - r4:CodeableConcept medicationCodeableConcept; + r4:CodeableConcept medicationCodeableConcept?; USCoreMedicationRequestProfilePriority priority?; USCoreMedicationRequestProfileIntent intent; r4:CodeableConcept performerType?; @@ -502,7 +502,7 @@ public enum USCoreMedicationRequestProfileIntent { "allowedCodeableConcept": { name: "allowedCodeableConcept", dataType: r4:CodeableConcept, - min: 1, + min: 0, max: 1, isArray: false, description: "True if the prescriber allows a different drug to be dispensed from what was prescribed.", @@ -538,7 +538,7 @@ public enum USCoreMedicationRequestProfileIntent { "allowedBoolean": { name: "allowedBoolean", dataType: boolean, - min: 1, + min: 0, max: 1, isArray: false, description: "True if the prescriber allows a different drug to be dispensed from what was prescribed.", @@ -562,11 +562,11 @@ public enum USCoreMedicationRequestProfileIntent { public type USCoreMedicationRequestProfileSubstitution record {| *r4:BackboneElement; - r4:CodeableConcept allowedCodeableConcept; + r4:CodeableConcept allowedCodeableConcept?; r4:CodeableConcept reason?; r4:Extension[] extension?; r4:Extension[] modifierExtension?; - boolean allowedBoolean; + boolean allowedBoolean?; string id?; |}; diff --git a/uscore311/resource_uscore_patient_profile.bal b/uscore311/resource_uscore_patient_profile.bal index aea316e4..a8629cd7 100644 --- a/uscore311/resource_uscore_patient_profile.bal +++ b/uscore311/resource_uscore_patient_profile.bal @@ -1,4 +1,4 @@ -// Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com). +// Copyright (c) 2025, WSO2 LLC. (http://www.wso2.com). // WSO2 LLC. licenses this file to you under the Apache License, // Version 2.0 (the "License"); you may not use this file except @@ -13,7 +13,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. - +// // AUTO-GENERATED FILE. // This file is auto-generated by Ballerina. @@ -23,6 +23,8 @@ import ballerinax/health.fhir.r4; public const string PROFILE_BASE_USCOREPATIENTPROFILE = "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient"; public const RESOURCE_NAME_USCOREPATIENTPROFILE = "Patient"; +public type USCorePatientProfileExtensions (r4:Extension | UsCoreBirthsex | UsCoreEthnicity | UsCoreRace ); + # FHIR USCorePatientProfile resource record. # # + resourceType - The type of the resource describes @@ -295,10 +297,6 @@ public type USCorePatientProfile record {| minLength: { value: 1, message: "Validation failed for $.Patient.identifier constraint. This field must be an array containing at least one item." - }, - maxLength: { - value: 1, - message: "Validation failed for $.Patient.identifier constraint. This field must be an array containing at most one item." } } USCorePatientProfileIdentifier[] identifier; @@ -316,10 +314,6 @@ public type USCorePatientProfile record {| minLength: { value: 1, message: "Validation failed for $.Patient.name constraint. This field must be an array containing at least one item." - }, - maxLength: { - value: 1, - message: "Validation failed for $.Patient.name constraint. This field must be an array containing at most one item." } } USCorePatientProfileName[] name; diff --git a/uscore311/resource_uscore_pediatric_bmifor_age_observation_profile.bal b/uscore311/resource_uscore_pediatric_bmifor_age_observation_profile.bal index 559c906d..dc1b54c0 100644 --- a/uscore311/resource_uscore_pediatric_bmifor_age_observation_profile.bal +++ b/uscore311/resource_uscore_pediatric_bmifor_age_observation_profile.bal @@ -1,4 +1,4 @@ -// Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com). +// Copyright (c) 2025, WSO2 LLC. (http://www.wso2.com). // WSO2 LLC. licenses this file to you under the Apache License, // Version 2.0 (the "License"); you may not use this file except @@ -13,7 +13,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. - +// // AUTO-GENERATED FILE. // This file is auto-generated by Ballerina. @@ -219,7 +219,7 @@ public const RESOURCE_NAME_USCOREPEDIATRICBMIFORAGEOBSERVATIONPROFILE = "Observa "effectivePeriod" : { name: "effectivePeriod", dataType: r4:Period, - min: 1, + min: 0, max: 1, isArray: false, path: "Observation.effective[x]" @@ -285,7 +285,7 @@ public const RESOURCE_NAME_USCOREPEDIATRICBMIFORAGEOBSERVATIONPROFILE = "Observa "effectiveDateTime" : { name: "effectiveDateTime", dataType: r4:dateTime, - min: 1, + min: 0, max: 1, isArray: false, path: "Observation.effective[x]" @@ -370,7 +370,7 @@ public type USCorePediatricBMIforAgeObservationProfile record {| USCorePediatricBMIforAgeObservationProfileValue valueQuantity?; r4:Identifier[] identifier?; r4:Reference[] performer?; - r4:Period effectivePeriod; + r4:Period effectivePeriod?; r4:CodeableConcept method?; r4:Reference[] hasMember?; r4:Reference encounter?; @@ -378,7 +378,7 @@ public type USCorePediatricBMIforAgeObservationProfile record {| USCorePediatricBMIforAgeObservationProfileComponent[] component?; r4:Resource[] contained?; USCorePediatricBMIforAgeObservationProfileReferenceRange[] referenceRange?; - r4:dateTime effectiveDateTime; + r4:dateTime effectiveDateTime?; r4:CodeableConcept[] interpretation?; r4:Meta meta?; r4:uri implicitRules?; @@ -386,10 +386,6 @@ public type USCorePediatricBMIforAgeObservationProfile record {| minLength: { value: 1, message: "Validation failed for $.Observation.category constraint. This field must be an array containing at least one item." - }, - maxLength: { - value: 1, - message: "Validation failed for $.Observation.category constraint. This field must be an array containing at most one item." } } r4:CodeableConcept[] category; @@ -877,6 +873,7 @@ public type USCorePediatricBMIforAgeObservationProfileCategoryCoding record {| # + modifierExtension - May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself). # + valueCodeableConcept - Vital Sign Value recorded with UCUM. # + valueRatio - Vital Sign Value recorded with UCUM. +# + referenceRange - Guidance on how to interpret the value by comparison to a normal or recommended range. # + valueString - Vital Sign Value recorded with UCUM. # + interpretation - A categorical assessment of an observation value. For example, high, low, normal. # + valueSampledData - Vital Sign Value recorded with UCUM. @@ -970,6 +967,17 @@ public type USCorePediatricBMIforAgeObservationProfileCategoryCoding record {| description: "Vital Sign Value recorded with UCUM.", path: "Observation.component.value[x]" }, + + "referenceRange": { + name: "referenceRange", + dataType: USCorePediatricBMIforAgeObservationProfileReferenceRange, + min: 0, + max: int:MAX_VALUE, + isArray: true, + description: "Guidance on how to interpret the value by comparison to a normal or recommended range.", + path: "Observation.component.referenceRange" + }, + "valueString": { name: "valueString", dataType: string, @@ -1060,6 +1068,7 @@ public type USCorePediatricBMIforAgeObservationProfileComponent record {| r4:Extension[] modifierExtension?; r4:CodeableConcept valueCodeableConcept?; r4:Ratio valueRatio?; + USCorePediatricBMIforAgeObservationProfileReferenceRange [] referenceRange?; string valueString?; r4:CodeableConcept[] interpretation?; r4:SampledData valueSampledData?; diff --git a/uscore311/resource_uscore_pediatric_weight_for_height_observation_profile.bal b/uscore311/resource_uscore_pediatric_weight_for_height_observation_profile.bal index 75c0d1c5..3c23dff5 100644 --- a/uscore311/resource_uscore_pediatric_weight_for_height_observation_profile.bal +++ b/uscore311/resource_uscore_pediatric_weight_for_height_observation_profile.bal @@ -1,4 +1,4 @@ -// Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com). +// Copyright (c) 2025, WSO2 LLC. (http://www.wso2.com). // WSO2 LLC. licenses this file to you under the Apache License, // Version 2.0 (the "License"); you may not use this file except @@ -13,7 +13,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. - +// // AUTO-GENERATED FILE. // This file is auto-generated by Ballerina. @@ -219,7 +219,7 @@ public const RESOURCE_NAME_USCOREPEDIATRICWEIGHTFORHEIGHTOBSERVATIONPROFILE = "O "effectivePeriod" : { name: "effectivePeriod", dataType: r4:Period, - min: 1, + min: 0, max: 1, isArray: false, path: "Observation.effective[x]" @@ -285,7 +285,7 @@ public const RESOURCE_NAME_USCOREPEDIATRICWEIGHTFORHEIGHTOBSERVATIONPROFILE = "O "effectiveDateTime" : { name: "effectiveDateTime", dataType: r4:dateTime, - min: 1, + min: 0, max: 1, isArray: false, path: "Observation.effective[x]" @@ -370,7 +370,7 @@ public type USCorePediatricWeightForHeightObservationProfile record {| USCorePediatricWeightForHeightObservationProfileValue valueQuantity?; r4:Identifier[] identifier?; r4:Reference[] performer?; - r4:Period effectivePeriod; + r4:Period effectivePeriod?; r4:CodeableConcept method?; r4:Reference[] hasMember?; r4:Reference encounter?; @@ -378,7 +378,7 @@ public type USCorePediatricWeightForHeightObservationProfile record {| USCorePediatricWeightForHeightObservationProfileComponent[] component?; r4:Resource[] contained?; USCorePediatricWeightForHeightObservationProfileReferenceRange[] referenceRange?; - r4:dateTime effectiveDateTime; + r4:dateTime effectiveDateTime?; r4:CodeableConcept[] interpretation?; r4:Meta meta?; r4:uri implicitRules?; @@ -386,10 +386,6 @@ public type USCorePediatricWeightForHeightObservationProfile record {| minLength: { value: 1, message: "Validation failed for $.Observation.category constraint. This field must be an array containing at least one item." - }, - maxLength: { - value: 1, - message: "Validation failed for $.Observation.category constraint. This field must be an array containing at most one item." } } r4:CodeableConcept[] category; @@ -455,6 +451,7 @@ public enum USCorePediatricWeightForHeightObservationProfileValueComparator { # + modifierExtension - May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself). # + valueCodeableConcept - Vital Sign Value recorded with UCUM. # + valueRatio - Vital Sign Value recorded with UCUM. +# + referenceRange - Guidance on how to interpret the value by comparison to a normal or recommended range. # + valueString - Vital Sign Value recorded with UCUM. # + interpretation - A categorical assessment of an observation value. For example, high, low, normal. # + valueSampledData - Vital Sign Value recorded with UCUM. @@ -548,6 +545,17 @@ public enum USCorePediatricWeightForHeightObservationProfileValueComparator { description: "Vital Sign Value recorded with UCUM.", path: "Observation.component.value[x]" }, + + "referenceRange": { + name: "referenceRange", + dataType: USCorePediatricWeightForHeightObservationProfileReferenceRange, + min: 0, + max: int:MAX_VALUE, + isArray: true, + description: "Guidance on how to interpret the value by comparison to a normal or recommended range.", + path: "Observation.component.referenceRange" + }, + "valueString": { name: "valueString", dataType: string, @@ -638,6 +646,7 @@ public type USCorePediatricWeightForHeightObservationProfileComponent record {| r4:Extension[] modifierExtension?; r4:CodeableConcept valueCodeableConcept?; r4:Ratio valueRatio?; + USCorePediatricWeightForHeightObservationProfileReferenceRange [] referenceRange?; string valueString?; r4:CodeableConcept[] interpretation?; r4:SampledData valueSampledData?; diff --git a/uscore311/resource_uscore_practitioner_profile.bal b/uscore311/resource_uscore_practitioner_profile.bal index e3c6a25b..13ba0301 100644 --- a/uscore311/resource_uscore_practitioner_profile.bal +++ b/uscore311/resource_uscore_practitioner_profile.bal @@ -1,4 +1,4 @@ -// Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com). +// Copyright (c) 2025, WSO2 LLC. (http://www.wso2.com). // WSO2 LLC. licenses this file to you under the Apache License, // Version 2.0 (the "License"); you may not use this file except @@ -13,7 +13,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. - +// // AUTO-GENERATED FILE. // This file is auto-generated by Ballerina. @@ -216,10 +216,6 @@ public type USCorePractitionerProfile record {| minLength: { value: 1, message: "Validation failed for $.Practitioner.identifier constraint. This field must be an array containing at least one item." - }, - maxLength: { - value: 1, - message: "Validation failed for $.Practitioner.identifier constraint. This field must be an array containing at most one item." } } USCorePractitionerProfileIdentifier[] identifier; @@ -238,10 +234,6 @@ public type USCorePractitionerProfile record {| minLength: { value: 1, message: "Validation failed for $.Practitioner.name constraint. This field must be an array containing at least one item." - }, - maxLength: { - value: 1, - message: "Validation failed for $.Practitioner.name constraint. This field must be an array containing at most one item." } } USCorePractitionerProfileName[] name; diff --git a/uscore311/resource_uscore_procedure_profile.bal b/uscore311/resource_uscore_procedure_profile.bal index 7f28eb57..b0dfd38d 100644 --- a/uscore311/resource_uscore_procedure_profile.bal +++ b/uscore311/resource_uscore_procedure_profile.bal @@ -1,4 +1,4 @@ -// Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com). +// Copyright (c) 2025, WSO2 LLC. (http://www.wso2.com). // WSO2 LLC. licenses this file to you under the Apache License, // Version 2.0 (the "License"); you may not use this file except @@ -13,7 +13,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. - +// // AUTO-GENERATED FILE. // This file is auto-generated by Ballerina. @@ -153,7 +153,7 @@ public const RESOURCE_NAME_USCOREPROCEDUREPROFILE = "Procedure"; "performedPeriod" : { name: "performedPeriod", dataType: r4:Period, - min: 1, + min: 0, max: 1, isArray: false, path: "Procedure.performed[x]" @@ -213,7 +213,7 @@ public const RESOURCE_NAME_USCOREPROCEDUREPROFILE = "Procedure"; "performedDateTime" : { name: "performedDateTime", dataType: r4:dateTime, - min: 1, + min: 0, max: 1, isArray: false, path: "Procedure.performed[x]" @@ -395,14 +395,14 @@ public type USCoreProcedureProfile record {| r4:Reference[] reasonReference?; r4:code language?; r4:uri[] instantiatesUri?; - r4:Period performedPeriod; + r4:Period performedPeriod?; r4:CodeableConcept[] followUp?; r4:CodeableConcept statusReason?; r4:CodeableConcept[] usedCode?; string id?; r4:CodeableConcept[] reasonCode?; r4:Narrative text?; - r4:dateTime performedDateTime; + r4:dateTime performedDateTime?; r4:Reference[] basedOn?; r4:CodeableConcept outcome?; r4:Identifier[] identifier?; diff --git a/uscore311/resource_uscore_provenance.bal b/uscore311/resource_uscore_provenance.bal index cbf2ee0c..1ed524ba 100644 --- a/uscore311/resource_uscore_provenance.bal +++ b/uscore311/resource_uscore_provenance.bal @@ -1,4 +1,4 @@ -// Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com). +// Copyright (c) 2025, WSO2 LLC. (http://www.wso2.com). // WSO2 LLC. licenses this file to you under the Apache License, // Version 2.0 (the "License"); you may not use this file except @@ -13,7 +13,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. - +// // AUTO-GENERATED FILE. // This file is auto-generated by Ballerina. @@ -230,10 +230,6 @@ public type USCoreProvenance record {| minLength: { value: 1, message: "Validation failed for $.Provenance.agent constraint. This field must be an array containing at least one item." - }, - maxLength: { - value: 1, - message: "Validation failed for $.Provenance.agent constraint. This field must be an array containing at most one item." } } USCoreProvenanceAgent[] agent; @@ -248,10 +244,6 @@ public type USCoreProvenance record {| minLength: { value: 1, message: "Validation failed for $.Provenance.target constraint. This field must be an array containing at least one item." - }, - maxLength: { - value: 1, - message: "Validation failed for $.Provenance.target constraint. This field must be an array containing at most one item." } } r4:Reference[] target; @@ -356,6 +348,7 @@ public enum USCoreProvenanceEntityRole { # FHIR USCoreProvenanceEntity datatype record. # +# + agent - The entity is attributed to an agent to express the agent's responsibility for that entity, possibly along with other agents. This description can be understood as shorthand for saying that the agent was responsible for the activity which generated the entity. # + extension - May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. # + role - How the entity was used during the activity. # + what - Identity of the Entity used. May be a logical or physical uri and maybe absolute or relative. @@ -365,6 +358,16 @@ public enum USCoreProvenanceEntityRole { name: "USCoreProvenanceEntity", baseType: (), elements: { + "agent": { + name: "agent", + dataType: USCoreProvenanceAgentProvenanceTransmitter, + min: 0, + max: int:MAX_VALUE, + isArray: true, + description: "The entity is attributed to an agent to express the agent's responsibility for that entity, possibly along with other agents. This description can be understood as shorthand for saying that the agent was responsible for the activity which generated the entity.", + path: "Provenance.entity.agent" + }, + "extension": { name: "extension", dataType: r4:Extension, @@ -419,6 +422,7 @@ public enum USCoreProvenanceEntityRole { public type USCoreProvenanceEntity record {| *r4:BackboneElement; + USCoreProvenanceAgentProvenanceTransmitter [] agent?; r4:Extension[] extension?; USCoreProvenanceEntityRole role; r4:Reference what; diff --git a/uscore311/resource_uscore_pulse_oximetry_profile.bal b/uscore311/resource_uscore_pulse_oximetry_profile.bal index a16f04dd..005b0cef 100644 --- a/uscore311/resource_uscore_pulse_oximetry_profile.bal +++ b/uscore311/resource_uscore_pulse_oximetry_profile.bal @@ -1,4 +1,4 @@ -// Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com). +// Copyright (c) 2025, WSO2 LLC. (http://www.wso2.com). // WSO2 LLC. licenses this file to you under the Apache License, // Version 2.0 (the "License"); you may not use this file except @@ -13,7 +13,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. - +// // AUTO-GENERATED FILE. // This file is auto-generated by Ballerina. @@ -228,7 +228,7 @@ public const RESOURCE_NAME_USCOREPULSEOXIMETRYPROFILE = "Observation"; "effectivePeriod" : { name: "effectivePeriod", dataType: r4:Period, - min: 1, + min: 0, max: 1, isArray: false, path: "Observation.effective[x]" @@ -294,7 +294,7 @@ public const RESOURCE_NAME_USCOREPULSEOXIMETRYPROFILE = "Observation"; "effectiveDateTime" : { name: "effectiveDateTime", dataType: r4:dateTime, - min: 1, + min: 0, max: 1, isArray: false, path: "Observation.effective[x]" @@ -379,7 +379,7 @@ public type USCorePulseOximetryProfile record {| USCorePulseOximetryProfileValue valueQuantity?; r4:Identifier[] identifier?; r4:Reference[] performer?; - r4:Period effectivePeriod; + r4:Period effectivePeriod?; r4:CodeableConcept method?; r4:Reference[] hasMember?; r4:Reference encounter?; @@ -387,7 +387,7 @@ public type USCorePulseOximetryProfile record {| USCorePulseOximetryProfileComponent[] component?; r4:Resource[] contained?; USCorePulseOximetryProfileReferenceRange[] referenceRange?; - r4:dateTime effectiveDateTime; + r4:dateTime effectiveDateTime?; r4:CodeableConcept[] interpretation?; r4:Meta meta?; r4:uri implicitRules?; @@ -395,10 +395,6 @@ public type USCorePulseOximetryProfile record {| minLength: { value: 1, message: "Validation failed for $.Observation.category constraint. This field must be an array containing at least one item." - }, - maxLength: { - value: 1, - message: "Validation failed for $.Observation.category constraint. This field must be an array containing at most one item." } } r4:CodeableConcept[] category; @@ -591,6 +587,7 @@ public type USCorePulseOximetryProfileCodeCodingOxygenSatCode record {| # + modifierExtension - May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself). # + valueCodeableConcept - Vital Sign Value recorded with UCUM. # + valueRatio - Vital Sign Value recorded with UCUM. +# + referenceRange - Guidance on how to interpret the value by comparison to a normal or recommended range. # + valueString - Vital Sign Value recorded with UCUM. # + interpretation - A categorical assessment of an observation value. For example, high, low, normal. # + valueSampledData - Vital Sign Value recorded with UCUM. @@ -684,6 +681,17 @@ public type USCorePulseOximetryProfileCodeCodingOxygenSatCode record {| description: "Vital Sign Value recorded with UCUM.", path: "Observation.component.value[x]" }, + + "referenceRange": { + name: "referenceRange", + dataType: USCorePulseOximetryProfileReferenceRange, + min: 0, + max: int:MAX_VALUE, + isArray: true, + description: "Guidance on how to interpret the value by comparison to a normal or recommended range.", + path: "Observation.component.referenceRange" + }, + "valueString": { name: "valueString", dataType: string, @@ -774,6 +782,7 @@ public type USCorePulseOximetryProfileComponent record {| r4:Extension[] modifierExtension?; r4:CodeableConcept valueCodeableConcept?; r4:Ratio valueRatio?; + USCorePulseOximetryProfileReferenceRange [] referenceRange?; string valueString?; r4:CodeableConcept[] interpretation?; r4:SampledData valueSampledData?; @@ -788,6 +797,7 @@ public type USCorePulseOximetryProfileComponent record {| # # + dataAbsentReason - Provides a reason why the expected value in the element Observation.component.value[x] is missing. # + extension - May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. +# + referenceRange - Guidance on how to interpret the value by comparison to a normal or recommended range. # + code - Describes what was observed. Sometimes this is called the observation 'code'. # + interpretation - A categorical assessment of an observation value. For example, high, low, normal. # + modifierExtension - May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself). @@ -815,6 +825,17 @@ public type USCorePulseOximetryProfileComponent record {| description: "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", path: "Observation.component.extension" }, + + "referenceRange": { + name: "referenceRange", + dataType: USCorePulseOximetryProfileReferenceRange, + min: 0, + max: int:MAX_VALUE, + isArray: true, + description: "Guidance on how to interpret the value by comparison to a normal or recommended range.", + path: "Observation.component.referenceRange" + }, + "code": { name: "code", dataType: USCorePulseOximetryProfileComponentCode, @@ -853,7 +874,7 @@ public type USCorePulseOximetryProfileComponent record {| }, "valueQuantity": { name: "valueQuantity", - dataType: USCorePulseOximetryProfileComponentValue, + dataType: r4:Quantity, min: 0, max: 1, isArray: false, @@ -871,11 +892,12 @@ public type USCorePulseOximetryProfileComponentFlowRate record {| r4:CodeableConcept dataAbsentReason?; r4:Extension[] extension?; + USCorePulseOximetryProfileReferenceRange [] referenceRange?; USCorePulseOximetryProfileComponentCode code; r4:CodeableConcept[] interpretation?; r4:Extension[] modifierExtension?; string id?; - USCorePulseOximetryProfileComponentValue valueQuantity?; + r4:Quantity valueQuantity?; |}; # FHIR USCorePulseOximetryProfileComponentCodeOne datatype record. @@ -1206,77 +1228,6 @@ public type USCorePulseOximetryProfileValue record {| decimal value; |}; -# FHIR USCorePulseOximetryProfileComponentValue datatype record. -# -# + comparator - How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is '<' , then the real value is < stated value. -# + unit - A human-readable form of the unit. -# + code - A computer processable form of the unit in some unit representation system. -# + system - The identification of the system that provides the coded form of the unit. -# + value - The value of the measured amount. The value includes an implicit precision in the presentation of the value. -@r4:DataTypeDefinition { - name: "USCorePulseOximetryProfileComponentValue", - baseType: (), - elements: { - "comparator": { - name: "comparator", - dataType: USCorePulseOximetryProfileComponentValueComparator, - min: 0, - max: 1, - isArray: false, - description: "How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is '<' , then the real value is < stated value.", - path: "Observation.component.value[x].comparator" - }, - "unit": { - name: "unit", - dataType: string, - min: 1, - max: 1, - isArray: false, - description: "A human-readable form of the unit.", - path: "Observation.component.value[x].unit" - }, - "code": { - name: "code", - dataType: r4:code, - min: 1, - max: 1, - isArray: false, - description: "A computer processable form of the unit in some unit representation system.", - path: "Observation.component.value[x].code" - }, - "system": { - name: "system", - dataType: r4:uri, - min: 1, - max: 1, - isArray: false, - description: "The identification of the system that provides the coded form of the unit.", - path: "Observation.component.value[x].system" - }, - "value": { - name: "value", - dataType: decimal, - min: 1, - max: 1, - isArray: false, - description: "The value of the measured amount. The value includes an implicit precision in the presentation of the value.", - path: "Observation.component.value[x].value" - } - }, - serializers: { - 'xml: r4:complexDataTypeXMLSerializer, - 'json: r4:complexDataTypeJsonSerializer - } -} -public type USCorePulseOximetryProfileComponentValue record {| - *r4:Quantity; - - USCorePulseOximetryProfileComponentValueComparator comparator?; - string unit; - r4:code code = "L/min"; - r4:uri system = "http://unitsofmeasure.org"; - decimal value; -|}; # FHIR USCorePulseOximetryProfileCode datatype record. # @@ -1498,6 +1449,7 @@ public type USCorePulseOximetryProfileReferenceRange record {| # # + dataAbsentReason - Provides a reason why the expected value in the element Observation.component.value[x] is missing. # + extension - May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. +# + referenceRange - Guidance on how to interpret the value by comparison to a normal or recommended range. # + code - Describes what was observed. Sometimes this is called the observation 'code'. # + interpretation - A categorical assessment of an observation value. For example, high, low, normal. # + modifierExtension - May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself). @@ -1525,6 +1477,17 @@ public type USCorePulseOximetryProfileReferenceRange record {| description: "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", path: "Observation.component.extension" }, + + "referenceRange": { + name: "referenceRange", + dataType: USCorePulseOximetryProfileReferenceRange, + min: 0, + max: int:MAX_VALUE, + isArray: true, + description: "Guidance on how to interpret the value by comparison to a normal or recommended range.", + path: "Observation.component.referenceRange" + }, + "code": { name: "code", dataType: USCorePulseOximetryProfileComponentCodeOne, @@ -1563,7 +1526,7 @@ public type USCorePulseOximetryProfileReferenceRange record {| }, "valueQuantity": { name: "valueQuantity", - dataType: USCorePulseOximetryProfileComponentValue, + dataType: r4:Quantity, min: 0, max: 1, isArray: false, @@ -1581,11 +1544,12 @@ public type USCorePulseOximetryProfileComponentConcentration record {| r4:CodeableConcept dataAbsentReason?; r4:Extension[] extension?; + USCorePulseOximetryProfileReferenceRange [] referenceRange?; USCorePulseOximetryProfileComponentCodeOne code; r4:CodeableConcept[] interpretation?; r4:Extension[] modifierExtension?; string id?; - USCorePulseOximetryProfileComponentValue valueQuantity?; + r4:Quantity valueQuantity?; |}; # FHIR USCorePulseOximetryProfileComponentCode datatype record. @@ -1665,11 +1629,4 @@ public type USCorePulseOximetryProfileComponentCodeCodingOne record {| r4:code code = "3150-0"; |}; -# USCorePulseOximetryProfileComponentValueComparator enum -public enum USCorePulseOximetryProfileComponentValueComparator { - CODE_COMPARATOR_LESS_THAN_OR_EQUAL = "<=", - CODE_COMPARATOR_LESS_THAN = "<", - CODE_COMPARATOR_GREATER_THAN = ">", - CODE_COMPARATOR_GREATER_THAN_OR_EQUAL = ">=" -} diff --git a/uscore311/resource_uscore_smoking_status_profile.bal b/uscore311/resource_uscore_smoking_status_profile.bal index 7c534602..2702bc89 100644 --- a/uscore311/resource_uscore_smoking_status_profile.bal +++ b/uscore311/resource_uscore_smoking_status_profile.bal @@ -1,4 +1,4 @@ -// Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com). +// Copyright (c) 2025, WSO2 LLC. (http://www.wso2.com). // WSO2 LLC. licenses this file to you under the Apache License, // Version 2.0 (the "License"); you may not use this file except @@ -13,7 +13,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. - +// // AUTO-GENERATED FILE. // This file is auto-generated by Ballerina. @@ -143,7 +143,7 @@ public const RESOURCE_NAME_USCORESMOKINGSTATUSPROFILE = "Observation"; "valueCodeableConcept" : { name: "valueCodeableConcept", dataType: r4:CodeableConcept, - min: 1, + min: 0, max: 1, isArray: false, path: "Observation.value[x]", @@ -374,7 +374,7 @@ public type USCoreSmokingStatusProfile record {| r4:Extension[] modifierExtension?; r4:Reference[] focus?; r4:code language?; - r4:CodeableConcept valueCodeableConcept; + r4:CodeableConcept valueCodeableConcept?; r4:Reference specimen?; r4:Reference[] derivedFrom?; string id?; @@ -538,6 +538,7 @@ public type USCoreSmokingStatusProfileReferenceRange record {| # + modifierExtension - May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself). # + valueCodeableConcept - The information determined as a result of making the observation, if the information has a simple value. # + valueRatio - The information determined as a result of making the observation, if the information has a simple value. +# + referenceRange - Guidance on how to interpret the value by comparison to a normal or recommended range. # + valueString - The information determined as a result of making the observation, if the information has a simple value. # + interpretation - A categorical assessment of an observation value. For example, high, low, normal. # + valueSampledData - The information determined as a result of making the observation, if the information has a simple value. @@ -631,6 +632,17 @@ public type USCoreSmokingStatusProfileReferenceRange record {| description: "The information determined as a result of making the observation, if the information has a simple value.", path: "Observation.component.value[x]" }, + + "referenceRange": { + name: "referenceRange", + dataType: USCoreSmokingStatusProfileReferenceRange, + min: 0, + max: int:MAX_VALUE, + isArray: true, + description: "Guidance on how to interpret the value by comparison to a normal or recommended range.", + path: "Observation.component.referenceRange" + }, + "valueString": { name: "valueString", dataType: string, @@ -721,6 +733,7 @@ public type USCoreSmokingStatusProfileComponent record {| r4:Extension[] modifierExtension?; r4:CodeableConcept valueCodeableConcept?; r4:Ratio valueRatio?; + USCoreSmokingStatusProfileReferenceRange [] referenceRange?; string valueString?; r4:CodeableConcept[] interpretation?; r4:SampledData valueSampledData?;