diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/api/Azure.Health.Insights.RadiologyInsights.net8.0.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/api/Azure.Health.Insights.RadiologyInsights.net8.0.cs index 2884afa3f79d..c0083ed6a633 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/api/Azure.Health.Insights.RadiologyInsights.net8.0.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/api/Azure.Health.Insights.RadiologyInsights.net8.0.cs @@ -10,6 +10,18 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class AssessmentValueRange : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal AssessmentValueRange() { } + public string Maximum { get { throw null; } } + public string Minimum { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Health.Insights.RadiologyInsights.AssessmentValueRange System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Health.Insights.RadiologyInsights.AssessmentValueRange System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class ClinicalDocumentAuthor : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public ClinicalDocumentAuthor() { } @@ -703,9 +715,55 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class GuidanceInference : Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInference, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal GuidanceInference() { } + public Azure.Health.Insights.RadiologyInsights.FindingInference Finding { get { throw null; } } + public Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept Identifier { get { throw null; } } + public System.Collections.Generic.IReadOnlyList MissingGuidanceInformation { get { throw null; } } + public System.Collections.Generic.IReadOnlyList PresentGuidanceInformation { get { throw null; } } + public Azure.Health.Insights.RadiologyInsights.GuidanceRankingType Ranking { get { throw null; } } + public System.Collections.Generic.IReadOnlyList RecommendationProposals { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Health.Insights.RadiologyInsights.GuidanceInference System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Health.Insights.RadiologyInsights.GuidanceInference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class GuidanceOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public GuidanceOptions(bool showGuidanceInHistory) { } + public bool ShowGuidanceInHistory { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Health.Insights.RadiologyInsights.GuidanceOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Health.Insights.RadiologyInsights.GuidanceOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct GuidanceRankingType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GuidanceRankingType(string value) { throw null; } + public static Azure.Health.Insights.RadiologyInsights.GuidanceRankingType High { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.GuidanceRankingType Low { get { throw null; } } + public bool Equals(Azure.Health.Insights.RadiologyInsights.GuidanceRankingType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Health.Insights.RadiologyInsights.GuidanceRankingType left, Azure.Health.Insights.RadiologyInsights.GuidanceRankingType right) { throw null; } + public static implicit operator Azure.Health.Insights.RadiologyInsights.GuidanceRankingType (string value) { throw null; } + public static bool operator !=(Azure.Health.Insights.RadiologyInsights.GuidanceRankingType left, Azure.Health.Insights.RadiologyInsights.GuidanceRankingType right) { throw null; } + public override string ToString() { throw null; } + } public static partial class HealthInsightsRadiologyInsightsModelFactory { public static Azure.Health.Insights.RadiologyInsights.AgeMismatchInference AgeMismatchInference(System.Collections.Generic.IEnumerable extension = null) { throw null; } + public static Azure.Health.Insights.RadiologyInsights.AssessmentValueRange AssessmentValueRange(string minimum = null, string maximum = null) { throw null; } public static Azure.Health.Insights.RadiologyInsights.CompleteOrderDiscrepancyInference CompleteOrderDiscrepancyInference(System.Collections.Generic.IEnumerable extension = null, Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept orderType = null, System.Collections.Generic.IEnumerable missingBodyParts = null, System.Collections.Generic.IEnumerable missingBodyPartMeasurements = null) { throw null; } public static Azure.Health.Insights.RadiologyInsights.CriticalResult CriticalResult(string description = null, Azure.Health.Insights.RadiologyInsights.FhirR4Observation finding = null) { throw null; } public static Azure.Health.Insights.RadiologyInsights.CriticalResultInference CriticalResultInference(System.Collections.Generic.IEnumerable extension = null, Azure.Health.Insights.RadiologyInsights.CriticalResult result = null) { throw null; } @@ -724,11 +782,14 @@ public static partial class HealthInsightsRadiologyInsightsModelFactory public static Azure.Health.Insights.RadiologyInsights.FollowupCommunicationInference FollowupCommunicationInference(System.Collections.Generic.IEnumerable extension = null, System.Collections.Generic.IEnumerable communicatedAt = null, System.Collections.Generic.IEnumerable recipient = null, bool wasAcknowledged = false) { throw null; } public static Azure.Health.Insights.RadiologyInsights.FollowupRecommendationInference FollowupRecommendationInference(System.Collections.Generic.IEnumerable extension = null, string effectiveAt = null, Azure.Health.Insights.RadiologyInsights.FhirR4Period effectivePeriod = null, System.Collections.Generic.IEnumerable findings = null, bool isConditional = false, bool isOption = false, bool isGuideline = false, bool isHedging = false, Azure.Health.Insights.RadiologyInsights.ProcedureRecommendation recommendedProcedure = null) { throw null; } public static Azure.Health.Insights.RadiologyInsights.GenericProcedureRecommendation GenericProcedureRecommendation(System.Collections.Generic.IEnumerable extension = null, Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept code = null, string description = null) { throw null; } + public static Azure.Health.Insights.RadiologyInsights.GuidanceInference GuidanceInference(System.Collections.Generic.IEnumerable extension = null, Azure.Health.Insights.RadiologyInsights.FindingInference finding = null, Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept identifier = null, System.Collections.Generic.IEnumerable presentGuidanceInformation = null, Azure.Health.Insights.RadiologyInsights.GuidanceRankingType ranking = default(Azure.Health.Insights.RadiologyInsights.GuidanceRankingType), System.Collections.Generic.IEnumerable recommendationProposals = null, System.Collections.Generic.IEnumerable missingGuidanceInformation = null) { throw null; } public static Azure.Health.Insights.RadiologyInsights.ImagingProcedure ImagingProcedure(Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept modality = null, Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept anatomy = null, Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept laterality = null, Azure.Health.Insights.RadiologyInsights.RadiologyCodeWithTypes contrast = null, Azure.Health.Insights.RadiologyInsights.RadiologyCodeWithTypes view = null) { throw null; } public static Azure.Health.Insights.RadiologyInsights.ImagingProcedureRecommendation ImagingProcedureRecommendation(System.Collections.Generic.IEnumerable extension = null, System.Collections.Generic.IEnumerable procedureCodes = null, System.Collections.Generic.IEnumerable imagingProcedures = null) { throw null; } public static Azure.Health.Insights.RadiologyInsights.LateralityDiscrepancyInference LateralityDiscrepancyInference(System.Collections.Generic.IEnumerable extension = null, Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept lateralityIndication = null, Azure.Health.Insights.RadiologyInsights.LateralityDiscrepancyType discrepancyType = default(Azure.Health.Insights.RadiologyInsights.LateralityDiscrepancyType)) { throw null; } public static Azure.Health.Insights.RadiologyInsights.LimitedOrderDiscrepancyInference LimitedOrderDiscrepancyInference(System.Collections.Generic.IEnumerable extension = null, Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept orderType = null, System.Collections.Generic.IEnumerable presentBodyParts = null, System.Collections.Generic.IEnumerable presentBodyPartMeasurements = null) { throw null; } + public static Azure.Health.Insights.RadiologyInsights.PresentGuidanceInformation PresentGuidanceInformation(string presentGuidanceItem = null, System.Collections.Generic.IEnumerable sizes = null, Azure.Health.Insights.RadiologyInsights.FhirR4Quantity maximumDiameterAsInText = null, System.Collections.Generic.IEnumerable presentGuidanceValues = null, System.Collections.Generic.IEnumerable extension = null) { throw null; } public static Azure.Health.Insights.RadiologyInsights.ProcedureRecommendation ProcedureRecommendation(string kind = null, System.Collections.Generic.IEnumerable extension = null) { throw null; } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureInference QualityMeasureInference(System.Collections.Generic.IEnumerable extension = null, string qualityMeasureDenominator = null, Azure.Health.Insights.RadiologyInsights.QualityMeasureComplianceType complianceType = default(Azure.Health.Insights.RadiologyInsights.QualityMeasureComplianceType), System.Collections.Generic.IEnumerable qualityCriteria = null) { throw null; } public static Azure.Health.Insights.RadiologyInsights.RadiologyCodeWithTypes RadiologyCodeWithTypes(Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept code = null, System.Collections.Generic.IEnumerable types = null) { throw null; } public static Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInference RadiologyInsightsInference(string kind = null, System.Collections.Generic.IEnumerable extension = null) { throw null; } public static Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInferenceResult RadiologyInsightsInferenceResult(System.Collections.Generic.IEnumerable patientResults = null, string modelVersion = null) { throw null; } @@ -738,6 +799,7 @@ public static partial class HealthInsightsRadiologyInsightsModelFactory public static Azure.Health.Insights.RadiologyInsights.RecommendationFinding RecommendationFinding(Azure.Health.Insights.RadiologyInsights.FhirR4Observation finding = null, Azure.Health.Insights.RadiologyInsights.CriticalResult criticalFinding = null, Azure.Health.Insights.RadiologyInsights.RecommendationFindingStatusType recommendationFindingStatus = default(Azure.Health.Insights.RadiologyInsights.RecommendationFindingStatusType), System.Collections.Generic.IEnumerable extension = null) { throw null; } public static Azure.Health.Insights.RadiologyInsights.ResearchStudyArm ResearchStudyArm(string name = null, Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept type = null, string description = null) { throw null; } public static Azure.Health.Insights.RadiologyInsights.ResearchStudyObjective ResearchStudyObjective(string name = null, Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept type = null) { throw null; } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentInference ScoringAndAssessmentInference(System.Collections.Generic.IEnumerable extension = null, Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType category = default(Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType), string categoryDescription = null, string singleValue = null, Azure.Health.Insights.RadiologyInsights.AssessmentValueRange rangeValue = null) { throw null; } public static Azure.Health.Insights.RadiologyInsights.SexMismatchInference SexMismatchInference(System.Collections.Generic.IEnumerable extension = null, Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept sexIndication = null) { throw null; } } public partial class ImagingProcedure : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel @@ -968,6 +1030,21 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.Health.Insights.RadiologyInsights.PatientSex left, Azure.Health.Insights.RadiologyInsights.PatientSex right) { throw null; } public override string ToString() { throw null; } } + public partial class PresentGuidanceInformation : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal PresentGuidanceInformation() { } + public System.Collections.Generic.IReadOnlyList Extension { get { throw null; } } + public Azure.Health.Insights.RadiologyInsights.FhirR4Quantity MaximumDiameterAsInText { get { throw null; } } + public string PresentGuidanceItem { get { throw null; } } + public System.Collections.Generic.IReadOnlyList PresentGuidanceValues { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Sizes { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Health.Insights.RadiologyInsights.PresentGuidanceInformation System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Health.Insights.RadiologyInsights.PresentGuidanceInformation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public abstract partial class ProcedureRecommendation : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { protected ProcedureRecommendation() { } @@ -979,6 +1056,89 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct QualityMeasureComplianceType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public QualityMeasureComplianceType(string value) { throw null; } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureComplianceType DenominatorException { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureComplianceType NotEligible { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureComplianceType PerformanceMet { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureComplianceType PerformanceNotMet { get { throw null; } } + public bool Equals(Azure.Health.Insights.RadiologyInsights.QualityMeasureComplianceType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Health.Insights.RadiologyInsights.QualityMeasureComplianceType left, Azure.Health.Insights.RadiologyInsights.QualityMeasureComplianceType right) { throw null; } + public static implicit operator Azure.Health.Insights.RadiologyInsights.QualityMeasureComplianceType (string value) { throw null; } + public static bool operator !=(Azure.Health.Insights.RadiologyInsights.QualityMeasureComplianceType left, Azure.Health.Insights.RadiologyInsights.QualityMeasureComplianceType right) { throw null; } + public override string ToString() { throw null; } + } + public partial class QualityMeasureInference : Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInference, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal QualityMeasureInference() { } + public Azure.Health.Insights.RadiologyInsights.QualityMeasureComplianceType ComplianceType { get { throw null; } } + public System.Collections.Generic.IReadOnlyList QualityCriteria { get { throw null; } } + public string QualityMeasureDenominator { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Health.Insights.RadiologyInsights.QualityMeasureInference System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Health.Insights.RadiologyInsights.QualityMeasureInference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class QualityMeasureOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public QualityMeasureOptions(System.Collections.Generic.IEnumerable measureTypes) { } + public System.Collections.Generic.IList MeasureTypes { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Health.Insights.RadiologyInsights.QualityMeasureOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Health.Insights.RadiologyInsights.QualityMeasureOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct QualityMeasureType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public QualityMeasureType(string value) { throw null; } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Acrad36 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Acrad37 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Acrad38 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Acrad39 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Acrad40 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Acrad41 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Acrad42 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Mednax55 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Mips145 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Mips147 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Mips195 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Mips360 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Mips364 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Mips405 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Mips406 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Mips436 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Mips76 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Msn13 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Msn15 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Qmm17 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Qmm18 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Qmm19 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Qmm26 { get { throw null; } } + public bool Equals(Azure.Health.Insights.RadiologyInsights.QualityMeasureType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Health.Insights.RadiologyInsights.QualityMeasureType left, Azure.Health.Insights.RadiologyInsights.QualityMeasureType right) { throw null; } + public static implicit operator Azure.Health.Insights.RadiologyInsights.QualityMeasureType (string value) { throw null; } + public static bool operator !=(Azure.Health.Insights.RadiologyInsights.QualityMeasureType left, Azure.Health.Insights.RadiologyInsights.QualityMeasureType right) { throw null; } + public override string ToString() { throw null; } + } public partial class RadiologyCodeWithTypes : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal RadiologyCodeWithTypes() { } @@ -1006,10 +1166,11 @@ public RadiologyInsightsClient(System.Uri endpoint, Azure.Core.TokenCredential c } public partial class RadiologyInsightsClientOptions : Azure.Core.ClientOptions { - public RadiologyInsightsClientOptions(Azure.Health.Insights.RadiologyInsights.RadiologyInsightsClientOptions.ServiceVersion version = Azure.Health.Insights.RadiologyInsights.RadiologyInsightsClientOptions.ServiceVersion.V2024_04_01) { } + public RadiologyInsightsClientOptions(Azure.Health.Insights.RadiologyInsights.RadiologyInsightsClientOptions.ServiceVersion version = Azure.Health.Insights.RadiologyInsights.RadiologyInsightsClientOptions.ServiceVersion.V2024_10_01) { } public enum ServiceVersion { V2024_04_01 = 1, + V2024_10_01 = 2, } } public partial class RadiologyInsightsData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel @@ -1040,6 +1201,8 @@ public partial class RadiologyInsightsInferenceOptions : System.ClientModel.Prim public RadiologyInsightsInferenceOptions() { } public Azure.Health.Insights.RadiologyInsights.FindingOptions FindingOptions { get { throw null; } set { } } public Azure.Health.Insights.RadiologyInsights.FollowupRecommendationOptions FollowupRecommendationOptions { get { throw null; } set { } } + public Azure.Health.Insights.RadiologyInsights.GuidanceOptions GuidanceOptions { get { throw null; } set { } } + public Azure.Health.Insights.RadiologyInsights.QualityMeasureOptions QualityMeasureOptions { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInferenceOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -1071,9 +1234,12 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInferenceType Finding { get { throw null; } } public static Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInferenceType FollowupCommunication { get { throw null; } } public static Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInferenceType FollowupRecommendation { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInferenceType Guidance { get { throw null; } } public static Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInferenceType LateralityDiscrepancy { get { throw null; } } public static Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInferenceType LimitedOrderDiscrepancy { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInferenceType QualityMeasure { get { throw null; } } public static Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInferenceType RadiologyProcedure { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInferenceType ScoringAndAssessment { get { throw null; } } public static Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInferenceType SexMismatch { get { throw null; } } public bool Equals(Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInferenceType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -1229,6 +1395,70 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.Health.Insights.RadiologyInsights.ResearchStudyStatusCodeType left, Azure.Health.Insights.RadiologyInsights.ResearchStudyStatusCodeType right) { throw null; } public override string ToString() { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ScoringAndAssessmentCategoryType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ScoringAndAssessmentCategoryType(string value) { throw null; } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType AGATSTONSCORE { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType ALBERTASTROKEPROGRAMEARLYCTSCORE { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType ASCVDRISK { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType BIRADS { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType CADRADS { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType CALCIUMMASSSCORE { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType CALCIUMSCOREUNSPECIFIED { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType CALCIUMVOLUMESCORE { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType CEUSLIRADS { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType CRADSCOLONICFINDINGS { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType CRADSEXTRACOLONICFINDINGS { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType FRAXSCORE { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType HNPCCMUTATIONRISK { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType KELLGRENLAWRENCEGRADINGSCALE { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType LIFETIMEBREASTCANCERRISK { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType LIRADS { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType LUNGRADS { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType MODIFIEDGAILMODELRISK { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType NIRADS { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType ORADS { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType ORADSMRI { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType PIRADS { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType RISKOFMALIGNANCYINDEX { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType TENYEARCHDRISK { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType TENYEARCHDRISKARTERIALAGE { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType TENYEARCHDRISKOBSERVEDAGE { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType TIRADS { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType TONNISCLASSIFICATION { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType TREATMENTRESPONSELIRADS { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType TSCORE { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType TYRERCUSICKMODELRISK { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType USLIRADS { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType USLIRADSVISUALIZATIONSCORE { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType ZSCORE { get { throw null; } } + public bool Equals(Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType left, Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType right) { throw null; } + public static implicit operator Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType (string value) { throw null; } + public static bool operator !=(Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType left, Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType right) { throw null; } + public override string ToString() { throw null; } + } + public partial class ScoringAndAssessmentInference : Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInference, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ScoringAndAssessmentInference() { } + public Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType Category { get { throw null; } } + public string CategoryDescription { get { throw null; } } + public Azure.Health.Insights.RadiologyInsights.AssessmentValueRange RangeValue { get { throw null; } } + public string SingleValue { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentInference System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentInference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class SexMismatchInference : Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInference, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal SexMismatchInference() { } diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/api/Azure.Health.Insights.RadiologyInsights.netstandard2.0.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/api/Azure.Health.Insights.RadiologyInsights.netstandard2.0.cs index 2884afa3f79d..c0083ed6a633 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/api/Azure.Health.Insights.RadiologyInsights.netstandard2.0.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/api/Azure.Health.Insights.RadiologyInsights.netstandard2.0.cs @@ -10,6 +10,18 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class AssessmentValueRange : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal AssessmentValueRange() { } + public string Maximum { get { throw null; } } + public string Minimum { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Health.Insights.RadiologyInsights.AssessmentValueRange System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Health.Insights.RadiologyInsights.AssessmentValueRange System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class ClinicalDocumentAuthor : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public ClinicalDocumentAuthor() { } @@ -703,9 +715,55 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class GuidanceInference : Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInference, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal GuidanceInference() { } + public Azure.Health.Insights.RadiologyInsights.FindingInference Finding { get { throw null; } } + public Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept Identifier { get { throw null; } } + public System.Collections.Generic.IReadOnlyList MissingGuidanceInformation { get { throw null; } } + public System.Collections.Generic.IReadOnlyList PresentGuidanceInformation { get { throw null; } } + public Azure.Health.Insights.RadiologyInsights.GuidanceRankingType Ranking { get { throw null; } } + public System.Collections.Generic.IReadOnlyList RecommendationProposals { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Health.Insights.RadiologyInsights.GuidanceInference System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Health.Insights.RadiologyInsights.GuidanceInference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class GuidanceOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public GuidanceOptions(bool showGuidanceInHistory) { } + public bool ShowGuidanceInHistory { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Health.Insights.RadiologyInsights.GuidanceOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Health.Insights.RadiologyInsights.GuidanceOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct GuidanceRankingType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GuidanceRankingType(string value) { throw null; } + public static Azure.Health.Insights.RadiologyInsights.GuidanceRankingType High { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.GuidanceRankingType Low { get { throw null; } } + public bool Equals(Azure.Health.Insights.RadiologyInsights.GuidanceRankingType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Health.Insights.RadiologyInsights.GuidanceRankingType left, Azure.Health.Insights.RadiologyInsights.GuidanceRankingType right) { throw null; } + public static implicit operator Azure.Health.Insights.RadiologyInsights.GuidanceRankingType (string value) { throw null; } + public static bool operator !=(Azure.Health.Insights.RadiologyInsights.GuidanceRankingType left, Azure.Health.Insights.RadiologyInsights.GuidanceRankingType right) { throw null; } + public override string ToString() { throw null; } + } public static partial class HealthInsightsRadiologyInsightsModelFactory { public static Azure.Health.Insights.RadiologyInsights.AgeMismatchInference AgeMismatchInference(System.Collections.Generic.IEnumerable extension = null) { throw null; } + public static Azure.Health.Insights.RadiologyInsights.AssessmentValueRange AssessmentValueRange(string minimum = null, string maximum = null) { throw null; } public static Azure.Health.Insights.RadiologyInsights.CompleteOrderDiscrepancyInference CompleteOrderDiscrepancyInference(System.Collections.Generic.IEnumerable extension = null, Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept orderType = null, System.Collections.Generic.IEnumerable missingBodyParts = null, System.Collections.Generic.IEnumerable missingBodyPartMeasurements = null) { throw null; } public static Azure.Health.Insights.RadiologyInsights.CriticalResult CriticalResult(string description = null, Azure.Health.Insights.RadiologyInsights.FhirR4Observation finding = null) { throw null; } public static Azure.Health.Insights.RadiologyInsights.CriticalResultInference CriticalResultInference(System.Collections.Generic.IEnumerable extension = null, Azure.Health.Insights.RadiologyInsights.CriticalResult result = null) { throw null; } @@ -724,11 +782,14 @@ public static partial class HealthInsightsRadiologyInsightsModelFactory public static Azure.Health.Insights.RadiologyInsights.FollowupCommunicationInference FollowupCommunicationInference(System.Collections.Generic.IEnumerable extension = null, System.Collections.Generic.IEnumerable communicatedAt = null, System.Collections.Generic.IEnumerable recipient = null, bool wasAcknowledged = false) { throw null; } public static Azure.Health.Insights.RadiologyInsights.FollowupRecommendationInference FollowupRecommendationInference(System.Collections.Generic.IEnumerable extension = null, string effectiveAt = null, Azure.Health.Insights.RadiologyInsights.FhirR4Period effectivePeriod = null, System.Collections.Generic.IEnumerable findings = null, bool isConditional = false, bool isOption = false, bool isGuideline = false, bool isHedging = false, Azure.Health.Insights.RadiologyInsights.ProcedureRecommendation recommendedProcedure = null) { throw null; } public static Azure.Health.Insights.RadiologyInsights.GenericProcedureRecommendation GenericProcedureRecommendation(System.Collections.Generic.IEnumerable extension = null, Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept code = null, string description = null) { throw null; } + public static Azure.Health.Insights.RadiologyInsights.GuidanceInference GuidanceInference(System.Collections.Generic.IEnumerable extension = null, Azure.Health.Insights.RadiologyInsights.FindingInference finding = null, Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept identifier = null, System.Collections.Generic.IEnumerable presentGuidanceInformation = null, Azure.Health.Insights.RadiologyInsights.GuidanceRankingType ranking = default(Azure.Health.Insights.RadiologyInsights.GuidanceRankingType), System.Collections.Generic.IEnumerable recommendationProposals = null, System.Collections.Generic.IEnumerable missingGuidanceInformation = null) { throw null; } public static Azure.Health.Insights.RadiologyInsights.ImagingProcedure ImagingProcedure(Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept modality = null, Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept anatomy = null, Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept laterality = null, Azure.Health.Insights.RadiologyInsights.RadiologyCodeWithTypes contrast = null, Azure.Health.Insights.RadiologyInsights.RadiologyCodeWithTypes view = null) { throw null; } public static Azure.Health.Insights.RadiologyInsights.ImagingProcedureRecommendation ImagingProcedureRecommendation(System.Collections.Generic.IEnumerable extension = null, System.Collections.Generic.IEnumerable procedureCodes = null, System.Collections.Generic.IEnumerable imagingProcedures = null) { throw null; } public static Azure.Health.Insights.RadiologyInsights.LateralityDiscrepancyInference LateralityDiscrepancyInference(System.Collections.Generic.IEnumerable extension = null, Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept lateralityIndication = null, Azure.Health.Insights.RadiologyInsights.LateralityDiscrepancyType discrepancyType = default(Azure.Health.Insights.RadiologyInsights.LateralityDiscrepancyType)) { throw null; } public static Azure.Health.Insights.RadiologyInsights.LimitedOrderDiscrepancyInference LimitedOrderDiscrepancyInference(System.Collections.Generic.IEnumerable extension = null, Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept orderType = null, System.Collections.Generic.IEnumerable presentBodyParts = null, System.Collections.Generic.IEnumerable presentBodyPartMeasurements = null) { throw null; } + public static Azure.Health.Insights.RadiologyInsights.PresentGuidanceInformation PresentGuidanceInformation(string presentGuidanceItem = null, System.Collections.Generic.IEnumerable sizes = null, Azure.Health.Insights.RadiologyInsights.FhirR4Quantity maximumDiameterAsInText = null, System.Collections.Generic.IEnumerable presentGuidanceValues = null, System.Collections.Generic.IEnumerable extension = null) { throw null; } public static Azure.Health.Insights.RadiologyInsights.ProcedureRecommendation ProcedureRecommendation(string kind = null, System.Collections.Generic.IEnumerable extension = null) { throw null; } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureInference QualityMeasureInference(System.Collections.Generic.IEnumerable extension = null, string qualityMeasureDenominator = null, Azure.Health.Insights.RadiologyInsights.QualityMeasureComplianceType complianceType = default(Azure.Health.Insights.RadiologyInsights.QualityMeasureComplianceType), System.Collections.Generic.IEnumerable qualityCriteria = null) { throw null; } public static Azure.Health.Insights.RadiologyInsights.RadiologyCodeWithTypes RadiologyCodeWithTypes(Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept code = null, System.Collections.Generic.IEnumerable types = null) { throw null; } public static Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInference RadiologyInsightsInference(string kind = null, System.Collections.Generic.IEnumerable extension = null) { throw null; } public static Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInferenceResult RadiologyInsightsInferenceResult(System.Collections.Generic.IEnumerable patientResults = null, string modelVersion = null) { throw null; } @@ -738,6 +799,7 @@ public static partial class HealthInsightsRadiologyInsightsModelFactory public static Azure.Health.Insights.RadiologyInsights.RecommendationFinding RecommendationFinding(Azure.Health.Insights.RadiologyInsights.FhirR4Observation finding = null, Azure.Health.Insights.RadiologyInsights.CriticalResult criticalFinding = null, Azure.Health.Insights.RadiologyInsights.RecommendationFindingStatusType recommendationFindingStatus = default(Azure.Health.Insights.RadiologyInsights.RecommendationFindingStatusType), System.Collections.Generic.IEnumerable extension = null) { throw null; } public static Azure.Health.Insights.RadiologyInsights.ResearchStudyArm ResearchStudyArm(string name = null, Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept type = null, string description = null) { throw null; } public static Azure.Health.Insights.RadiologyInsights.ResearchStudyObjective ResearchStudyObjective(string name = null, Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept type = null) { throw null; } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentInference ScoringAndAssessmentInference(System.Collections.Generic.IEnumerable extension = null, Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType category = default(Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType), string categoryDescription = null, string singleValue = null, Azure.Health.Insights.RadiologyInsights.AssessmentValueRange rangeValue = null) { throw null; } public static Azure.Health.Insights.RadiologyInsights.SexMismatchInference SexMismatchInference(System.Collections.Generic.IEnumerable extension = null, Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept sexIndication = null) { throw null; } } public partial class ImagingProcedure : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel @@ -968,6 +1030,21 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.Health.Insights.RadiologyInsights.PatientSex left, Azure.Health.Insights.RadiologyInsights.PatientSex right) { throw null; } public override string ToString() { throw null; } } + public partial class PresentGuidanceInformation : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal PresentGuidanceInformation() { } + public System.Collections.Generic.IReadOnlyList Extension { get { throw null; } } + public Azure.Health.Insights.RadiologyInsights.FhirR4Quantity MaximumDiameterAsInText { get { throw null; } } + public string PresentGuidanceItem { get { throw null; } } + public System.Collections.Generic.IReadOnlyList PresentGuidanceValues { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Sizes { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Health.Insights.RadiologyInsights.PresentGuidanceInformation System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Health.Insights.RadiologyInsights.PresentGuidanceInformation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public abstract partial class ProcedureRecommendation : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { protected ProcedureRecommendation() { } @@ -979,6 +1056,89 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct QualityMeasureComplianceType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public QualityMeasureComplianceType(string value) { throw null; } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureComplianceType DenominatorException { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureComplianceType NotEligible { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureComplianceType PerformanceMet { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureComplianceType PerformanceNotMet { get { throw null; } } + public bool Equals(Azure.Health.Insights.RadiologyInsights.QualityMeasureComplianceType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Health.Insights.RadiologyInsights.QualityMeasureComplianceType left, Azure.Health.Insights.RadiologyInsights.QualityMeasureComplianceType right) { throw null; } + public static implicit operator Azure.Health.Insights.RadiologyInsights.QualityMeasureComplianceType (string value) { throw null; } + public static bool operator !=(Azure.Health.Insights.RadiologyInsights.QualityMeasureComplianceType left, Azure.Health.Insights.RadiologyInsights.QualityMeasureComplianceType right) { throw null; } + public override string ToString() { throw null; } + } + public partial class QualityMeasureInference : Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInference, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal QualityMeasureInference() { } + public Azure.Health.Insights.RadiologyInsights.QualityMeasureComplianceType ComplianceType { get { throw null; } } + public System.Collections.Generic.IReadOnlyList QualityCriteria { get { throw null; } } + public string QualityMeasureDenominator { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Health.Insights.RadiologyInsights.QualityMeasureInference System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Health.Insights.RadiologyInsights.QualityMeasureInference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class QualityMeasureOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public QualityMeasureOptions(System.Collections.Generic.IEnumerable measureTypes) { } + public System.Collections.Generic.IList MeasureTypes { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Health.Insights.RadiologyInsights.QualityMeasureOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Health.Insights.RadiologyInsights.QualityMeasureOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct QualityMeasureType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public QualityMeasureType(string value) { throw null; } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Acrad36 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Acrad37 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Acrad38 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Acrad39 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Acrad40 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Acrad41 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Acrad42 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Mednax55 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Mips145 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Mips147 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Mips195 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Mips360 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Mips364 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Mips405 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Mips406 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Mips436 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Mips76 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Msn13 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Msn15 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Qmm17 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Qmm18 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Qmm19 { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.QualityMeasureType Qmm26 { get { throw null; } } + public bool Equals(Azure.Health.Insights.RadiologyInsights.QualityMeasureType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Health.Insights.RadiologyInsights.QualityMeasureType left, Azure.Health.Insights.RadiologyInsights.QualityMeasureType right) { throw null; } + public static implicit operator Azure.Health.Insights.RadiologyInsights.QualityMeasureType (string value) { throw null; } + public static bool operator !=(Azure.Health.Insights.RadiologyInsights.QualityMeasureType left, Azure.Health.Insights.RadiologyInsights.QualityMeasureType right) { throw null; } + public override string ToString() { throw null; } + } public partial class RadiologyCodeWithTypes : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal RadiologyCodeWithTypes() { } @@ -1006,10 +1166,11 @@ public RadiologyInsightsClient(System.Uri endpoint, Azure.Core.TokenCredential c } public partial class RadiologyInsightsClientOptions : Azure.Core.ClientOptions { - public RadiologyInsightsClientOptions(Azure.Health.Insights.RadiologyInsights.RadiologyInsightsClientOptions.ServiceVersion version = Azure.Health.Insights.RadiologyInsights.RadiologyInsightsClientOptions.ServiceVersion.V2024_04_01) { } + public RadiologyInsightsClientOptions(Azure.Health.Insights.RadiologyInsights.RadiologyInsightsClientOptions.ServiceVersion version = Azure.Health.Insights.RadiologyInsights.RadiologyInsightsClientOptions.ServiceVersion.V2024_10_01) { } public enum ServiceVersion { V2024_04_01 = 1, + V2024_10_01 = 2, } } public partial class RadiologyInsightsData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel @@ -1040,6 +1201,8 @@ public partial class RadiologyInsightsInferenceOptions : System.ClientModel.Prim public RadiologyInsightsInferenceOptions() { } public Azure.Health.Insights.RadiologyInsights.FindingOptions FindingOptions { get { throw null; } set { } } public Azure.Health.Insights.RadiologyInsights.FollowupRecommendationOptions FollowupRecommendationOptions { get { throw null; } set { } } + public Azure.Health.Insights.RadiologyInsights.GuidanceOptions GuidanceOptions { get { throw null; } set { } } + public Azure.Health.Insights.RadiologyInsights.QualityMeasureOptions QualityMeasureOptions { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInferenceOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -1071,9 +1234,12 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInferenceType Finding { get { throw null; } } public static Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInferenceType FollowupCommunication { get { throw null; } } public static Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInferenceType FollowupRecommendation { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInferenceType Guidance { get { throw null; } } public static Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInferenceType LateralityDiscrepancy { get { throw null; } } public static Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInferenceType LimitedOrderDiscrepancy { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInferenceType QualityMeasure { get { throw null; } } public static Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInferenceType RadiologyProcedure { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInferenceType ScoringAndAssessment { get { throw null; } } public static Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInferenceType SexMismatch { get { throw null; } } public bool Equals(Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInferenceType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -1229,6 +1395,70 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.Health.Insights.RadiologyInsights.ResearchStudyStatusCodeType left, Azure.Health.Insights.RadiologyInsights.ResearchStudyStatusCodeType right) { throw null; } public override string ToString() { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ScoringAndAssessmentCategoryType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ScoringAndAssessmentCategoryType(string value) { throw null; } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType AGATSTONSCORE { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType ALBERTASTROKEPROGRAMEARLYCTSCORE { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType ASCVDRISK { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType BIRADS { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType CADRADS { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType CALCIUMMASSSCORE { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType CALCIUMSCOREUNSPECIFIED { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType CALCIUMVOLUMESCORE { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType CEUSLIRADS { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType CRADSCOLONICFINDINGS { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType CRADSEXTRACOLONICFINDINGS { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType FRAXSCORE { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType HNPCCMUTATIONRISK { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType KELLGRENLAWRENCEGRADINGSCALE { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType LIFETIMEBREASTCANCERRISK { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType LIRADS { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType LUNGRADS { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType MODIFIEDGAILMODELRISK { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType NIRADS { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType ORADS { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType ORADSMRI { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType PIRADS { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType RISKOFMALIGNANCYINDEX { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType TENYEARCHDRISK { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType TENYEARCHDRISKARTERIALAGE { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType TENYEARCHDRISKOBSERVEDAGE { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType TIRADS { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType TONNISCLASSIFICATION { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType TREATMENTRESPONSELIRADS { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType TSCORE { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType TYRERCUSICKMODELRISK { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType USLIRADS { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType USLIRADSVISUALIZATIONSCORE { get { throw null; } } + public static Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType ZSCORE { get { throw null; } } + public bool Equals(Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType left, Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType right) { throw null; } + public static implicit operator Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType (string value) { throw null; } + public static bool operator !=(Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType left, Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType right) { throw null; } + public override string ToString() { throw null; } + } + public partial class ScoringAndAssessmentInference : Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInference, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ScoringAndAssessmentInference() { } + public Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentCategoryType Category { get { throw null; } } + public string CategoryDescription { get { throw null; } } + public Azure.Health.Insights.RadiologyInsights.AssessmentValueRange RangeValue { get { throw null; } } + public string SingleValue { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentInference System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Health.Insights.RadiologyInsights.ScoringAndAssessmentInference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class SexMismatchInference : Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInference, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal SexMismatchInference() { } diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/AssessmentValueRange.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/AssessmentValueRange.Serialization.cs new file mode 100644 index 000000000000..cf34bcf7c257 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/AssessmentValueRange.Serialization.cs @@ -0,0 +1,150 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class AssessmentValueRange : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AssessmentValueRange)} does not support writing '{format}' format."); + } + + writer.WritePropertyName("minimum"u8); + writer.WriteStringValue(Minimum); + writer.WritePropertyName("maximum"u8); + writer.WriteStringValue(Maximum); + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + AssessmentValueRange IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AssessmentValueRange)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeAssessmentValueRange(document.RootElement, options); + } + + internal static AssessmentValueRange DeserializeAssessmentValueRange(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string minimum = default; + string maximum = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("minimum"u8)) + { + minimum = property.Value.GetString(); + continue; + } + if (property.NameEquals("maximum"u8)) + { + maximum = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new AssessmentValueRange(minimum, maximum, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(AssessmentValueRange)} does not support writing '{options.Format}' format."); + } + } + + AssessmentValueRange IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeAssessmentValueRange(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(AssessmentValueRange)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AssessmentValueRange FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeAssessmentValueRange(document.RootElement); + } + + /// Convert into a . + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/AssessmentValueRange.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/AssessmentValueRange.cs new file mode 100644 index 000000000000..063bcc9817d6 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/AssessmentValueRange.cs @@ -0,0 +1,82 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// A range of values. + public partial class AssessmentValueRange + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// The minimum value. + /// The maximum value. + /// or is null. + internal AssessmentValueRange(string minimum, string maximum) + { + Argument.AssertNotNull(minimum, nameof(minimum)); + Argument.AssertNotNull(maximum, nameof(maximum)); + + Minimum = minimum; + Maximum = maximum; + } + + /// Initializes a new instance of . + /// The minimum value. + /// The maximum value. + /// Keeps track of any properties unknown to the library. + internal AssessmentValueRange(string minimum, string maximum, IDictionary serializedAdditionalRawData) + { + Minimum = minimum; + Maximum = maximum; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal AssessmentValueRange() + { + } + + /// The minimum value. + public string Minimum { get; } + /// The maximum value. + public string Maximum { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Docs/RadiologyInsightsClient.xml b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Docs/RadiologyInsightsClient.xml index 4be4584e5545..61146c283619 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Docs/RadiologyInsightsClient.xml +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Docs/RadiologyInsightsClient.xml @@ -179,6 +179,8 @@ RadiologyInsightsJob resource = new RadiologyInsightsJob { ProvideFocusedSentenceEvidence = true, }, + GuidanceOptions = new GuidanceOptions(true), + QualityMeasureOptions = new QualityMeasureOptions(new QualityMeasureType[] { QualityMeasureType.Mips76 }), }, Locale = "", }, @@ -366,6 +368,8 @@ RadiologyInsightsJob resource = new RadiologyInsightsJob { ProvideFocusedSentenceEvidence = true, }, + GuidanceOptions = new GuidanceOptions(true), + QualityMeasureOptions = new QualityMeasureOptions(new QualityMeasureType[] { QualityMeasureType.Mips76 }), }, Locale = "", }, @@ -627,6 +631,17 @@ using RequestContent content = RequestContent.Create(new { provideFocusedSentenceEvidence = true, }, + guidanceOptions = new + { + showGuidanceInHistory = true, + }, + qualityMeasureOptions = new + { + measureTypes = new object[] + { + "mips76" + }, + }, }, locale = "", }, @@ -2006,6 +2021,17 @@ using RequestContent content = RequestContent.Create(new { provideFocusedSentenceEvidence = true, }, + guidanceOptions = new + { + showGuidanceInHistory = true, + }, + qualityMeasureOptions = new + { + measureTypes = new object[] + { + "mips76" + }, + }, }, locale = "", }, diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Extension.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Extension.cs index 7a3d74a4c3ba..7af73b34d0c1 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Extension.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Extension.cs @@ -12,7 +12,7 @@ namespace Azure.Health.Insights.RadiologyInsights { /// /// Base for all elements - /// Based on [FHIR Element](https://www.hl7.org/fhir/datatypes.html#Element) + /// Based on [FHIR Element](https://www.hl7.org/fhir/R4/element.html) /// public partial class FhirR4Extension : FhirR4Element { diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/GuidanceInference.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/GuidanceInference.Serialization.cs new file mode 100644 index 000000000000..39a121896785 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/GuidanceInference.Serialization.cs @@ -0,0 +1,249 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class GuidanceInference : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(GuidanceInference)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + writer.WritePropertyName("finding"u8); + writer.WriteObjectValue(Finding, options); + writer.WritePropertyName("identifier"u8); + writer.WriteObjectValue(Identifier, options); + if (Optional.IsCollectionDefined(PresentGuidanceInformation)) + { + writer.WritePropertyName("presentGuidanceInformation"u8); + writer.WriteStartArray(); + foreach (var item in PresentGuidanceInformation) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + writer.WritePropertyName("ranking"u8); + writer.WriteStringValue(Ranking.ToString()); + if (Optional.IsCollectionDefined(RecommendationProposals)) + { + writer.WritePropertyName("recommendationProposals"u8); + writer.WriteStartArray(); + foreach (var item in RecommendationProposals) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(MissingGuidanceInformation)) + { + writer.WritePropertyName("missingGuidanceInformation"u8); + writer.WriteStartArray(); + foreach (var item in MissingGuidanceInformation) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + } + + GuidanceInference IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(GuidanceInference)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeGuidanceInference(document.RootElement, options); + } + + internal static GuidanceInference DeserializeGuidanceInference(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + FindingInference finding = default; + FhirR4CodeableConcept identifier = default; + IReadOnlyList presentGuidanceInformation = default; + GuidanceRankingType ranking = default; + IReadOnlyList recommendationProposals = default; + IReadOnlyList missingGuidanceInformation = default; + RadiologyInsightsInferenceType kind = default; + IReadOnlyList extension = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("finding"u8)) + { + finding = FindingInference.DeserializeFindingInference(property.Value, options); + continue; + } + if (property.NameEquals("identifier"u8)) + { + identifier = FhirR4CodeableConcept.DeserializeFhirR4CodeableConcept(property.Value, options); + continue; + } + if (property.NameEquals("presentGuidanceInformation"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RadiologyInsights.PresentGuidanceInformation.DeserializePresentGuidanceInformation(item, options)); + } + presentGuidanceInformation = array; + continue; + } + if (property.NameEquals("ranking"u8)) + { + ranking = new GuidanceRankingType(property.Value.GetString()); + continue; + } + if (property.NameEquals("recommendationProposals"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(FollowupRecommendationInference.DeserializeFollowupRecommendationInference(item, options)); + } + recommendationProposals = array; + continue; + } + if (property.NameEquals("missingGuidanceInformation"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + missingGuidanceInformation = array; + continue; + } + if (property.NameEquals("kind"u8)) + { + kind = new RadiologyInsightsInferenceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(FhirR4Extension.DeserializeFhirR4Extension(item, options)); + } + extension = array; + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new GuidanceInference( + kind, + extension ?? new ChangeTrackingList(), + serializedAdditionalRawData, + finding, + identifier, + presentGuidanceInformation ?? new ChangeTrackingList(), + ranking, + recommendationProposals ?? new ChangeTrackingList(), + missingGuidanceInformation ?? new ChangeTrackingList()); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(GuidanceInference)} does not support writing '{options.Format}' format."); + } + } + + GuidanceInference IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeGuidanceInference(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(GuidanceInference)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new GuidanceInference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeGuidanceInference(document.RootElement); + } + + /// Convert into a . + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/GuidanceInference.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/GuidanceInference.cs new file mode 100644 index 000000000000..dd651a4ed90c --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/GuidanceInference.cs @@ -0,0 +1,73 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// A guidance inference collects structured information about a specific finding in the report and can possibly propose appropriate follow-up recommendations, based upon established, evidence-based best practices i.e. ACR guidelines. + public partial class GuidanceInference : RadiologyInsightsInference + { + /// Initializes a new instance of . + /// The finding associated with the guidance. + /// The guidance identifier, as a concept. + /// See doc of GuidanceRankingType. + /// or is null. + internal GuidanceInference(FindingInference finding, FhirR4CodeableConcept identifier, GuidanceRankingType ranking) + { + Argument.AssertNotNull(finding, nameof(finding)); + Argument.AssertNotNull(identifier, nameof(identifier)); + + Kind = RadiologyInsightsInferenceType.Guidance; + Finding = finding; + Identifier = identifier; + PresentGuidanceInformation = new ChangeTrackingList(); + Ranking = ranking; + RecommendationProposals = new ChangeTrackingList(); + MissingGuidanceInformation = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// Discriminator property for RadiologyInsightsInference. + /// Additional Content defined by implementations. + /// Keeps track of any properties unknown to the library. + /// The finding associated with the guidance. + /// The guidance identifier, as a concept. + /// presentGuidanceInformation lists each item of the structured information (e.g. laterality) and corresponding details (left, right, bilateral) that is present in the document. + /// See doc of GuidanceRankingType. + /// The proposed follow-up recommendations, if any. If this is filled, missingGuidanceInformation cannot be filled (and vice versa). + /// Contains all missing items that are needed to determine follow-up. + internal GuidanceInference(RadiologyInsightsInferenceType kind, IReadOnlyList extension, IDictionary serializedAdditionalRawData, FindingInference finding, FhirR4CodeableConcept identifier, IReadOnlyList presentGuidanceInformation, GuidanceRankingType ranking, IReadOnlyList recommendationProposals, IReadOnlyList missingGuidanceInformation) : base(kind, extension, serializedAdditionalRawData) + { + Finding = finding; + Identifier = identifier; + PresentGuidanceInformation = presentGuidanceInformation; + Ranking = ranking; + RecommendationProposals = recommendationProposals; + MissingGuidanceInformation = missingGuidanceInformation; + } + + /// Initializes a new instance of for deserialization. + internal GuidanceInference() + { + } + + /// The finding associated with the guidance. + public FindingInference Finding { get; } + /// The guidance identifier, as a concept. + public FhirR4CodeableConcept Identifier { get; } + /// presentGuidanceInformation lists each item of the structured information (e.g. laterality) and corresponding details (left, right, bilateral) that is present in the document. + public IReadOnlyList PresentGuidanceInformation { get; } + /// See doc of GuidanceRankingType. + public GuidanceRankingType Ranking { get; } + /// The proposed follow-up recommendations, if any. If this is filled, missingGuidanceInformation cannot be filled (and vice versa). + public IReadOnlyList RecommendationProposals { get; } + /// Contains all missing items that are needed to determine follow-up. + public IReadOnlyList MissingGuidanceInformation { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/GuidanceOptions.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/GuidanceOptions.Serialization.cs new file mode 100644 index 000000000000..956bfebe544b --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/GuidanceOptions.Serialization.cs @@ -0,0 +1,142 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class GuidanceOptions : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(GuidanceOptions)} does not support writing '{format}' format."); + } + + writer.WritePropertyName("showGuidanceInHistory"u8); + writer.WriteBooleanValue(ShowGuidanceInHistory); + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + GuidanceOptions IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(GuidanceOptions)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeGuidanceOptions(document.RootElement, options); + } + + internal static GuidanceOptions DeserializeGuidanceOptions(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + bool showGuidanceInHistory = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("showGuidanceInHistory"u8)) + { + showGuidanceInHistory = property.Value.GetBoolean(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new GuidanceOptions(showGuidanceInHistory, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(GuidanceOptions)} does not support writing '{options.Format}' format."); + } + } + + GuidanceOptions IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeGuidanceOptions(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(GuidanceOptions)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static GuidanceOptions FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeGuidanceOptions(document.RootElement); + } + + /// Convert into a . + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/GuidanceOptions.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/GuidanceOptions.cs new file mode 100644 index 000000000000..899f088e6855 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/GuidanceOptions.cs @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// Guidance options. + public partial class GuidanceOptions + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// If this is true, also show guidances from a clinical history section i.e. if the first token of the associated finding's clinical indicator is in this section. Default is false. + public GuidanceOptions(bool showGuidanceInHistory) + { + ShowGuidanceInHistory = showGuidanceInHistory; + } + + /// Initializes a new instance of . + /// If this is true, also show guidances from a clinical history section i.e. if the first token of the associated finding's clinical indicator is in this section. Default is false. + /// Keeps track of any properties unknown to the library. + internal GuidanceOptions(bool showGuidanceInHistory, IDictionary serializedAdditionalRawData) + { + ShowGuidanceInHistory = showGuidanceInHistory; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal GuidanceOptions() + { + } + + /// If this is true, also show guidances from a clinical history section i.e. if the first token of the associated finding's clinical indicator is in this section. Default is false. + public bool ShowGuidanceInHistory { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/GuidanceRankingType.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/GuidanceRankingType.cs new file mode 100644 index 000000000000..de2636e79e9f --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/GuidanceRankingType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// Refers to how important a clinical guidance is. + public readonly partial struct GuidanceRankingType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public GuidanceRankingType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string HighValue = "high"; + private const string LowValue = "low"; + + /// high. + public static GuidanceRankingType High { get; } = new GuidanceRankingType(HighValue); + /// low. + public static GuidanceRankingType Low { get; } = new GuidanceRankingType(LowValue); + /// Determines if two values are the same. + public static bool operator ==(GuidanceRankingType left, GuidanceRankingType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(GuidanceRankingType left, GuidanceRankingType right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator GuidanceRankingType(string value) => new GuidanceRankingType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is GuidanceRankingType other && Equals(other); + /// + public bool Equals(GuidanceRankingType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/HealthInsightsRadiologyInsightsModelFactory.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/HealthInsightsRadiologyInsightsModelFactory.cs index c897a39a10c7..64a30a36065c 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/HealthInsightsRadiologyInsightsModelFactory.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/HealthInsightsRadiologyInsightsModelFactory.cs @@ -54,7 +54,7 @@ public static RadiologyInsightsInferenceResult RadiologyInsightsInferenceResult( /// /// The model's inferences for the given patient. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , and . /// /// A new instance for mocking. public static RadiologyInsightsPatientResult RadiologyInsightsPatientResult(string patientId = null, IEnumerable inferences = null) @@ -798,5 +798,105 @@ public static FollowupCommunicationInference FollowupCommunicationInference(IEnu recipient?.ToList(), wasAcknowledged); } + + /// Initializes a new instance of . + /// Additional Content defined by implementations. + /// Category, e.g. BIRADS. + /// The expansion of the category (which is an abbreviation.). + /// The value. If the value is a range, use field valueRange. + /// The range. + /// A new instance for mocking. + public static ScoringAndAssessmentInference ScoringAndAssessmentInference(IEnumerable extension = null, ScoringAndAssessmentCategoryType category = default, string categoryDescription = null, string singleValue = null, AssessmentValueRange rangeValue = null) + { + extension ??= new List(); + + return new ScoringAndAssessmentInference( + RadiologyInsightsInferenceType.ScoringAndAssessment, + extension?.ToList(), + serializedAdditionalRawData: null, + category, + categoryDescription, + singleValue, + rangeValue); + } + + /// Initializes a new instance of . + /// The minimum value. + /// The maximum value. + /// A new instance for mocking. + public static AssessmentValueRange AssessmentValueRange(string minimum = null, string maximum = null) + { + return new AssessmentValueRange(minimum, maximum, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Additional Content defined by implementations. + /// The finding associated with the guidance. + /// The guidance identifier, as a concept. + /// presentGuidanceInformation lists each item of the structured information (e.g. laterality) and corresponding details (left, right, bilateral) that is present in the document. + /// See doc of GuidanceRankingType. + /// The proposed follow-up recommendations, if any. If this is filled, missingGuidanceInformation cannot be filled (and vice versa). + /// Contains all missing items that are needed to determine follow-up. + /// A new instance for mocking. + public static GuidanceInference GuidanceInference(IEnumerable extension = null, FindingInference finding = null, FhirR4CodeableConcept identifier = null, IEnumerable presentGuidanceInformation = null, GuidanceRankingType ranking = default, IEnumerable recommendationProposals = null, IEnumerable missingGuidanceInformation = null) + { + extension ??= new List(); + presentGuidanceInformation ??= new List(); + recommendationProposals ??= new List(); + missingGuidanceInformation ??= new List(); + + return new GuidanceInference( + RadiologyInsightsInferenceType.Guidance, + extension?.ToList(), + serializedAdditionalRawData: null, + finding, + identifier, + presentGuidanceInformation?.ToList(), + ranking, + recommendationProposals?.ToList(), + missingGuidanceInformation?.ToList()); + } + + /// Initializes a new instance of . + /// The item of the structured information. + /// A list of size values, if the item is about size. + /// The maximum diameter value, if the item is about the maximum diameter. + /// The list of item values that are mentioned in the report. + /// Additional Content defined by implementations. + /// A new instance for mocking. + public static PresentGuidanceInformation PresentGuidanceInformation(string presentGuidanceItem = null, IEnumerable sizes = null, FhirR4Quantity maximumDiameterAsInText = null, IEnumerable presentGuidanceValues = null, IEnumerable extension = null) + { + sizes ??= new List(); + presentGuidanceValues ??= new List(); + extension ??= new List(); + + return new PresentGuidanceInformation( + presentGuidanceItem, + sizes?.ToList(), + maximumDiameterAsInText, + presentGuidanceValues?.ToList(), + extension?.ToList(), + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Additional Content defined by implementations. + /// The denominator, which identifies the QualityMeasure kind. + /// The ComplianceType indicates whether the document is compliant for the specified QualityMeasure or not, or if exceptions apply. + /// List of quality criteria identified in the document, if any. + /// A new instance for mocking. + public static QualityMeasureInference QualityMeasureInference(IEnumerable extension = null, string qualityMeasureDenominator = null, QualityMeasureComplianceType complianceType = default, IEnumerable qualityCriteria = null) + { + extension ??= new List(); + qualityCriteria ??= new List(); + + return new QualityMeasureInference( + RadiologyInsightsInferenceType.QualityMeasure, + extension?.ToList(), + serializedAdditionalRawData: null, + qualityMeasureDenominator, + complianceType, + qualityCriteria?.ToList()); + } } } diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PresentGuidanceInformation.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PresentGuidanceInformation.Serialization.cs new file mode 100644 index 000000000000..7e306c77006d --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PresentGuidanceInformation.Serialization.cs @@ -0,0 +1,238 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class PresentGuidanceInformation : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(PresentGuidanceInformation)} does not support writing '{format}' format."); + } + + writer.WritePropertyName("presentGuidanceItem"u8); + writer.WriteStringValue(PresentGuidanceItem); + if (Optional.IsCollectionDefined(Sizes)) + { + writer.WritePropertyName("sizes"u8); + writer.WriteStartArray(); + foreach (var item in Sizes) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(MaximumDiameterAsInText)) + { + writer.WritePropertyName("maximumDiameterAsInText"u8); + writer.WriteObjectValue(MaximumDiameterAsInText, options); + } + if (Optional.IsCollectionDefined(PresentGuidanceValues)) + { + writer.WritePropertyName("presentGuidanceValues"u8); + writer.WriteStartArray(); + foreach (var item in PresentGuidanceValues) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + PresentGuidanceInformation IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(PresentGuidanceInformation)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializePresentGuidanceInformation(document.RootElement, options); + } + + internal static PresentGuidanceInformation DeserializePresentGuidanceInformation(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string presentGuidanceItem = default; + IReadOnlyList sizes = default; + FhirR4Quantity maximumDiameterAsInText = default; + IReadOnlyList presentGuidanceValues = default; + IReadOnlyList extension = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("presentGuidanceItem"u8)) + { + presentGuidanceItem = property.Value.GetString(); + continue; + } + if (property.NameEquals("sizes"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(FhirR4Observation.DeserializeFhirR4Observation(item, options)); + } + sizes = array; + continue; + } + if (property.NameEquals("maximumDiameterAsInText"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + maximumDiameterAsInText = FhirR4Quantity.DeserializeFhirR4Quantity(property.Value, options); + continue; + } + if (property.NameEquals("presentGuidanceValues"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + presentGuidanceValues = array; + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(FhirR4Extension.DeserializeFhirR4Extension(item, options)); + } + extension = array; + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new PresentGuidanceInformation( + presentGuidanceItem, + sizes ?? new ChangeTrackingList(), + maximumDiameterAsInText, + presentGuidanceValues ?? new ChangeTrackingList(), + extension ?? new ChangeTrackingList(), + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(PresentGuidanceInformation)} does not support writing '{options.Format}' format."); + } + } + + PresentGuidanceInformation IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializePresentGuidanceInformation(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(PresentGuidanceInformation)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PresentGuidanceInformation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializePresentGuidanceInformation(document.RootElement); + } + + /// Convert into a . + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PresentGuidanceInformation.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PresentGuidanceInformation.cs new file mode 100644 index 000000000000..e46aa4622b04 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PresentGuidanceInformation.cs @@ -0,0 +1,94 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// An item of the structured information (e.g. laterality or size) and one or more corresponding details (e.g. left or size-value). + public partial class PresentGuidanceInformation + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// The item of the structured information. + /// is null. + internal PresentGuidanceInformation(string presentGuidanceItem) + { + Argument.AssertNotNull(presentGuidanceItem, nameof(presentGuidanceItem)); + + PresentGuidanceItem = presentGuidanceItem; + Sizes = new ChangeTrackingList(); + PresentGuidanceValues = new ChangeTrackingList(); + Extension = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// The item of the structured information. + /// A list of size values, if the item is about size. + /// The maximum diameter value, if the item is about the maximum diameter. + /// The list of item values that are mentioned in the report. + /// Additional Content defined by implementations. + /// Keeps track of any properties unknown to the library. + internal PresentGuidanceInformation(string presentGuidanceItem, IReadOnlyList sizes, FhirR4Quantity maximumDiameterAsInText, IReadOnlyList presentGuidanceValues, IReadOnlyList extension, IDictionary serializedAdditionalRawData) + { + PresentGuidanceItem = presentGuidanceItem; + Sizes = sizes; + MaximumDiameterAsInText = maximumDiameterAsInText; + PresentGuidanceValues = presentGuidanceValues; + Extension = extension; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal PresentGuidanceInformation() + { + } + + /// The item of the structured information. + public string PresentGuidanceItem { get; } + /// A list of size values, if the item is about size. + public IReadOnlyList Sizes { get; } + /// The maximum diameter value, if the item is about the maximum diameter. + public FhirR4Quantity MaximumDiameterAsInText { get; } + /// The list of item values that are mentioned in the report. + public IReadOnlyList PresentGuidanceValues { get; } + /// Additional Content defined by implementations. + public IReadOnlyList Extension { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/QualityMeasureComplianceType.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/QualityMeasureComplianceType.cs new file mode 100644 index 000000000000..c0f35e14e333 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/QualityMeasureComplianceType.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// Whether the document is compliant. + public readonly partial struct QualityMeasureComplianceType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public QualityMeasureComplianceType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string NotEligibleValue = "notEligible"; + private const string PerformanceNotMetValue = "performanceNotMet"; + private const string PerformanceMetValue = "performanceMet"; + private const string DenominatorExceptionValue = "denominatorException"; + + /// not eligible. + public static QualityMeasureComplianceType NotEligible { get; } = new QualityMeasureComplianceType(NotEligibleValue); + /// performance not met. + public static QualityMeasureComplianceType PerformanceNotMet { get; } = new QualityMeasureComplianceType(PerformanceNotMetValue); + /// performance met. + public static QualityMeasureComplianceType PerformanceMet { get; } = new QualityMeasureComplianceType(PerformanceMetValue); + /// denominator exception. + public static QualityMeasureComplianceType DenominatorException { get; } = new QualityMeasureComplianceType(DenominatorExceptionValue); + /// Determines if two values are the same. + public static bool operator ==(QualityMeasureComplianceType left, QualityMeasureComplianceType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(QualityMeasureComplianceType left, QualityMeasureComplianceType right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator QualityMeasureComplianceType(string value) => new QualityMeasureComplianceType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is QualityMeasureComplianceType other && Equals(other); + /// + public bool Equals(QualityMeasureComplianceType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/QualityMeasureInference.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/QualityMeasureInference.Serialization.cs new file mode 100644 index 000000000000..ed78f85e367f --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/QualityMeasureInference.Serialization.cs @@ -0,0 +1,188 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class QualityMeasureInference : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(QualityMeasureInference)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + writer.WritePropertyName("qualityMeasureDenominator"u8); + writer.WriteStringValue(QualityMeasureDenominator); + writer.WritePropertyName("complianceType"u8); + writer.WriteStringValue(ComplianceType.ToString()); + if (Optional.IsCollectionDefined(QualityCriteria)) + { + writer.WritePropertyName("qualityCriteria"u8); + writer.WriteStartArray(); + foreach (var item in QualityCriteria) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + } + + QualityMeasureInference IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(QualityMeasureInference)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeQualityMeasureInference(document.RootElement, options); + } + + internal static QualityMeasureInference DeserializeQualityMeasureInference(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string qualityMeasureDenominator = default; + QualityMeasureComplianceType complianceType = default; + IReadOnlyList qualityCriteria = default; + RadiologyInsightsInferenceType kind = default; + IReadOnlyList extension = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("qualityMeasureDenominator"u8)) + { + qualityMeasureDenominator = property.Value.GetString(); + continue; + } + if (property.NameEquals("complianceType"u8)) + { + complianceType = new QualityMeasureComplianceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("qualityCriteria"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + qualityCriteria = array; + continue; + } + if (property.NameEquals("kind"u8)) + { + kind = new RadiologyInsightsInferenceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(FhirR4Extension.DeserializeFhirR4Extension(item, options)); + } + extension = array; + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new QualityMeasureInference( + kind, + extension ?? new ChangeTrackingList(), + serializedAdditionalRawData, + qualityMeasureDenominator, + complianceType, + qualityCriteria ?? new ChangeTrackingList()); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(QualityMeasureInference)} does not support writing '{options.Format}' format."); + } + } + + QualityMeasureInference IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeQualityMeasureInference(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(QualityMeasureInference)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new QualityMeasureInference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeQualityMeasureInference(document.RootElement); + } + + /// Convert into a . + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/QualityMeasureInference.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/QualityMeasureInference.cs new file mode 100644 index 000000000000..c441f9784322 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/QualityMeasureInference.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// A QualityMeasure inference captures the MIPS ('measure based incentive payment system') quality measure criteria in the document that are used to measure the data completeness. + public partial class QualityMeasureInference : RadiologyInsightsInference + { + /// Initializes a new instance of . + /// The denominator, which identifies the QualityMeasure kind. + /// The ComplianceType indicates whether the document is compliant for the specified QualityMeasure or not, or if exceptions apply. + /// is null. + internal QualityMeasureInference(string qualityMeasureDenominator, QualityMeasureComplianceType complianceType) + { + Argument.AssertNotNull(qualityMeasureDenominator, nameof(qualityMeasureDenominator)); + + Kind = RadiologyInsightsInferenceType.QualityMeasure; + QualityMeasureDenominator = qualityMeasureDenominator; + ComplianceType = complianceType; + QualityCriteria = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// Discriminator property for RadiologyInsightsInference. + /// Additional Content defined by implementations. + /// Keeps track of any properties unknown to the library. + /// The denominator, which identifies the QualityMeasure kind. + /// The ComplianceType indicates whether the document is compliant for the specified QualityMeasure or not, or if exceptions apply. + /// List of quality criteria identified in the document, if any. + internal QualityMeasureInference(RadiologyInsightsInferenceType kind, IReadOnlyList extension, IDictionary serializedAdditionalRawData, string qualityMeasureDenominator, QualityMeasureComplianceType complianceType, IReadOnlyList qualityCriteria) : base(kind, extension, serializedAdditionalRawData) + { + QualityMeasureDenominator = qualityMeasureDenominator; + ComplianceType = complianceType; + QualityCriteria = qualityCriteria; + } + + /// Initializes a new instance of for deserialization. + internal QualityMeasureInference() + { + } + + /// The denominator, which identifies the QualityMeasure kind. + public string QualityMeasureDenominator { get; } + /// The ComplianceType indicates whether the document is compliant for the specified QualityMeasure or not, or if exceptions apply. + public QualityMeasureComplianceType ComplianceType { get; } + /// List of quality criteria identified in the document, if any. + public IReadOnlyList QualityCriteria { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/QualityMeasureOptions.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/QualityMeasureOptions.Serialization.cs new file mode 100644 index 000000000000..8e85e3a63406 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/QualityMeasureOptions.Serialization.cs @@ -0,0 +1,152 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class QualityMeasureOptions : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(QualityMeasureOptions)} does not support writing '{format}' format."); + } + + writer.WritePropertyName("measureTypes"u8); + writer.WriteStartArray(); + foreach (var item in MeasureTypes) + { + writer.WriteStringValue(item.ToString()); + } + writer.WriteEndArray(); + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + QualityMeasureOptions IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(QualityMeasureOptions)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeQualityMeasureOptions(document.RootElement, options); + } + + internal static QualityMeasureOptions DeserializeQualityMeasureOptions(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IList measureTypes = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("measureTypes"u8)) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(new QualityMeasureType(item.GetString())); + } + measureTypes = array; + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new QualityMeasureOptions(measureTypes, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(QualityMeasureOptions)} does not support writing '{options.Format}' format."); + } + } + + QualityMeasureOptions IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeQualityMeasureOptions(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(QualityMeasureOptions)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static QualityMeasureOptions FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeQualityMeasureOptions(document.RootElement); + } + + /// Convert into a . + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/QualityMeasureOptions.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/QualityMeasureOptions.cs new file mode 100644 index 000000000000..052a7235b800 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/QualityMeasureOptions.cs @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// Quality Measure Options. + public partial class QualityMeasureOptions + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// Id(s) of the MIPS measures that need to be evaluated in the document. + /// is null. + public QualityMeasureOptions(IEnumerable measureTypes) + { + Argument.AssertNotNull(measureTypes, nameof(measureTypes)); + + MeasureTypes = measureTypes.ToList(); + } + + /// Initializes a new instance of . + /// Id(s) of the MIPS measures that need to be evaluated in the document. + /// Keeps track of any properties unknown to the library. + internal QualityMeasureOptions(IList measureTypes, IDictionary serializedAdditionalRawData) + { + MeasureTypes = measureTypes; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal QualityMeasureOptions() + { + } + + /// Id(s) of the MIPS measures that need to be evaluated in the document. + public IList MeasureTypes { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/QualityMeasureType.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/QualityMeasureType.cs new file mode 100644 index 000000000000..b2b8f703fa2f --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/QualityMeasureType.cs @@ -0,0 +1,114 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// Mips types that can be checked by the engine. + public readonly partial struct QualityMeasureType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public QualityMeasureType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string Mips76Value = "mips76"; + private const string Mips147Value = "mips147"; + private const string Mips195Value = "mips195"; + private const string Mips360Value = "mips360"; + private const string Mips364Value = "mips364"; + private const string Mips405Value = "mips405"; + private const string Mips406Value = "mips406"; + private const string Mips436Value = "mips436"; + private const string Mips145Value = "mips145"; + private const string Acrad36Value = "acrad36"; + private const string Acrad37Value = "acrad37"; + private const string Acrad38Value = "acrad38"; + private const string Acrad39Value = "acrad39"; + private const string Acrad40Value = "acrad40"; + private const string Acrad41Value = "acrad41"; + private const string Acrad42Value = "acrad42"; + private const string Mednax55Value = "mednax55"; + private const string Msn13Value = "msn13"; + private const string Msn15Value = "msn15"; + private const string Qmm26Value = "qmm26"; + private const string Qmm17Value = "qmm17"; + private const string Qmm18Value = "qmm18"; + private const string Qmm19Value = "qmm19"; + + /// Mips 76. + public static QualityMeasureType Mips76 { get; } = new QualityMeasureType(Mips76Value); + /// Mips 147. + public static QualityMeasureType Mips147 { get; } = new QualityMeasureType(Mips147Value); + /// Mips 195. + public static QualityMeasureType Mips195 { get; } = new QualityMeasureType(Mips195Value); + /// Mips 360. + public static QualityMeasureType Mips360 { get; } = new QualityMeasureType(Mips360Value); + /// Mips 364. + public static QualityMeasureType Mips364 { get; } = new QualityMeasureType(Mips364Value); + /// Mips 405. + public static QualityMeasureType Mips405 { get; } = new QualityMeasureType(Mips405Value); + /// Mips 406. + public static QualityMeasureType Mips406 { get; } = new QualityMeasureType(Mips406Value); + /// Mips 436. + public static QualityMeasureType Mips436 { get; } = new QualityMeasureType(Mips436Value); + /// Mips 145. + public static QualityMeasureType Mips145 { get; } = new QualityMeasureType(Mips145Value); + /// Acrad 36. + public static QualityMeasureType Acrad36 { get; } = new QualityMeasureType(Acrad36Value); + /// Acrad 37. + public static QualityMeasureType Acrad37 { get; } = new QualityMeasureType(Acrad37Value); + /// Acrad 38. + public static QualityMeasureType Acrad38 { get; } = new QualityMeasureType(Acrad38Value); + /// Acrad 39. + public static QualityMeasureType Acrad39 { get; } = new QualityMeasureType(Acrad39Value); + /// Acrad 40. + public static QualityMeasureType Acrad40 { get; } = new QualityMeasureType(Acrad40Value); + /// Acrad 41. + public static QualityMeasureType Acrad41 { get; } = new QualityMeasureType(Acrad41Value); + /// Acrad 42. + public static QualityMeasureType Acrad42 { get; } = new QualityMeasureType(Acrad42Value); + /// Mednax55. + public static QualityMeasureType Mednax55 { get; } = new QualityMeasureType(Mednax55Value); + /// Msn13. + public static QualityMeasureType Msn13 { get; } = new QualityMeasureType(Msn13Value); + /// Msn15. + public static QualityMeasureType Msn15 { get; } = new QualityMeasureType(Msn15Value); + /// Qmm26. + public static QualityMeasureType Qmm26 { get; } = new QualityMeasureType(Qmm26Value); + /// Qmm17. + public static QualityMeasureType Qmm17 { get; } = new QualityMeasureType(Qmm17Value); + /// Qmm18. + public static QualityMeasureType Qmm18 { get; } = new QualityMeasureType(Qmm18Value); + /// Qmm19. + public static QualityMeasureType Qmm19 { get; } = new QualityMeasureType(Qmm19Value); + /// Determines if two values are the same. + public static bool operator ==(QualityMeasureType left, QualityMeasureType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(QualityMeasureType left, QualityMeasureType right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator QualityMeasureType(string value) => new QualityMeasureType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is QualityMeasureType other && Equals(other); + /// + public bool Equals(QualityMeasureType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsClientOptions.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsClientOptions.cs index c32d7850c9dc..5d7e5a8d4ce5 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsClientOptions.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsClientOptions.cs @@ -13,13 +13,15 @@ namespace Azure.Health.Insights.RadiologyInsights /// Client options for RadiologyInsightsClient. public partial class RadiologyInsightsClientOptions : ClientOptions { - private const ServiceVersion LatestVersion = ServiceVersion.V2024_04_01; + private const ServiceVersion LatestVersion = ServiceVersion.V2024_10_01; /// The version of the service to use. public enum ServiceVersion { /// Service version "2024-04-01". V2024_04_01 = 1, + /// Service version "2024-10-01". + V2024_10_01 = 2, } internal string Version { get; } @@ -30,6 +32,7 @@ public RadiologyInsightsClientOptions(ServiceVersion version = LatestVersion) Version = version switch { ServiceVersion.V2024_04_01 => "2024-04-01", + ServiceVersion.V2024_10_01 => "2024-10-01", _ => throw new NotSupportedException() }; } diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInference.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInference.Serialization.cs index 1640fff3e1bd..9ff8cf51f955 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInference.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInference.Serialization.cs @@ -93,9 +93,12 @@ internal static RadiologyInsightsInference DeserializeRadiologyInsightsInference case "finding": return FindingInference.DeserializeFindingInference(element, options); case "followupCommunication": return FollowupCommunicationInference.DeserializeFollowupCommunicationInference(element, options); case "followupRecommendation": return FollowupRecommendationInference.DeserializeFollowupRecommendationInference(element, options); + case "guidance": return GuidanceInference.DeserializeGuidanceInference(element, options); case "lateralityDiscrepancy": return LateralityDiscrepancyInference.DeserializeLateralityDiscrepancyInference(element, options); case "limitedOrderDiscrepancy": return LimitedOrderDiscrepancyInference.DeserializeLimitedOrderDiscrepancyInference(element, options); + case "qualityMeasure": return QualityMeasureInference.DeserializeQualityMeasureInference(element, options); case "radiologyProcedure": return RadiologyProcedureInference.DeserializeRadiologyProcedureInference(element, options); + case "scoringAndAssessment": return ScoringAndAssessmentInference.DeserializeScoringAndAssessmentInference(element, options); case "sexMismatch": return SexMismatchInference.DeserializeSexMismatchInference(element, options); } } diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInference.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInference.cs index 802adb427731..19ff43760195 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInference.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInference.cs @@ -23,7 +23,7 @@ namespace Azure.Health.Insights.RadiologyInsights /// - RadiologyProcedure /// - FollowupCommunication /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , and . /// public abstract partial class RadiologyInsightsInference { diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInferenceOptions.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInferenceOptions.Serialization.cs index abb233d3d4d8..dc9277b21032 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInferenceOptions.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInferenceOptions.Serialization.cs @@ -44,6 +44,16 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("findingOptions"u8); writer.WriteObjectValue(FindingOptions, options); } + if (Optional.IsDefined(GuidanceOptions)) + { + writer.WritePropertyName("guidanceOptions"u8); + writer.WriteObjectValue(GuidanceOptions, options); + } + if (Optional.IsDefined(QualityMeasureOptions)) + { + writer.WritePropertyName("qualityMeasureOptions"u8); + writer.WriteObjectValue(QualityMeasureOptions, options); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -83,6 +93,8 @@ internal static RadiologyInsightsInferenceOptions DeserializeRadiologyInsightsIn } FollowupRecommendationOptions followupRecommendationOptions = default; FindingOptions findingOptions = default; + GuidanceOptions guidanceOptions = default; + QualityMeasureOptions qualityMeasureOptions = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -105,13 +117,31 @@ internal static RadiologyInsightsInferenceOptions DeserializeRadiologyInsightsIn findingOptions = FindingOptions.DeserializeFindingOptions(property.Value, options); continue; } + if (property.NameEquals("guidanceOptions"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + guidanceOptions = GuidanceOptions.DeserializeGuidanceOptions(property.Value, options); + continue; + } + if (property.NameEquals("qualityMeasureOptions"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + qualityMeasureOptions = QualityMeasureOptions.DeserializeQualityMeasureOptions(property.Value, options); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new RadiologyInsightsInferenceOptions(followupRecommendationOptions, findingOptions, serializedAdditionalRawData); + return new RadiologyInsightsInferenceOptions(followupRecommendationOptions, findingOptions, guidanceOptions, qualityMeasureOptions, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInferenceOptions.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInferenceOptions.cs index 66db2f624256..3fa0c1914664 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInferenceOptions.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInferenceOptions.cs @@ -53,11 +53,15 @@ public RadiologyInsightsInferenceOptions() /// Initializes a new instance of . /// Follow-up recommendation options. /// Finding options. + /// Guidance options. + /// QualityMeasureOptions. /// Keeps track of any properties unknown to the library. - internal RadiologyInsightsInferenceOptions(FollowupRecommendationOptions followupRecommendationOptions, FindingOptions findingOptions, IDictionary serializedAdditionalRawData) + internal RadiologyInsightsInferenceOptions(FollowupRecommendationOptions followupRecommendationOptions, FindingOptions findingOptions, GuidanceOptions guidanceOptions, QualityMeasureOptions qualityMeasureOptions, IDictionary serializedAdditionalRawData) { FollowupRecommendationOptions = followupRecommendationOptions; FindingOptions = findingOptions; + GuidanceOptions = guidanceOptions; + QualityMeasureOptions = qualityMeasureOptions; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -65,5 +69,9 @@ internal RadiologyInsightsInferenceOptions(FollowupRecommendationOptions followu public FollowupRecommendationOptions FollowupRecommendationOptions { get; set; } /// Finding options. public FindingOptions FindingOptions { get; set; } + /// Guidance options. + public GuidanceOptions GuidanceOptions { get; set; } + /// QualityMeasureOptions. + public QualityMeasureOptions QualityMeasureOptions { get; set; } } } diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInferenceType.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInferenceType.cs index e36756668014..f0f23cea906b 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInferenceType.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInferenceType.cs @@ -32,6 +32,9 @@ public RadiologyInsightsInferenceType(string value) private const string FollowupRecommendationValue = "followupRecommendation"; private const string FollowupCommunicationValue = "followupCommunication"; private const string RadiologyProcedureValue = "radiologyProcedure"; + private const string ScoringAndAssessmentValue = "scoringAndAssessment"; + private const string GuidanceValue = "guidance"; + private const string QualityMeasureValue = "qualityMeasure"; /// Age mismatch inference type. public static RadiologyInsightsInferenceType AgeMismatch { get; } = new RadiologyInsightsInferenceType(AgeMismatchValue); @@ -53,6 +56,12 @@ public RadiologyInsightsInferenceType(string value) public static RadiologyInsightsInferenceType FollowupCommunication { get; } = new RadiologyInsightsInferenceType(FollowupCommunicationValue); /// Radiology Procedure inference type. public static RadiologyInsightsInferenceType RadiologyProcedure { get; } = new RadiologyInsightsInferenceType(RadiologyProcedureValue); + /// Scoring and assessment inference type. + public static RadiologyInsightsInferenceType ScoringAndAssessment { get; } = new RadiologyInsightsInferenceType(ScoringAndAssessmentValue); + /// Guidance inference type. + public static RadiologyInsightsInferenceType Guidance { get; } = new RadiologyInsightsInferenceType(GuidanceValue); + /// Guidance measure inference type. + public static RadiologyInsightsInferenceType QualityMeasure { get; } = new RadiologyInsightsInferenceType(QualityMeasureValue); /// Determines if two values are the same. public static bool operator ==(RadiologyInsightsInferenceType left, RadiologyInsightsInferenceType right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsPatientResult.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsPatientResult.cs index aeaff61759a4..97110384a295 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsPatientResult.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsPatientResult.cs @@ -51,7 +51,7 @@ public partial class RadiologyInsightsPatientResult /// /// The model's inferences for the given patient. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , and . /// /// or is null. internal RadiologyInsightsPatientResult(string patientId, IEnumerable inferences) @@ -68,7 +68,7 @@ internal RadiologyInsightsPatientResult(string patientId, IEnumerable /// The model's inferences for the given patient. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , and . /// /// Keeps track of any properties unknown to the library. internal RadiologyInsightsPatientResult(string patientId, IReadOnlyList inferences, IDictionary serializedAdditionalRawData) @@ -88,7 +88,7 @@ internal RadiologyInsightsPatientResult() /// /// The model's inferences for the given patient. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , and . /// public IReadOnlyList Inferences { get; } } diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ScoringAndAssessmentCategoryType.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ScoringAndAssessmentCategoryType.cs new file mode 100644 index 000000000000..d28d123e4926 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ScoringAndAssessmentCategoryType.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// The category that gets a value, e.g. BIRADS, Z-SCORE or FRAX SCORE. + public readonly partial struct ScoringAndAssessmentCategoryType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ScoringAndAssessmentCategoryType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string BIRADSValue = "BIRADS"; + private const string CRADSCOLONICFINDINGSValue = "C-RADS COLONIC FINDINGS"; + private const string CADRADSValue = "CAD-RADS"; + private const string LIRADSValue = "LI-RADS"; + private const string LUNGRADSValue = "LUNG-RADS"; + private const string NIRADSValue = "NI-RADS"; + private const string ORADSValue = "O-RADS"; + private const string PIRADSValue = "PI-RADS"; + private const string TIRADSValue = "TI-RADS"; + private const string CRADSEXTRACOLONICFINDINGSValue = "C-RADS EXTRACOLONIC FINDINGS"; + private const string LIFETIMEBREASTCANCERRISKValue = "LIFETIME BREAST CANCER RISK"; + private const string ASCVDRISKValue = "ASCVD RISK"; + private const string MODIFIEDGAILMODELRISKValue = "MODIFIED GAIL MODEL RISK"; + private const string TYRERCUSICKMODELRISKValue = "TYRER CUSICK MODEL RISK"; + private const string AGATSTONSCOREValue = "AGATSTON SCORE"; + private const string TENYEARCHDRISKValue = "10 YEAR CHD RISK"; + private const string ZSCOREValue = "Z-SCORE"; + private const string TSCOREValue = "T-SCORE"; + private const string CALCIUMVOLUMESCOREValue = "CALCIUM VOLUME SCORE"; + private const string USLIRADSVISUALIZATIONSCOREValue = "US LI-RADS VISUALIZATION SCORE"; + private const string USLIRADSValue = "US LI-RADS"; + private const string CEUSLIRADSValue = "CEUS LI-RADS"; + private const string TREATMENTRESPONSELIRADSValue = "TREATMENT RESPONSE LI-RADS"; + private const string ORADSMRIValue = "O-RADS MRI"; + private const string CALCIUMMASSSCOREValue = "CALCIUM MASS SCORE"; + private const string RISKOFMALIGNANCYINDEXValue = "RISK OF MALIGNANCY INDEX"; + private const string HNPCCMUTATIONRISKValue = "HNPCC MUTATION RISK"; + private const string ALBERTASTROKEPROGRAMEARLYCTSCOREValue = "ALBERTA STROKE PROGRAM EARLY CT SCORE"; + private const string KELLGRENLAWRENCEGRADINGSCALEValue = "KELLGREN-LAWRENCE GRADING SCALE"; + private const string TONNISCLASSIFICATIONValue = "TONNIS CLASSIFICATION"; + private const string CALCIUMSCOREUNSPECIFIEDValue = "CALCIUM SCORE (UNSPECIFIED)"; + private const string TENYEARCHDRISKOBSERVEDAGEValue = "10 YEAR CHD RISK (OBSERVED AGE)"; + private const string TENYEARCHDRISKARTERIALAGEValue = "10 YEAR CHD RISK (ARTERIAL AGE)"; + private const string FRAXSCOREValue = "FRAX SCORE"; + + /// BIRADS. + public static ScoringAndAssessmentCategoryType BIRADS { get; } = new ScoringAndAssessmentCategoryType(BIRADSValue); + /// C-RADS COLONIC FINDINGS. + public static ScoringAndAssessmentCategoryType CRADSCOLONICFINDINGS { get; } = new ScoringAndAssessmentCategoryType(CRADSCOLONICFINDINGSValue); + /// CAD-RADS. + public static ScoringAndAssessmentCategoryType CADRADS { get; } = new ScoringAndAssessmentCategoryType(CADRADSValue); + /// LI-RADS. + public static ScoringAndAssessmentCategoryType LIRADS { get; } = new ScoringAndAssessmentCategoryType(LIRADSValue); + /// LUNG-RADS. + public static ScoringAndAssessmentCategoryType LUNGRADS { get; } = new ScoringAndAssessmentCategoryType(LUNGRADSValue); + /// NI-RADS. + public static ScoringAndAssessmentCategoryType NIRADS { get; } = new ScoringAndAssessmentCategoryType(NIRADSValue); + /// O-RADS. + public static ScoringAndAssessmentCategoryType ORADS { get; } = new ScoringAndAssessmentCategoryType(ORADSValue); + /// PI-RADS. + public static ScoringAndAssessmentCategoryType PIRADS { get; } = new ScoringAndAssessmentCategoryType(PIRADSValue); + /// TI-RADS. + public static ScoringAndAssessmentCategoryType TIRADS { get; } = new ScoringAndAssessmentCategoryType(TIRADSValue); + /// C-RADS EXTRACOLONIC FINDINGS. + public static ScoringAndAssessmentCategoryType CRADSEXTRACOLONICFINDINGS { get; } = new ScoringAndAssessmentCategoryType(CRADSEXTRACOLONICFINDINGSValue); + /// LIFETIME BREAST CANCER RISK. + public static ScoringAndAssessmentCategoryType LIFETIMEBREASTCANCERRISK { get; } = new ScoringAndAssessmentCategoryType(LIFETIMEBREASTCANCERRISKValue); + /// ASCVD RISK. + public static ScoringAndAssessmentCategoryType ASCVDRISK { get; } = new ScoringAndAssessmentCategoryType(ASCVDRISKValue); + /// MODIFIED GAIL MODEL RISK. + public static ScoringAndAssessmentCategoryType MODIFIEDGAILMODELRISK { get; } = new ScoringAndAssessmentCategoryType(MODIFIEDGAILMODELRISKValue); + /// TYRER CUSICK MODEL RISK. + public static ScoringAndAssessmentCategoryType TYRERCUSICKMODELRISK { get; } = new ScoringAndAssessmentCategoryType(TYRERCUSICKMODELRISKValue); + /// AGATSTON SCORE. + public static ScoringAndAssessmentCategoryType AGATSTONSCORE { get; } = new ScoringAndAssessmentCategoryType(AGATSTONSCOREValue); + /// 10 YEAR CHD RISK. + public static ScoringAndAssessmentCategoryType TENYEARCHDRISK { get; } = new ScoringAndAssessmentCategoryType(TENYEARCHDRISKValue); + /// Z-SCORE. + public static ScoringAndAssessmentCategoryType ZSCORE { get; } = new ScoringAndAssessmentCategoryType(ZSCOREValue); + /// T-SCORE. + public static ScoringAndAssessmentCategoryType TSCORE { get; } = new ScoringAndAssessmentCategoryType(TSCOREValue); + /// CALCIUM VOLUME SCORE. + public static ScoringAndAssessmentCategoryType CALCIUMVOLUMESCORE { get; } = new ScoringAndAssessmentCategoryType(CALCIUMVOLUMESCOREValue); + /// US LI-RADS VISUALIZATION SCORE. + public static ScoringAndAssessmentCategoryType USLIRADSVISUALIZATIONSCORE { get; } = new ScoringAndAssessmentCategoryType(USLIRADSVISUALIZATIONSCOREValue); + /// US LI-RADS. + public static ScoringAndAssessmentCategoryType USLIRADS { get; } = new ScoringAndAssessmentCategoryType(USLIRADSValue); + /// CEUS LI-RADS. + public static ScoringAndAssessmentCategoryType CEUSLIRADS { get; } = new ScoringAndAssessmentCategoryType(CEUSLIRADSValue); + /// TREATMENT RESPONSE LI-RADS. + public static ScoringAndAssessmentCategoryType TREATMENTRESPONSELIRADS { get; } = new ScoringAndAssessmentCategoryType(TREATMENTRESPONSELIRADSValue); + /// O-RADS MRI. + public static ScoringAndAssessmentCategoryType ORADSMRI { get; } = new ScoringAndAssessmentCategoryType(ORADSMRIValue); + /// CALCIUM MASS SCORE. + public static ScoringAndAssessmentCategoryType CALCIUMMASSSCORE { get; } = new ScoringAndAssessmentCategoryType(CALCIUMMASSSCOREValue); + /// RISK OF MALIGNANCY INDEX. + public static ScoringAndAssessmentCategoryType RISKOFMALIGNANCYINDEX { get; } = new ScoringAndAssessmentCategoryType(RISKOFMALIGNANCYINDEXValue); + /// HNPCC MUTATION RISK. + public static ScoringAndAssessmentCategoryType HNPCCMUTATIONRISK { get; } = new ScoringAndAssessmentCategoryType(HNPCCMUTATIONRISKValue); + /// ALBERTA STROKE PROGRAM EARLY CT SCORE. + public static ScoringAndAssessmentCategoryType ALBERTASTROKEPROGRAMEARLYCTSCORE { get; } = new ScoringAndAssessmentCategoryType(ALBERTASTROKEPROGRAMEARLYCTSCOREValue); + /// KELLGREN-LAWRENCE GRADING SCALE. + public static ScoringAndAssessmentCategoryType KELLGRENLAWRENCEGRADINGSCALE { get; } = new ScoringAndAssessmentCategoryType(KELLGRENLAWRENCEGRADINGSCALEValue); + /// TONNIS CLASSIFICATION. + public static ScoringAndAssessmentCategoryType TONNISCLASSIFICATION { get; } = new ScoringAndAssessmentCategoryType(TONNISCLASSIFICATIONValue); + /// CALCIUM SCORE (UNSPECIFIED). + public static ScoringAndAssessmentCategoryType CALCIUMSCOREUNSPECIFIED { get; } = new ScoringAndAssessmentCategoryType(CALCIUMSCOREUNSPECIFIEDValue); + /// 10 YEAR CHD RISK (OBSERVED AGE). + public static ScoringAndAssessmentCategoryType TENYEARCHDRISKOBSERVEDAGE { get; } = new ScoringAndAssessmentCategoryType(TENYEARCHDRISKOBSERVEDAGEValue); + /// 10 YEAR CHD RISK (ARTERIAL AGE). + public static ScoringAndAssessmentCategoryType TENYEARCHDRISKARTERIALAGE { get; } = new ScoringAndAssessmentCategoryType(TENYEARCHDRISKARTERIALAGEValue); + /// FRAX SCORE. + public static ScoringAndAssessmentCategoryType FRAXSCORE { get; } = new ScoringAndAssessmentCategoryType(FRAXSCOREValue); + /// Determines if two values are the same. + public static bool operator ==(ScoringAndAssessmentCategoryType left, ScoringAndAssessmentCategoryType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ScoringAndAssessmentCategoryType left, ScoringAndAssessmentCategoryType right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator ScoringAndAssessmentCategoryType(string value) => new ScoringAndAssessmentCategoryType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ScoringAndAssessmentCategoryType other && Equals(other); + /// + public bool Equals(ScoringAndAssessmentCategoryType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ScoringAndAssessmentInference.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ScoringAndAssessmentInference.Serialization.cs new file mode 100644 index 000000000000..d79f2b5f144e --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ScoringAndAssessmentInference.Serialization.cs @@ -0,0 +1,190 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class ScoringAndAssessmentInference : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(ScoringAndAssessmentInference)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + writer.WritePropertyName("category"u8); + writer.WriteStringValue(Category.ToString()); + writer.WritePropertyName("categoryDescription"u8); + writer.WriteStringValue(CategoryDescription); + if (Optional.IsDefined(SingleValue)) + { + writer.WritePropertyName("singleValue"u8); + writer.WriteStringValue(SingleValue); + } + if (Optional.IsDefined(RangeValue)) + { + writer.WritePropertyName("rangeValue"u8); + writer.WriteObjectValue(RangeValue, options); + } + } + + ScoringAndAssessmentInference IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(ScoringAndAssessmentInference)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeScoringAndAssessmentInference(document.RootElement, options); + } + + internal static ScoringAndAssessmentInference DeserializeScoringAndAssessmentInference(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ScoringAndAssessmentCategoryType category = default; + string categoryDescription = default; + string singleValue = default; + AssessmentValueRange rangeValue = default; + RadiologyInsightsInferenceType kind = default; + IReadOnlyList extension = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("category"u8)) + { + category = new ScoringAndAssessmentCategoryType(property.Value.GetString()); + continue; + } + if (property.NameEquals("categoryDescription"u8)) + { + categoryDescription = property.Value.GetString(); + continue; + } + if (property.NameEquals("singleValue"u8)) + { + singleValue = property.Value.GetString(); + continue; + } + if (property.NameEquals("rangeValue"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rangeValue = AssessmentValueRange.DeserializeAssessmentValueRange(property.Value, options); + continue; + } + if (property.NameEquals("kind"u8)) + { + kind = new RadiologyInsightsInferenceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(FhirR4Extension.DeserializeFhirR4Extension(item, options)); + } + extension = array; + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new ScoringAndAssessmentInference( + kind, + extension ?? new ChangeTrackingList(), + serializedAdditionalRawData, + category, + categoryDescription, + singleValue, + rangeValue); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(ScoringAndAssessmentInference)} does not support writing '{options.Format}' format."); + } + } + + ScoringAndAssessmentInference IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeScoringAndAssessmentInference(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(ScoringAndAssessmentInference)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ScoringAndAssessmentInference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeScoringAndAssessmentInference(document.RootElement); + } + + /// Convert into a . + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ScoringAndAssessmentInference.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ScoringAndAssessmentInference.cs new file mode 100644 index 000000000000..0377bb19445d --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ScoringAndAssessmentInference.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// Identifies and highlights Risk, Scoring, Assessment and Classifications and correspondent values dictated in a report, e.g. 'BIRADS 5'. + public partial class ScoringAndAssessmentInference : RadiologyInsightsInference + { + /// Initializes a new instance of . + /// Category, e.g. BIRADS. + /// The expansion of the category (which is an abbreviation.). + /// is null. + internal ScoringAndAssessmentInference(ScoringAndAssessmentCategoryType category, string categoryDescription) + { + Argument.AssertNotNull(categoryDescription, nameof(categoryDescription)); + + Kind = RadiologyInsightsInferenceType.ScoringAndAssessment; + Category = category; + CategoryDescription = categoryDescription; + } + + /// Initializes a new instance of . + /// Discriminator property for RadiologyInsightsInference. + /// Additional Content defined by implementations. + /// Keeps track of any properties unknown to the library. + /// Category, e.g. BIRADS. + /// The expansion of the category (which is an abbreviation.). + /// The value. If the value is a range, use field valueRange. + /// The range. + internal ScoringAndAssessmentInference(RadiologyInsightsInferenceType kind, IReadOnlyList extension, IDictionary serializedAdditionalRawData, ScoringAndAssessmentCategoryType category, string categoryDescription, string singleValue, AssessmentValueRange rangeValue) : base(kind, extension, serializedAdditionalRawData) + { + Category = category; + CategoryDescription = categoryDescription; + SingleValue = singleValue; + RangeValue = rangeValue; + } + + /// Initializes a new instance of for deserialization. + internal ScoringAndAssessmentInference() + { + } + + /// Category, e.g. BIRADS. + public ScoringAndAssessmentCategoryType Category { get; } + /// The expansion of the category (which is an abbreviation.). + public string CategoryDescription { get; } + /// The value. If the value is a range, use field valueRange. + public string SingleValue { get; } + /// The range. + public AssessmentValueRange RangeValue { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/tests/Generated/Samples/Samples_RadiologyInsightsClient.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/tests/Generated/Samples/Samples_RadiologyInsightsClient.cs index e6c4122d9333..9b6af0230319 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/tests/Generated/Samples/Samples_RadiologyInsightsClient.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/tests/Generated/Samples/Samples_RadiologyInsightsClient.cs @@ -316,6 +316,17 @@ public void Example_RadiologyInsightsJob_InferRadiologyInsights_AllParameters() { provideFocusedSentenceEvidence = true, }, + guidanceOptions = new + { + showGuidanceInHistory = true, + }, + qualityMeasureOptions = new + { + measureTypes = new object[] + { +"mips76" + }, + }, }, locale = "", }, @@ -1680,6 +1691,17 @@ public async Task Example_RadiologyInsightsJob_InferRadiologyInsights_AllParamet { provideFocusedSentenceEvidence = true, }, + guidanceOptions = new + { + showGuidanceInHistory = true, + }, + qualityMeasureOptions = new + { + measureTypes = new object[] + { +"mips76" + }, + }, }, locale = "", }, @@ -2975,6 +2997,8 @@ public void Example_RadiologyInsightsJob_InferRadiologyInsights_AllParameters_Co { ProvideFocusedSentenceEvidence = true, }, + GuidanceOptions = new GuidanceOptions(true), + QualityMeasureOptions = new QualityMeasureOptions(new QualityMeasureType[] { QualityMeasureType.Mips76 }), }, Locale = "", }, @@ -3152,6 +3176,8 @@ public async Task Example_RadiologyInsightsJob_InferRadiologyInsights_AllParamet { ProvideFocusedSentenceEvidence = true, }, + GuidanceOptions = new GuidanceOptions(true), + QualityMeasureOptions = new QualityMeasureOptions(new QualityMeasureType[] { QualityMeasureType.Mips76 }), }, Locale = "", }, diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/tsp-location.yaml b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/tsp-location.yaml index eb5a3275d724..10f876aa5d13 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/tsp-location.yaml +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/tsp-location.yaml @@ -1,7 +1,6 @@ directory: specification/ai/HealthInsights/HealthInsights.RadiologyInsights -additionalDirectories: - - specification/ai/HealthInsights/HealthInsights.OpenAPI - - specification/ai/HealthInsights/HealthInsights.Common -commit: 29ace61a609945d7b72742030394e1c239d63b10 +commit: f6161d945b00b261abb78953defafc6fc8cc6ca4 repo: Azure/azure-rest-api-specs -cleanup: false +additionalDirectories: +- specification/ai/HealthInsights/HealthInsights.Common +- specification/ai/HealthInsights/HealthInsights.OpenAPI