diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/api/Azure.Health.Insights.CancerProfiling.netstandard2.0.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/api/Azure.Health.Insights.CancerProfiling.netstandard2.0.cs index feebfae5dfd9c..75197a0ce0d36 100644 --- a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/api/Azure.Health.Insights.CancerProfiling.netstandard2.0.cs +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/api/Azure.Health.Insights.CancerProfiling.netstandard2.0.cs @@ -7,25 +7,25 @@ public CancerProfilingClient(System.Uri endpoint, Azure.AzureKeyCredential crede public CancerProfilingClient(System.Uri endpoint, Azure.AzureKeyCredential credential, Azure.Health.Insights.CancerProfiling.CancerProfilingClientOptions options) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } public virtual Azure.Operation InferCancerProfile(Azure.WaitUntil waitUntil, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Operation InferCancerProfile(Azure.WaitUntil waitUntil, Azure.Health.Insights.CancerProfiling.OncoPhenotypeData oncoPhenotypeData, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Operation InferCancerProfile(Azure.WaitUntil waitUntil, Azure.Health.Insights.CancerProfiling.OncoPhenotypeData oncoPhenotypeData, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> InferCancerProfileAsync(Azure.WaitUntil waitUntil, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task> InferCancerProfileAsync(Azure.WaitUntil waitUntil, Azure.Health.Insights.CancerProfiling.OncoPhenotypeData oncoPhenotypeData, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> InferCancerProfileAsync(Azure.WaitUntil waitUntil, Azure.Health.Insights.CancerProfiling.OncoPhenotypeData oncoPhenotypeData, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class CancerProfilingClientOptions : Azure.Core.ClientOptions { - public CancerProfilingClientOptions(Azure.Health.Insights.CancerProfiling.CancerProfilingClientOptions.ServiceVersion version = Azure.Health.Insights.CancerProfiling.CancerProfilingClientOptions.ServiceVersion.V2023_03_01_Preview) { } + public CancerProfilingClientOptions(Azure.Health.Insights.CancerProfiling.CancerProfilingClientOptions.ServiceVersion version = Azure.Health.Insights.CancerProfiling.CancerProfilingClientOptions.ServiceVersion.V2023_09_01_Preview) { } public enum ServiceVersion { - V2023_03_01_Preview = 1, + V2023_09_01_Preview = 1, } } public partial class ClinicalCodedElement { - public ClinicalCodedElement(string system, string code) { } - public string Code { get { throw null; } set { } } - public string Name { get { throw null; } set { } } - public string System { get { throw null; } set { } } - public string Value { get { throw null; } set { } } + internal ClinicalCodedElement() { } + public string Code { get { throw null; } } + public string Name { get { throw null; } } + public string System { get { throw null; } } + public string Value { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct ClinicalDocumentType : System.IEquatable @@ -36,11 +36,11 @@ public ClinicalCodedElement(string system, string code) { } public static Azure.Health.Insights.CancerProfiling.ClinicalDocumentType Consultation { get { throw null; } } public static Azure.Health.Insights.CancerProfiling.ClinicalDocumentType DischargeSummary { get { throw null; } } public static Azure.Health.Insights.CancerProfiling.ClinicalDocumentType HistoryAndPhysical { get { throw null; } } - public static Azure.Health.Insights.CancerProfiling.ClinicalDocumentType Imaging { get { throw null; } } public static Azure.Health.Insights.CancerProfiling.ClinicalDocumentType Laboratory { get { throw null; } } - public static Azure.Health.Insights.CancerProfiling.ClinicalDocumentType Pathology { get { throw null; } } + public static Azure.Health.Insights.CancerProfiling.ClinicalDocumentType PathologyReport { get { throw null; } } public static Azure.Health.Insights.CancerProfiling.ClinicalDocumentType Procedure { get { throw null; } } public static Azure.Health.Insights.CancerProfiling.ClinicalDocumentType Progress { get { throw null; } } + public static Azure.Health.Insights.CancerProfiling.ClinicalDocumentType RadiologyReport { get { throw null; } } public bool Equals(Azure.Health.Insights.CancerProfiling.ClinicalDocumentType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } @@ -59,6 +59,35 @@ internal ClinicalNoteEvidence() { } public int Offset { get { throw null; } } public string Text { get { throw null; } } } + public partial class CodeableConcept + { + public CodeableConcept() { } + public System.Collections.Generic.IList Coding { get { throw null; } } + public string Id { get { throw null; } set { } } + public string Text { get { throw null; } set { } } + } + public partial class Coding + { + public Coding() { } + public string Code { get { throw null; } set { } } + public string Display { get { throw null; } set { } } + public System.Collections.Generic.IList Extension { get { throw null; } } + public string Id { get { throw null; } set { } } + public string System { get { throw null; } set { } } + public string Version { get { throw null; } set { } } + } + public partial class DocumentAdministrativeMetadata + { + public DocumentAdministrativeMetadata() { } + public string EncounterId { get { throw null; } set { } } + public System.Collections.Generic.IList OrderedProcedures { get { throw null; } } + } + public partial class DocumentAuthor + { + public DocumentAuthor() { } + public string FullName { get { throw null; } set { } } + public string Id { get { throw null; } set { } } + } public partial class DocumentContent { public DocumentContent(Azure.Health.Insights.CancerProfiling.DocumentContentSourceType sourceType, string value) { } @@ -103,13 +132,72 @@ public DocumentContent(Azure.Health.Insights.CancerProfiling.DocumentContentSour public static bool operator !=(Azure.Health.Insights.CancerProfiling.DocumentType left, Azure.Health.Insights.CancerProfiling.DocumentType right) { throw null; } public override string ToString() { throw null; } } + public partial class Encounter + { + public Encounter(string id) { } + public Azure.Health.Insights.CancerProfiling.EncounterClass? Class { get { throw null; } set { } } + public string Id { get { throw null; } } + public Azure.Health.Insights.CancerProfiling.TimePeriod Period { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct EncounterClass : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public EncounterClass(string value) { throw null; } + public static Azure.Health.Insights.CancerProfiling.EncounterClass Ambulatory { get { throw null; } } + public static Azure.Health.Insights.CancerProfiling.EncounterClass Emergency { get { throw null; } } + public static Azure.Health.Insights.CancerProfiling.EncounterClass HealthHome { get { throw null; } } + public static Azure.Health.Insights.CancerProfiling.EncounterClass InPatient { get { throw null; } } + public static Azure.Health.Insights.CancerProfiling.EncounterClass Observation { get { throw null; } } + public static Azure.Health.Insights.CancerProfiling.EncounterClass Virtual { get { throw null; } } + public bool Equals(Azure.Health.Insights.CancerProfiling.EncounterClass 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.CancerProfiling.EncounterClass left, Azure.Health.Insights.CancerProfiling.EncounterClass right) { throw null; } + public static implicit operator Azure.Health.Insights.CancerProfiling.EncounterClass (string value) { throw null; } + public static bool operator !=(Azure.Health.Insights.CancerProfiling.EncounterClass left, Azure.Health.Insights.CancerProfiling.EncounterClass right) { throw null; } + public override string ToString() { throw null; } + } + public partial class Extension + { + public Extension(string url) { } + public string Id { get { throw null; } set { } } + public string Url { get { throw null; } } + public bool? ValueBoolean { get { throw null; } set { } } + public Azure.Health.Insights.CancerProfiling.CodeableConcept ValueCodeableConcept { get { throw null; } set { } } + public string ValueDateTime { get { throw null; } set { } } + public int? ValueInteger { get { throw null; } set { } } + public Azure.Health.Insights.CancerProfiling.Period ValuePeriod { get { throw null; } set { } } + public Azure.Health.Insights.CancerProfiling.Quantity ValueQuantity { get { throw null; } set { } } + public Azure.Health.Insights.CancerProfiling.Range ValueRange { get { throw null; } set { } } + public Azure.Health.Insights.CancerProfiling.Ratio ValueRatio { get { throw null; } set { } } + public Azure.Health.Insights.CancerProfiling.Reference ValueReference { get { throw null; } set { } } + public Azure.Health.Insights.CancerProfiling.SampledData ValueSampledData { get { throw null; } set { } } + public string ValueString { get { throw null; } set { } } + public System.TimeSpan? ValueTime { get { throw null; } set { } } + } public static partial class HealthInsightsCancerProfilingModelFactory { + public static Azure.Health.Insights.CancerProfiling.ClinicalCodedElement ClinicalCodedElement(string system = null, string code = null, string name = null, string value = null) { throw null; } public static Azure.Health.Insights.CancerProfiling.ClinicalNoteEvidence ClinicalNoteEvidence(string id = null, string text = null, int offset = 0, int length = 0) { throw null; } public static Azure.Health.Insights.CancerProfiling.InferenceEvidence InferenceEvidence(Azure.Health.Insights.CancerProfiling.ClinicalNoteEvidence patientDataEvidence = null, Azure.Health.Insights.CancerProfiling.ClinicalCodedElement patientInfoEvidence = null, float? importance = default(float?)) { throw null; } public static Azure.Health.Insights.CancerProfiling.OncoPhenotypeInference OncoPhenotypeInference(Azure.Health.Insights.CancerProfiling.OncoPhenotypeInferenceType type = default(Azure.Health.Insights.CancerProfiling.OncoPhenotypeInferenceType), string value = null, string description = null, float? confidenceScore = default(float?), System.Collections.Generic.IEnumerable evidence = null, string caseId = null) { throw null; } - public static Azure.Health.Insights.CancerProfiling.OncoPhenotypePatientResult OncoPhenotypePatientResult(string id = null, System.Collections.Generic.IEnumerable inferences = null) { throw null; } - public static Azure.Health.Insights.CancerProfiling.OncoPhenotypeResults OncoPhenotypeResults(System.Collections.Generic.IEnumerable patients = null, string modelVersion = null) { throw null; } + public static Azure.Health.Insights.CancerProfiling.OncoPhenotypeInferenceResult OncoPhenotypeInferenceResult(System.Collections.Generic.IEnumerable patientResults = null, string modelVersion = null) { throw null; } + public static Azure.Health.Insights.CancerProfiling.OncoPhenotypePatientResult OncoPhenotypePatientResult(string patientId = null, System.Collections.Generic.IEnumerable inferences = null) { throw null; } + } + public partial class Identifier + { + public Identifier() { } + public Azure.Health.Insights.CancerProfiling.Reference Assigner { get { throw null; } set { } } + public string Id { get { throw null; } set { } } + public Azure.Health.Insights.CancerProfiling.Period Period { get { throw null; } set { } } + public string System { get { throw null; } set { } } + public Azure.Health.Insights.CancerProfiling.CodeableConcept Type { get { throw null; } set { } } + public string Use { get { throw null; } set { } } + public string Value { get { throw null; } set { } } } public partial class InferenceEvidence { @@ -118,6 +206,16 @@ internal InferenceEvidence() { } public Azure.Health.Insights.CancerProfiling.ClinicalNoteEvidence PatientDataEvidence { get { throw null; } } public Azure.Health.Insights.CancerProfiling.ClinicalCodedElement PatientInfoEvidence { get { throw null; } } } + public partial class Meta + { + public Meta() { } + public string LastUpdated { get { throw null; } set { } } + public System.Collections.Generic.IList Profile { get { throw null; } } + public System.Collections.Generic.IList Security { get { throw null; } } + public string Source { get { throw null; } set { } } + public System.Collections.Generic.IList Tag { get { throw null; } } + public string VersionId { get { throw null; } set { } } + } public partial class OncoPhenotypeData { public OncoPhenotypeData(System.Collections.Generic.IEnumerable patients) { } @@ -134,6 +232,12 @@ internal OncoPhenotypeInference() { } public Azure.Health.Insights.CancerProfiling.OncoPhenotypeInferenceType Type { get { throw null; } } public string Value { get { throw null; } } } + public partial class OncoPhenotypeInferenceResult + { + internal OncoPhenotypeInferenceResult() { } + public string ModelVersion { get { throw null; } } + public System.Collections.Generic.IReadOnlyList PatientResults { get { throw null; } } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct OncoPhenotypeInferenceType : System.IEquatable { @@ -143,6 +247,7 @@ internal OncoPhenotypeInference() { } public static Azure.Health.Insights.CancerProfiling.OncoPhenotypeInferenceType ClinicalStageM { get { throw null; } } public static Azure.Health.Insights.CancerProfiling.OncoPhenotypeInferenceType ClinicalStageN { get { throw null; } } public static Azure.Health.Insights.CancerProfiling.OncoPhenotypeInferenceType ClinicalStageT { get { throw null; } } + public static Azure.Health.Insights.CancerProfiling.OncoPhenotypeInferenceType DiagnosisDate { get { throw null; } } public static Azure.Health.Insights.CancerProfiling.OncoPhenotypeInferenceType Histology { get { throw null; } } public static Azure.Health.Insights.CancerProfiling.OncoPhenotypeInferenceType PathologicStageM { get { throw null; } } public static Azure.Health.Insights.CancerProfiling.OncoPhenotypeInferenceType PathologicStageN { get { throw null; } } @@ -169,30 +274,34 @@ public OncoPhenotypeModelConfiguration() { } public partial class OncoPhenotypePatientResult { internal OncoPhenotypePatientResult() { } - public string Id { get { throw null; } } public System.Collections.Generic.IReadOnlyList Inferences { get { throw null; } } + public string PatientId { get { throw null; } } } - public partial class OncoPhenotypeResults + public partial class OrderedProcedure { - internal OncoPhenotypeResults() { } - public string ModelVersion { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Patients { get { throw null; } } + public OrderedProcedure() { } + public Azure.Health.Insights.CancerProfiling.CodeableConcept Code { get { throw null; } set { } } + public string Description { get { throw null; } set { } } + public System.Collections.Generic.IList Extension { get { throw null; } } } public partial class PatientDocument { public PatientDocument(Azure.Health.Insights.CancerProfiling.DocumentType type, string id, Azure.Health.Insights.CancerProfiling.DocumentContent content) { } + public Azure.Health.Insights.CancerProfiling.DocumentAdministrativeMetadata AdministrativeMetadata { get { throw null; } set { } } + public System.Collections.Generic.IList Authors { get { throw null; } } public Azure.Health.Insights.CancerProfiling.ClinicalDocumentType? ClinicalType { get { throw null; } set { } } public Azure.Health.Insights.CancerProfiling.DocumentContent Content { get { throw null; } } public System.DateTimeOffset? CreatedDateTime { get { throw null; } set { } } public string Id { get { throw null; } } public string Language { get { throw null; } set { } } + public Azure.Health.Insights.CancerProfiling.SpecialtyType? SpecialtyType { get { throw null; } set { } } public Azure.Health.Insights.CancerProfiling.DocumentType Type { get { throw null; } } } public partial class PatientInfo { public PatientInfo() { } public System.DateTimeOffset? BirthDate { get { throw null; } set { } } - public System.Collections.Generic.IList ClinicalInfo { get { throw null; } } + public System.Collections.Generic.IList ClinicalInfo { get { throw null; } } public Azure.Health.Insights.CancerProfiling.PatientInfoSex? Sex { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] @@ -217,9 +326,96 @@ public PatientInfo() { } public partial class PatientRecord { public PatientRecord(string id) { } - public System.Collections.Generic.IList Data { get { throw null; } } + public System.Collections.Generic.IList Encounters { get { throw null; } } public string Id { get { throw null; } } public Azure.Health.Insights.CancerProfiling.PatientInfo Info { get { throw null; } set { } } + public System.Collections.Generic.IList PatientDocuments { get { throw null; } } + } + public partial class Period + { + public Period() { } + public string End { get { throw null; } set { } } + public string Id { get { throw null; } set { } } + public string Start { get { throw null; } set { } } + } + public partial class Quantity + { + public Quantity() { } + public string Code { get { throw null; } set { } } + public string Comparator { get { throw null; } set { } } + public string Id { get { throw null; } set { } } + public string System { get { throw null; } set { } } + public string Unit { get { throw null; } set { } } + public decimal? Value { get { throw null; } set { } } + } + public partial class Range + { + public Range() { } + public Azure.Health.Insights.CancerProfiling.Quantity High { get { throw null; } set { } } + public string Id { get { throw null; } set { } } + public Azure.Health.Insights.CancerProfiling.Quantity Low { get { throw null; } set { } } + } + public partial class Ratio + { + public Ratio() { } + public Azure.Health.Insights.CancerProfiling.Quantity Denominator { get { throw null; } set { } } + public string Id { get { throw null; } set { } } + public Azure.Health.Insights.CancerProfiling.Quantity Numerator { get { throw null; } set { } } + } + public partial class Reference + { + public Reference() { } + public string Display { get { throw null; } set { } } + public string Id { get { throw null; } set { } } + public Azure.Health.Insights.CancerProfiling.Identifier Identifier { get { throw null; } set { } } + public string ReferenceProperty { get { throw null; } set { } } + public string Type { get { throw null; } set { } } + } + public partial class Resource + { + public Resource(string resourceType) { } + public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } + public string Id { get { throw null; } set { } } + public string ImplicitRules { get { throw null; } set { } } + public string Language { get { throw null; } set { } } + public Azure.Health.Insights.CancerProfiling.Meta Meta { get { throw null; } set { } } + public string ResourceType { get { throw null; } } + } + public partial class SampledData + { + public SampledData(Azure.Health.Insights.CancerProfiling.Quantity origin, decimal period, int dimensions) { } + public string Data { get { throw null; } set { } } + public int Dimensions { get { throw null; } } + public decimal? Factor { get { throw null; } set { } } + public string Id { get { throw null; } set { } } + public decimal? LowerLimit { get { throw null; } set { } } + public Azure.Health.Insights.CancerProfiling.Quantity Origin { get { throw null; } } + public decimal Period { get { throw null; } } + public decimal? UpperLimit { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct SpecialtyType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public SpecialtyType(string value) { throw null; } + public static Azure.Health.Insights.CancerProfiling.SpecialtyType Pathology { get { throw null; } } + public static Azure.Health.Insights.CancerProfiling.SpecialtyType Radiology { get { throw null; } } + public bool Equals(Azure.Health.Insights.CancerProfiling.SpecialtyType 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.CancerProfiling.SpecialtyType left, Azure.Health.Insights.CancerProfiling.SpecialtyType right) { throw null; } + public static implicit operator Azure.Health.Insights.CancerProfiling.SpecialtyType (string value) { throw null; } + public static bool operator !=(Azure.Health.Insights.CancerProfiling.SpecialtyType left, Azure.Health.Insights.CancerProfiling.SpecialtyType right) { throw null; } + public override string ToString() { throw null; } + } + public partial class TimePeriod + { + public TimePeriod() { } + public System.DateTimeOffset? End { get { throw null; } set { } } + public System.DateTimeOffset? Start { get { throw null; } set { } } } } namespace Microsoft.Extensions.Azure diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/CancerProfilingClient.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/CancerProfilingClient.cs index 2181bb4c29fd6..78718b901b5c6 100644 --- a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/CancerProfilingClient.cs +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/CancerProfilingClient.cs @@ -69,14 +69,14 @@ public CancerProfilingClient(Uri endpoint, AzureKeyCredential credential, Cancer /// is null. /// Creates an Onco Phenotype job with the given request body. /// - public virtual async Task> InferCancerProfileAsync(WaitUntil waitUntil, OncoPhenotypeData oncoPhenotypeData, CancellationToken cancellationToken = default) + public virtual async Task> InferCancerProfileAsync(WaitUntil waitUntil, OncoPhenotypeData oncoPhenotypeData, CancellationToken cancellationToken = default) { Argument.AssertNotNull(oncoPhenotypeData, nameof(oncoPhenotypeData)); RequestContext context = FromCancellationToken(cancellationToken); using RequestContent content = oncoPhenotypeData.ToRequestContent(); Operation response = await InferCancerProfileAsync(waitUntil, content, context).ConfigureAwait(false); - return ProtocolOperationHelpers.Convert(response, FetchOncoPhenotypeResultsFromOncoPhenotypeResult, ClientDiagnostics, "CancerProfilingClient.InferCancerProfile"); + return ProtocolOperationHelpers.Convert(response, FetchOncoPhenotypeInferenceResultFromOncoPhenotypeResult, ClientDiagnostics, "CancerProfilingClient.InferCancerProfile"); } /// Create Onco Phenotype job. @@ -86,14 +86,14 @@ public virtual async Task> InferCancerProfileAsy /// is null. /// Creates an Onco Phenotype job with the given request body. /// - public virtual Operation InferCancerProfile(WaitUntil waitUntil, OncoPhenotypeData oncoPhenotypeData, CancellationToken cancellationToken = default) + public virtual Operation InferCancerProfile(WaitUntil waitUntil, OncoPhenotypeData oncoPhenotypeData, CancellationToken cancellationToken = default) { Argument.AssertNotNull(oncoPhenotypeData, nameof(oncoPhenotypeData)); RequestContext context = FromCancellationToken(cancellationToken); using RequestContent content = oncoPhenotypeData.ToRequestContent(); Operation response = InferCancerProfile(waitUntil, content, context); - return ProtocolOperationHelpers.Convert(response, FetchOncoPhenotypeResultsFromOncoPhenotypeResult, ClientDiagnostics, "CancerProfilingClient.InferCancerProfile"); + return ProtocolOperationHelpers.Convert(response, FetchOncoPhenotypeInferenceResultFromOncoPhenotypeResult, ClientDiagnostics, "CancerProfilingClient.InferCancerProfile"); } /// @@ -178,13 +178,13 @@ public virtual Operation InferCancerProfile(WaitUntil waitUntil, Req internal HttpMessage CreateInferCancerProfileRequest(RequestContent content, RequestContext context) { - var message = _pipeline.CreateMessage(context, ResponseClassifier200202); + var message = _pipeline.CreateMessage(context, ResponseClassifier202); var request = message.Request; request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); - uri.AppendRaw("/healthinsights", false); - uri.AppendPath("/oncophenotype/jobs", false); + uri.AppendRaw("/health-insights", false); + uri.AppendPath("/onco-phenotype/jobs", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -206,13 +206,13 @@ internal static RequestContext FromCancellationToken(CancellationToken cancellat return new RequestContext() { CancellationToken = cancellationToken }; } - private static ResponseClassifier _responseClassifier200202; - private static ResponseClassifier ResponseClassifier200202 => _responseClassifier200202 ??= new StatusCodeClassifier(stackalloc ushort[] { 200, 202 }); + private static ResponseClassifier _responseClassifier202; + private static ResponseClassifier ResponseClassifier202 => _responseClassifier202 ??= new StatusCodeClassifier(stackalloc ushort[] { 202 }); - private OncoPhenotypeResults FetchOncoPhenotypeResultsFromOncoPhenotypeResult(Response response) + private OncoPhenotypeInferenceResult FetchOncoPhenotypeInferenceResultFromOncoPhenotypeResult(Response response) { - var resultJsonElement = JsonDocument.Parse(response.Content).RootElement.GetProperty("results"); - return OncoPhenotypeResults.DeserializeOncoPhenotypeResults(resultJsonElement); + var resultJsonElement = JsonDocument.Parse(response.Content).RootElement.GetProperty("result"); + return OncoPhenotypeInferenceResult.DeserializeOncoPhenotypeInferenceResult(resultJsonElement); } } } diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/CancerProfilingClientOptions.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/CancerProfilingClientOptions.cs index 689615bab2c89..10105c0d0eeac 100644 --- a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/CancerProfilingClientOptions.cs +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/CancerProfilingClientOptions.cs @@ -13,13 +13,13 @@ namespace Azure.Health.Insights.CancerProfiling /// Client options for CancerProfilingClient. public partial class CancerProfilingClientOptions : ClientOptions { - private const ServiceVersion LatestVersion = ServiceVersion.V2023_03_01_Preview; + private const ServiceVersion LatestVersion = ServiceVersion.V2023_09_01_Preview; /// The version of the service to use. public enum ServiceVersion { - /// Service version "2023-03-01-preview". - V2023_03_01_Preview = 1, + /// Service version "2023-09-01-preview". + V2023_09_01_Preview = 1, } internal string Version { get; } @@ -29,7 +29,7 @@ public CancerProfilingClientOptions(ServiceVersion version = LatestVersion) { Version = version switch { - ServiceVersion.V2023_03_01_Preview => "2023-03-01-preview", + ServiceVersion.V2023_09_01_Preview => "2023-09-01-preview", _ => throw new NotSupportedException() }; } diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/ClinicalCodedElement.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/ClinicalCodedElement.Serialization.cs index 80031de0265ea..5f8be35ad4b04 100644 --- a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/ClinicalCodedElement.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/ClinicalCodedElement.Serialization.cs @@ -11,28 +11,8 @@ namespace Azure.Health.Insights.CancerProfiling { - public partial class ClinicalCodedElement : IUtf8JsonSerializable + public partial class ClinicalCodedElement { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - writer.WritePropertyName("system"u8); - writer.WriteStringValue(System); - writer.WritePropertyName("code"u8); - writer.WriteStringValue(Code); - if (Optional.IsDefined(Name)) - { - writer.WritePropertyName("name"u8); - writer.WriteStringValue(Name); - } - if (Optional.IsDefined(Value)) - { - writer.WritePropertyName("value"u8); - writer.WriteStringValue(Value); - } - writer.WriteEndObject(); - } - internal static ClinicalCodedElement DeserializeClinicalCodedElement(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) @@ -76,13 +56,5 @@ internal static ClinicalCodedElement FromResponse(Response response) using var document = JsonDocument.Parse(response.Content); return DeserializeClinicalCodedElement(document.RootElement); } - - /// Convert into a Utf8JsonRequestContent. - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this); - return content; - } } } diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/ClinicalCodedElement.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/ClinicalCodedElement.cs index 583d12195e5eb..c93b909862a6b 100644 --- a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/ClinicalCodedElement.cs +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/ClinicalCodedElement.cs @@ -17,7 +17,7 @@ public partial class ClinicalCodedElement /// The clinical coding system, e.g. ICD-10, SNOMED-CT, UMLS. /// The code within the given clinical coding system. /// or is null. - public ClinicalCodedElement(string system, string code) + internal ClinicalCodedElement(string system, string code) { Argument.AssertNotNull(system, nameof(system)); Argument.AssertNotNull(code, nameof(code)); @@ -40,12 +40,12 @@ internal ClinicalCodedElement(string system, string code, string name, string va } /// The clinical coding system, e.g. ICD-10, SNOMED-CT, UMLS. - public string System { get; set; } + public string System { get; } /// The code within the given clinical coding system. - public string Code { get; set; } + public string Code { get; } /// The name of this coded concept in the coding system. - public string Name { get; set; } + public string Name { get; } /// A value associated with the code within the given clinical coding system. - public string Value { get; set; } + public string Value { get; } } } diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/ClinicalDocumentType.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/ClinicalDocumentType.cs index 7bfe9c484b2a8..5b5092b656223 100644 --- a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/ClinicalDocumentType.cs +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/ClinicalDocumentType.cs @@ -25,11 +25,11 @@ public ClinicalDocumentType(string value) private const string ConsultationValue = "consultation"; private const string DischargeSummaryValue = "dischargeSummary"; private const string HistoryAndPhysicalValue = "historyAndPhysical"; + private const string RadiologyReportValue = "radiologyReport"; private const string ProcedureValue = "procedure"; private const string ProgressValue = "progress"; - private const string ImagingValue = "imaging"; private const string LaboratoryValue = "laboratory"; - private const string PathologyValue = "pathology"; + private const string PathologyReportValue = "pathologyReport"; /// consultation. public static ClinicalDocumentType Consultation { get; } = new ClinicalDocumentType(ConsultationValue); @@ -37,16 +37,16 @@ public ClinicalDocumentType(string value) public static ClinicalDocumentType DischargeSummary { get; } = new ClinicalDocumentType(DischargeSummaryValue); /// historyAndPhysical. public static ClinicalDocumentType HistoryAndPhysical { get; } = new ClinicalDocumentType(HistoryAndPhysicalValue); + /// radiologyReport. + public static ClinicalDocumentType RadiologyReport { get; } = new ClinicalDocumentType(RadiologyReportValue); /// procedure. public static ClinicalDocumentType Procedure { get; } = new ClinicalDocumentType(ProcedureValue); /// progress. public static ClinicalDocumentType Progress { get; } = new ClinicalDocumentType(ProgressValue); - /// imaging. - public static ClinicalDocumentType Imaging { get; } = new ClinicalDocumentType(ImagingValue); /// laboratory. public static ClinicalDocumentType Laboratory { get; } = new ClinicalDocumentType(LaboratoryValue); - /// pathology. - public static ClinicalDocumentType Pathology { get; } = new ClinicalDocumentType(PathologyValue); + /// pathologyReport. + public static ClinicalDocumentType PathologyReport { get; } = new ClinicalDocumentType(PathologyReportValue); /// Determines if two values are the same. public static bool operator ==(ClinicalDocumentType left, ClinicalDocumentType right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/CodeableConcept.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/CodeableConcept.Serialization.cs new file mode 100644 index 0000000000000..ae901a89393f8 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/CodeableConcept.Serialization.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.CancerProfiling +{ + public partial class CodeableConcept : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Coding)) + { + writer.WritePropertyName("coding"u8); + writer.WriteStartArray(); + foreach (var item in Coding) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(Text)) + { + writer.WritePropertyName("text"u8); + writer.WriteStringValue(Text); + } + writer.WriteEndObject(); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/CodeableConcept.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/CodeableConcept.cs new file mode 100644 index 0000000000000..e84a53d9b3803 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/CodeableConcept.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.CancerProfiling +{ + /// + /// Concept - reference to a terminology or just text + /// Based on [FHIR CodeableConcept](https://www.hl7.org/fhir/R4/datatypes.html#CodeableConcept) + /// + public partial class CodeableConcept + { + /// Initializes a new instance of . + public CodeableConcept() + { + Coding = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// Unique id for inter-element referencing. + /// Code defined by a terminology system. + /// Plain text representation of the concept. + internal CodeableConcept(string id, IList coding, string text) + { + Id = id; + Coding = coding; + Text = text; + } + + /// Unique id for inter-element referencing. + public string Id { get; set; } + /// Code defined by a terminology system. + public IList Coding { get; } + /// Plain text representation of the concept. + public string Text { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Coding.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Coding.Serialization.cs new file mode 100644 index 0000000000000..5572b0b5a791d --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Coding.Serialization.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.CancerProfiling +{ + public partial class Coding : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(System)) + { + writer.WritePropertyName("system"u8); + writer.WriteStringValue(System); + } + if (Optional.IsDefined(Version)) + { + writer.WritePropertyName("version"u8); + writer.WriteStringValue(Version); + } + if (Optional.IsDefined(Code)) + { + writer.WritePropertyName("code"u8); + writer.WriteStringValue(Code); + } + if (Optional.IsDefined(Display)) + { + writer.WritePropertyName("display"u8); + writer.WriteStringValue(Display); + } + writer.WriteEndObject(); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Coding.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Coding.cs new file mode 100644 index 0000000000000..44aac977bfffe --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Coding.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.CancerProfiling +{ + /// + /// A Coding is a representation of a defined concept using a symbol from a defined "code system". + /// Based on [FHIR Coding](https://www.hl7.org/fhir/R4/datatypes.html#Coding) + /// + public partial class Coding + { + /// Initializes a new instance of . + public Coding() + { + Extension = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// Unique id for inter-element referencing. + /// Additional Content defined by implementations. + /// Identity of the terminology system. + /// Version of the system - if relevant. + /// Symbol in syntax defined by the system. + /// Representation defined by the system. + internal Coding(string id, IList extension, string system, string version, string code, string display) + { + Id = id; + Extension = extension; + System = system; + Version = version; + Code = code; + Display = display; + } + + /// Unique id for inter-element referencing. + public string Id { get; set; } + /// Additional Content defined by implementations. + public IList Extension { get; } + /// Identity of the terminology system. + public string System { get; set; } + /// Version of the system - if relevant. + public string Version { get; set; } + /// Symbol in syntax defined by the system. + public string Code { get; set; } + /// Representation defined by the system. + public string Display { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Docs/CancerProfilingClient.xml b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Docs/CancerProfilingClient.xml index 9415eb65542cf..ef7e98ae9ca5f 100644 --- a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Docs/CancerProfilingClient.xml +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Docs/CancerProfilingClient.xml @@ -13,8 +13,8 @@ OncoPhenotypeData oncoPhenotypeData = new OncoPhenotypeData(new PatientRecord[] { new PatientRecord("") }); -Operation operation = await client.InferCancerProfileAsync(WaitUntil.Completed, oncoPhenotypeData); -OncoPhenotypeResults responseData = operation.Value; +Operation operation = await client.InferCancerProfileAsync(WaitUntil.Completed, oncoPhenotypeData); +OncoPhenotypeInferenceResult responseData = operation.Value; ]]> This sample shows how to call InferCancerProfileAsync with all parameters. ", "") + ClinicalInfo = {new Resource("") { - Name = "", - Value = "", + Id = "", + Meta = new Meta + { + VersionId = "", + LastUpdated = "", + Source = "", + Profile = {""}, + Security = {new Coding + { + Id = "", + Extension = {new Extension("") + { + Id = "", + ValueQuantity = new Quantity + { + Id = "", + Value = default, + Comparator = "", + Unit = "", + System = "", + Code = "", + }, + ValueCodeableConcept = new CodeableConcept + { + Id = "", + Coding = {default}, + Text = "", + }, + ValueString = "", + ValueBoolean = true, + ValueInteger = 1234, + ValueRange = new Range + { + Id = "", + Low = default, + High = default, + }, + ValueRatio = new Ratio + { + Id = "", + Numerator = default, + Denominator = default, + }, + ValueSampledData = new SampledData(default, default, 1234) + { + Id = "", + Factor = default, + LowerLimit = default, + UpperLimit = default, + Data = "", + }, + ValueTime = TimeSpan.Parse("01:23:45"), + ValueDateTime = "", + ValuePeriod = new Period + { + Id = "", + Start = "", + End = "", + }, + ValueReference = new Reference + { + Id = "", + ReferenceProperty = "", + Type = "", + Identifier = new Identifier + { + Id = "", + Use = "", + Type = default, + System = "", + Value = "", + Period = default, + Assigner = default, + }, + Display = "", + }, + }}, + System = "", + Version = "", + Code = "", + Display = "", + }}, + Tag = {default}, + }, + ImplicitRules = "", + Language = "", }}, }, - Data = {new PatientDocument(DocumentType.Note, "", new DocumentContent(DocumentContentSourceType.Inline, "")) + Encounters = {new Encounter("") + { + Period = new TimePeriod + { + Start = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), + End = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), + }, + Class = EncounterClass.InPatient, + }}, + PatientDocuments = {new PatientDocument(DocumentType.Note, "", new DocumentContent(DocumentContentSourceType.Inline, "")) { ClinicalType = ClinicalDocumentType.Consultation, Language = "", CreatedDateTime = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), + Authors = {new DocumentAuthor + { + Id = "", + FullName = "", + }}, + SpecialtyType = SpecialtyType.Pathology, + AdministrativeMetadata = new DocumentAdministrativeMetadata + { + OrderedProcedures = {new OrderedProcedure + { + Extension = {default}, + Code = default, + Description = "", + }}, + EncounterId = "", + }, }}, } }) @@ -53,8 +162,8 @@ OncoPhenotypeData oncoPhenotypeData = new OncoPhenotypeData(new PatientRecord[] CheckForCancerCase = true, }, }; -Operation operation = await client.InferCancerProfileAsync(WaitUntil.Completed, oncoPhenotypeData); -OncoPhenotypeResults responseData = operation.Value; +Operation operation = await client.InferCancerProfileAsync(WaitUntil.Completed, oncoPhenotypeData); +OncoPhenotypeInferenceResult responseData = operation.Value; ]]> @@ -69,8 +178,8 @@ OncoPhenotypeData oncoPhenotypeData = new OncoPhenotypeData(new PatientRecord[] { new PatientRecord("") }); -Operation operation = client.InferCancerProfile(WaitUntil.Completed, oncoPhenotypeData); -OncoPhenotypeResults responseData = operation.Value; +Operation operation = client.InferCancerProfile(WaitUntil.Completed, oncoPhenotypeData); +OncoPhenotypeInferenceResult responseData = operation.Value; ]]> This sample shows how to call InferCancerProfile with all parameters. ", "") + ClinicalInfo = {new Resource("") { - Name = "", - Value = "", + Id = "", + Meta = new Meta + { + VersionId = "", + LastUpdated = "", + Source = "", + Profile = {""}, + Security = {new Coding + { + Id = "", + Extension = {new Extension("") + { + Id = "", + ValueQuantity = new Quantity + { + Id = "", + Value = default, + Comparator = "", + Unit = "", + System = "", + Code = "", + }, + ValueCodeableConcept = new CodeableConcept + { + Id = "", + Coding = {default}, + Text = "", + }, + ValueString = "", + ValueBoolean = true, + ValueInteger = 1234, + ValueRange = new Range + { + Id = "", + Low = default, + High = default, + }, + ValueRatio = new Ratio + { + Id = "", + Numerator = default, + Denominator = default, + }, + ValueSampledData = new SampledData(default, default, 1234) + { + Id = "", + Factor = default, + LowerLimit = default, + UpperLimit = default, + Data = "", + }, + ValueTime = TimeSpan.Parse("01:23:45"), + ValueDateTime = "", + ValuePeriod = new Period + { + Id = "", + Start = "", + End = "", + }, + ValueReference = new Reference + { + Id = "", + ReferenceProperty = "", + Type = "", + Identifier = new Identifier + { + Id = "", + Use = "", + Type = default, + System = "", + Value = "", + Period = default, + Assigner = default, + }, + Display = "", + }, + }}, + System = "", + Version = "", + Code = "", + Display = "", + }}, + Tag = {default}, + }, + ImplicitRules = "", + Language = "", }}, }, - Data = {new PatientDocument(DocumentType.Note, "", new DocumentContent(DocumentContentSourceType.Inline, "")) + Encounters = {new Encounter("") + { + Period = new TimePeriod + { + Start = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), + End = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), + }, + Class = EncounterClass.InPatient, + }}, + PatientDocuments = {new PatientDocument(DocumentType.Note, "", new DocumentContent(DocumentContentSourceType.Inline, "")) { ClinicalType = ClinicalDocumentType.Consultation, Language = "", CreatedDateTime = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), + Authors = {new DocumentAuthor + { + Id = "", + FullName = "", + }}, + SpecialtyType = SpecialtyType.Pathology, + AdministrativeMetadata = new DocumentAdministrativeMetadata + { + OrderedProcedures = {new OrderedProcedure + { + Extension = {default}, + Code = default, + Description = "", + }}, + EncounterId = "", + }, }}, } }) @@ -109,8 +327,8 @@ OncoPhenotypeData oncoPhenotypeData = new OncoPhenotypeData(new PatientRecord[] CheckForCancerCase = true, }, }; -Operation operation = client.InferCancerProfile(WaitUntil.Completed, oncoPhenotypeData); -OncoPhenotypeResults responseData = operation.Value; +Operation operation = client.InferCancerProfile(WaitUntil.Completed, oncoPhenotypeData); +OncoPhenotypeInferenceResult responseData = operation.Value; ]]> @@ -135,9 +353,9 @@ Operation operation = await client.InferCancerProfileAsync(WaitUntil BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("id").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("patientId").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("value").ToString()); Console.WriteLine(result.GetProperty("modelVersion").ToString()); ]]> This sample shows how to call InferCancerProfileAsync with all parameters and request content and parse the result. @@ -161,14 +379,121 @@ using RequestContent content = RequestContent.Create(new { new { - system = "", - code = "", - name = "", - value = "", + resourceType = "", + id = "", + meta = new + { + versionId = "", + lastUpdated = "", + source = "", + profile = new object[] + { + "" + }, + security = new object[] + { + new + { + id = "", + extension = new object[] + { + new + { + id = "", + url = "", + valueQuantity = new + { + id = "", + value = new object(), + comparator = "", + unit = "", + system = "", + code = "", + }, + valueCodeableConcept = new + { + id = "", + coding = new object[] + { + null + }, + text = "", + }, + valueString = "", + valueBoolean = true, + valueInteger = 1234, + valueRange = new + { + id = "", + }, + valueRatio = new + { + id = "", + }, + valueSampledData = new + { + id = "", + period = new object(), + factor = new object(), + lowerLimit = new object(), + upperLimit = new object(), + dimensions = 1234, + data = "", + }, + valueTime = "01:23:45", + valueDateTime = "", + valuePeriod = new + { + id = "", + start = "", + end = "", + }, + valueReference = new + { + id = "", + reference = "", + type = "", + identifier = new + { + id = "", + use = "", + system = "", + value = "", + }, + display = "", + }, + } + }, + system = "", + version = "", + code = "", + display = "", + } + }, + tag = new object[] + { + null + }, + }, + implicitRules = "", + language = "", } }, }, - data = new object[] + encounters = new object[] + { + new Dictionary + { + ["id"] = "", + ["period"] = new + { + start = "2022-05-10T14:57:31.2311892-04:00", + end = "2022-05-10T14:57:31.2311892-04:00", + }, + ["class"] = "inpatient" + } + }, + patientDocuments = new object[] { new { @@ -177,6 +502,30 @@ using RequestContent content = RequestContent.Create(new id = "", language = "", createdDateTime = "2022-05-10T14:57:31.2311892-04:00", + authors = new object[] + { + new + { + id = "", + fullName = "", + } + }, + specialtyType = "pathology", + administrativeMetadata = new + { + orderedProcedures = new object[] + { + new + { + extension = new object[] + { + null + }, + description = "", + } + }, + encounterId = "", + }, content = new { sourceType = "inline", @@ -201,21 +550,21 @@ Operation operation = await client.InferCancerProfileAsync(WaitUntil BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("id").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("value").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("description").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("confidenceScore").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("id").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("text").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("offset").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("length").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("system").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("name").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("value").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("importance").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("caseId").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("patientId").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("description").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("confidenceScore").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("offset").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("length").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("name").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("importance").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("caseId").ToString()); Console.WriteLine(result.GetProperty("modelVersion").ToString()); ]]> @@ -241,9 +590,9 @@ Operation operation = client.InferCancerProfile(WaitUntil.Completed, BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("id").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("patientId").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("value").ToString()); Console.WriteLine(result.GetProperty("modelVersion").ToString()); ]]> This sample shows how to call InferCancerProfile with all parameters and request content and parse the result. @@ -267,14 +616,121 @@ using RequestContent content = RequestContent.Create(new { new { - system = "", - code = "", - name = "", - value = "", + resourceType = "", + id = "", + meta = new + { + versionId = "", + lastUpdated = "", + source = "", + profile = new object[] + { + "" + }, + security = new object[] + { + new + { + id = "", + extension = new object[] + { + new + { + id = "", + url = "", + valueQuantity = new + { + id = "", + value = new object(), + comparator = "", + unit = "", + system = "", + code = "", + }, + valueCodeableConcept = new + { + id = "", + coding = new object[] + { + null + }, + text = "", + }, + valueString = "", + valueBoolean = true, + valueInteger = 1234, + valueRange = new + { + id = "", + }, + valueRatio = new + { + id = "", + }, + valueSampledData = new + { + id = "", + period = new object(), + factor = new object(), + lowerLimit = new object(), + upperLimit = new object(), + dimensions = 1234, + data = "", + }, + valueTime = "01:23:45", + valueDateTime = "", + valuePeriod = new + { + id = "", + start = "", + end = "", + }, + valueReference = new + { + id = "", + reference = "", + type = "", + identifier = new + { + id = "", + use = "", + system = "", + value = "", + }, + display = "", + }, + } + }, + system = "", + version = "", + code = "", + display = "", + } + }, + tag = new object[] + { + null + }, + }, + implicitRules = "", + language = "", } }, }, - data = new object[] + encounters = new object[] + { + new Dictionary + { + ["id"] = "", + ["period"] = new + { + start = "2022-05-10T14:57:31.2311892-04:00", + end = "2022-05-10T14:57:31.2311892-04:00", + }, + ["class"] = "inpatient" + } + }, + patientDocuments = new object[] { new { @@ -283,6 +739,30 @@ using RequestContent content = RequestContent.Create(new id = "", language = "", createdDateTime = "2022-05-10T14:57:31.2311892-04:00", + authors = new object[] + { + new + { + id = "", + fullName = "", + } + }, + specialtyType = "pathology", + administrativeMetadata = new + { + orderedProcedures = new object[] + { + new + { + extension = new object[] + { + null + }, + description = "", + } + }, + encounterId = "", + }, content = new { sourceType = "inline", @@ -307,21 +787,21 @@ Operation operation = client.InferCancerProfile(WaitUntil.Completed, BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("id").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("value").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("description").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("confidenceScore").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("id").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("text").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("offset").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("length").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("system").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("name").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("value").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("importance").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("caseId").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("patientId").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("description").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("confidenceScore").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("offset").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("length").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("name").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("importance").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("caseId").ToString()); Console.WriteLine(result.GetProperty("modelVersion").ToString()); ]]> diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/DocumentAdministrativeMetadata.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/DocumentAdministrativeMetadata.Serialization.cs new file mode 100644 index 0000000000000..5c653f8d31058 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/DocumentAdministrativeMetadata.Serialization.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.CancerProfiling +{ + public partial class DocumentAdministrativeMetadata : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(OrderedProcedures)) + { + writer.WritePropertyName("orderedProcedures"u8); + writer.WriteStartArray(); + foreach (var item in OrderedProcedures) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(EncounterId)) + { + writer.WritePropertyName("encounterId"u8); + writer.WriteStringValue(EncounterId); + } + writer.WriteEndObject(); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/DocumentAdministrativeMetadata.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/DocumentAdministrativeMetadata.cs new file mode 100644 index 0000000000000..f054cb55cc46f --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/DocumentAdministrativeMetadata.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.CancerProfiling +{ + /// Document administrative metadata. + public partial class DocumentAdministrativeMetadata + { + /// Initializes a new instance of . + public DocumentAdministrativeMetadata() + { + OrderedProcedures = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// List of procedure information associated with the document. + /// Reference to the encounter associated with the document. + internal DocumentAdministrativeMetadata(IList orderedProcedures, string encounterId) + { + OrderedProcedures = orderedProcedures; + EncounterId = encounterId; + } + + /// List of procedure information associated with the document. + public IList OrderedProcedures { get; } + /// Reference to the encounter associated with the document. + public string EncounterId { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/DocumentAuthor.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/DocumentAuthor.Serialization.cs new file mode 100644 index 0000000000000..fba4b5eafb40d --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/DocumentAuthor.Serialization.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.CancerProfiling +{ + public partial class DocumentAuthor : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsDefined(FullName)) + { + writer.WritePropertyName("fullName"u8); + writer.WriteStringValue(FullName); + } + writer.WriteEndObject(); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/DocumentAuthor.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/DocumentAuthor.cs new file mode 100644 index 0000000000000..30051605b8f00 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/DocumentAuthor.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Health.Insights.CancerProfiling +{ + /// Document author. + public partial class DocumentAuthor + { + /// Initializes a new instance of . + public DocumentAuthor() + { + } + + /// Initializes a new instance of . + /// author id. + /// Text representation of the full name. + internal DocumentAuthor(string id, string fullName) + { + Id = id; + FullName = fullName; + } + + /// author id. + public string Id { get; set; } + /// Text representation of the full name. + public string FullName { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/DocumentContentSourceType.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/DocumentContentSourceType.cs index f6705b269f513..dc699c848b8bc 100644 --- a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/DocumentContentSourceType.cs +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/DocumentContentSourceType.cs @@ -29,9 +29,9 @@ public DocumentContentSourceType(string value) private const string InlineValue = "inline"; private const string ReferenceValue = "reference"; - /// inline. + /// The content is given as a string (for instance, text). public static DocumentContentSourceType Inline { get; } = new DocumentContentSourceType(InlineValue); - /// reference. + /// The content is given as a URI. public static DocumentContentSourceType Reference { get; } = new DocumentContentSourceType(ReferenceValue); /// Determines if two values are the same. public static bool operator ==(DocumentContentSourceType left, DocumentContentSourceType right) => left.Equals(right); diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Encounter.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Encounter.Serialization.cs new file mode 100644 index 0000000000000..ae80ada36662a --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Encounter.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.CancerProfiling +{ + public partial class Encounter : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + if (Optional.IsDefined(Period)) + { + writer.WritePropertyName("period"u8); + writer.WriteObjectValue(Period); + } + if (Optional.IsDefined(Class)) + { + writer.WritePropertyName("class"u8); + writer.WriteStringValue(Class.Value.ToString()); + } + writer.WriteEndObject(); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Encounter.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Encounter.cs new file mode 100644 index 0000000000000..842e14776c3c0 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Encounter.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.Health.Insights.CancerProfiling +{ + /// visit/encounter information. + public partial class Encounter + { + /// Initializes a new instance of . + /// The id of the visit. + /// is null. + public Encounter(string id) + { + Argument.AssertNotNull(id, nameof(id)); + + Id = id; + } + + /// Initializes a new instance of . + /// The id of the visit. + /// + /// Time period of the visit. + /// In case of admission, use timePeriod.start to indicate the admission time and timePeriod.end to indicate the discharge time. + /// + /// The class of the encounter. + internal Encounter(string id, TimePeriod period, EncounterClass? @class) + { + Id = id; + Period = period; + Class = @class; + } + + /// The id of the visit. + public string Id { get; } + /// + /// Time period of the visit. + /// In case of admission, use timePeriod.start to indicate the admission time and timePeriod.end to indicate the discharge time. + /// + public TimePeriod Period { get; set; } + /// The class of the encounter. + public EncounterClass? Class { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/EncounterClass.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/EncounterClass.cs new file mode 100644 index 0000000000000..d7dc010de69ce --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/EncounterClass.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Health.Insights.CancerProfiling +{ + /// Known values codes that can be used to indicate the class of encounter (TODO://Based on FHIR value set--http://....). + public readonly partial struct EncounterClass : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public EncounterClass(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string InPatientValue = "inpatient"; + private const string AmbulatoryValue = "ambulatory"; + private const string ObservationValue = "observation"; + private const string EmergencyValue = "emergency"; + private const string VirtualValue = "virtual"; + private const string HealthHomeValue = "healthHome"; + + /// A patient encounter where a patient is admitted by a hospital or equivalent facility, assigned to a location where patients generally stay at least overnight and provided with room, board, and continuous nursing service. + public static EncounterClass InPatient { get; } = new EncounterClass(InPatientValue); + /// The term ambulatory usually implies that the patient has come to the location and is not assigned to a bed. Sometimes referred to as an outpatient encounter. + public static EncounterClass Ambulatory { get; } = new EncounterClass(AmbulatoryValue); + /// An encounter where the patient usually will start in different encounter, such as one in the emergency department but then transition to this type of encounter because they require a significant period of treatment and monitoring to determine whether or not their condition warrants an inpatient admission or discharge. + public static EncounterClass Observation { get; } = new EncounterClass(ObservationValue); + /// A patient encounter that takes place at a dedicated healthcare service delivery location where the patient receives immediate evaluation and treatment, provided until the patient can be discharged or responsibility for the patient's care is transferred elsewhere (for example, the patient could be admitted as an inpatient or transferred to another facility. + public static EncounterClass Emergency { get; } = new EncounterClass(EmergencyValue); + /// A patient encounter where the patient is not physically present for the encounter, such as in a telehealth encounter, phone call, or electronic communication. + public static EncounterClass Virtual { get; } = new EncounterClass(VirtualValue); + /// Healthcare encounter that takes place in the residence of the patient or a designee. + public static EncounterClass HealthHome { get; } = new EncounterClass(HealthHomeValue); + /// Determines if two values are the same. + public static bool operator ==(EncounterClass left, EncounterClass right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(EncounterClass left, EncounterClass right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator EncounterClass(string value) => new EncounterClass(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is EncounterClass other && Equals(other); + /// + public bool Equals(EncounterClass other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Extension.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Extension.Serialization.cs new file mode 100644 index 0000000000000..cb327d98003f7 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Extension.Serialization.cs @@ -0,0 +1,96 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.CancerProfiling +{ + public partial class Extension : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + writer.WritePropertyName("url"u8); + writer.WriteStringValue(Url); + if (Optional.IsDefined(ValueQuantity)) + { + writer.WritePropertyName("valueQuantity"u8); + writer.WriteObjectValue(ValueQuantity); + } + if (Optional.IsDefined(ValueCodeableConcept)) + { + writer.WritePropertyName("valueCodeableConcept"u8); + writer.WriteObjectValue(ValueCodeableConcept); + } + if (Optional.IsDefined(ValueString)) + { + writer.WritePropertyName("valueString"u8); + writer.WriteStringValue(ValueString); + } + if (Optional.IsDefined(ValueBoolean)) + { + writer.WritePropertyName("valueBoolean"u8); + writer.WriteBooleanValue(ValueBoolean.Value); + } + if (Optional.IsDefined(ValueInteger)) + { + writer.WritePropertyName("valueInteger"u8); + writer.WriteNumberValue(ValueInteger.Value); + } + if (Optional.IsDefined(ValueRange)) + { + writer.WritePropertyName("valueRange"u8); + writer.WriteObjectValue(ValueRange); + } + if (Optional.IsDefined(ValueRatio)) + { + writer.WritePropertyName("valueRatio"u8); + writer.WriteObjectValue(ValueRatio); + } + if (Optional.IsDefined(ValueSampledData)) + { + writer.WritePropertyName("valueSampledData"u8); + writer.WriteObjectValue(ValueSampledData); + } + if (Optional.IsDefined(ValueTime)) + { + writer.WritePropertyName("valueTime"u8); + writer.WriteStringValue(ValueTime.Value, "T"); + } + if (Optional.IsDefined(ValueDateTime)) + { + writer.WritePropertyName("valueDateTime"u8); + writer.WriteStringValue(ValueDateTime); + } + if (Optional.IsDefined(ValuePeriod)) + { + writer.WritePropertyName("valuePeriod"u8); + writer.WriteObjectValue(ValuePeriod); + } + if (Optional.IsDefined(ValueReference)) + { + writer.WritePropertyName("valueReference"u8); + writer.WriteObjectValue(ValueReference); + } + writer.WriteEndObject(); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Extension.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Extension.cs new file mode 100644 index 0000000000000..8472bb827dab7 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Extension.cs @@ -0,0 +1,91 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.Health.Insights.CancerProfiling +{ + /// + /// Base for all elements + /// Based on [FHIR Element](https://www.hl7.org/fhir/datatypes.html#Element) + /// + public partial class Extension + { + /// Initializes a new instance of . + /// Source of the definition for the extension code - a logical name or a URL. + /// is null. + public Extension(string url) + { + Argument.AssertNotNull(url, nameof(url)); + + Url = url; + } + + /// Initializes a new instance of . + /// Unique id for inter-element referencing. + /// Source of the definition for the extension code - a logical name or a URL. + /// Value as Quantity. + /// Value as CodeableConcept. + /// Value as string. + /// Value as boolean. + /// Value as integer. + /// Value as Range. + /// Value as Ratio. + /// Value as SampledData. + /// Value as time (hh:mm:ss). + /// Value as dateTime. + /// Value as Period. + /// Value as reference. + internal Extension(string id, string url, Quantity valueQuantity, CodeableConcept valueCodeableConcept, string valueString, bool? valueBoolean, int? valueInteger, Range valueRange, Ratio valueRatio, SampledData valueSampledData, TimeSpan? valueTime, string valueDateTime, Period valuePeriod, Reference valueReference) + { + Id = id; + Url = url; + ValueQuantity = valueQuantity; + ValueCodeableConcept = valueCodeableConcept; + ValueString = valueString; + ValueBoolean = valueBoolean; + ValueInteger = valueInteger; + ValueRange = valueRange; + ValueRatio = valueRatio; + ValueSampledData = valueSampledData; + ValueTime = valueTime; + ValueDateTime = valueDateTime; + ValuePeriod = valuePeriod; + ValueReference = valueReference; + } + + /// Unique id for inter-element referencing. + public string Id { get; set; } + /// Source of the definition for the extension code - a logical name or a URL. + public string Url { get; } + /// Value as Quantity. + public Quantity ValueQuantity { get; set; } + /// Value as CodeableConcept. + public CodeableConcept ValueCodeableConcept { get; set; } + /// Value as string. + public string ValueString { get; set; } + /// Value as boolean. + public bool? ValueBoolean { get; set; } + /// Value as integer. + public int? ValueInteger { get; set; } + /// Value as Range. + public Range ValueRange { get; set; } + /// Value as Ratio. + public Ratio ValueRatio { get; set; } + /// Value as SampledData. + public SampledData ValueSampledData { get; set; } + /// Value as time (hh:mm:ss). + public TimeSpan? ValueTime { get; set; } + /// Value as dateTime. + public string ValueDateTime { get; set; } + /// Value as Period. + public Period ValuePeriod { get; set; } + /// Value as reference. + public Reference ValueReference { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/HealthInsightsCancerProfilingModelFactory.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/HealthInsightsCancerProfilingModelFactory.cs index d527ff509c326..007c37776fba6 100644 --- a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/HealthInsightsCancerProfilingModelFactory.cs +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/HealthInsightsCancerProfilingModelFactory.cs @@ -15,26 +15,26 @@ namespace Azure.Health.Insights.CancerProfiling /// Model factory for models. public static partial class HealthInsightsCancerProfilingModelFactory { - /// Initializes a new instance of . - /// Results for the patients given in the request. + /// Initializes a new instance of . + /// Results for the patients given in the request. /// The version of the model used for inference, expressed as the model date. - /// A new instance for mocking. - public static OncoPhenotypeResults OncoPhenotypeResults(IEnumerable patients = null, string modelVersion = null) + /// A new instance for mocking. + public static OncoPhenotypeInferenceResult OncoPhenotypeInferenceResult(IEnumerable patientResults = null, string modelVersion = null) { - patients ??= new List(); + patientResults ??= new List(); - return new OncoPhenotypeResults(patients?.ToList(), modelVersion); + return new OncoPhenotypeInferenceResult(patientResults?.ToList(), modelVersion); } /// Initializes a new instance of . - /// The identifier given for the patient in the request. + /// The identifier given for the patient in the request. /// The model's inferences for the given patient. /// A new instance for mocking. - public static OncoPhenotypePatientResult OncoPhenotypePatientResult(string id = null, IEnumerable inferences = null) + public static OncoPhenotypePatientResult OncoPhenotypePatientResult(string patientId = null, IEnumerable inferences = null) { inferences ??= new List(); - return new OncoPhenotypePatientResult(id, inferences?.ToList()); + return new OncoPhenotypePatientResult(patientId, inferences?.ToList()); } /// Initializes a new instance of . @@ -75,5 +75,16 @@ public static ClinicalNoteEvidence ClinicalNoteEvidence(string id = null, string { return new ClinicalNoteEvidence(id, text, offset, length); } + + /// Initializes a new instance of . + /// The clinical coding system, e.g. ICD-10, SNOMED-CT, UMLS. + /// The code within the given clinical coding system. + /// The name of this coded concept in the coding system. + /// A value associated with the code within the given clinical coding system. + /// A new instance for mocking. + public static ClinicalCodedElement ClinicalCodedElement(string system = null, string code = null, string name = null, string value = null) + { + return new ClinicalCodedElement(system, code, name, value); + } } } diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Identifier.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Identifier.Serialization.cs new file mode 100644 index 0000000000000..2343e1bd49ff2 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Identifier.Serialization.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.CancerProfiling +{ + public partial class Identifier : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsDefined(Use)) + { + writer.WritePropertyName("use"u8); + writer.WriteStringValue(Use); + } + if (Optional.IsDefined(Type)) + { + writer.WritePropertyName("type"u8); + writer.WriteObjectValue(Type); + } + if (Optional.IsDefined(System)) + { + writer.WritePropertyName("system"u8); + writer.WriteStringValue(System); + } + if (Optional.IsDefined(Value)) + { + writer.WritePropertyName("value"u8); + writer.WriteStringValue(Value); + } + if (Optional.IsDefined(Period)) + { + writer.WritePropertyName("period"u8); + writer.WriteObjectValue(Period); + } + if (Optional.IsDefined(Assigner)) + { + writer.WritePropertyName("assigner"u8); + writer.WriteObjectValue(Assigner); + } + writer.WriteEndObject(); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Identifier.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Identifier.cs new file mode 100644 index 0000000000000..1916285772cd5 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Identifier.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Health.Insights.CancerProfiling +{ + /// + /// An identifier intended for computation + /// Based on [FHIR Identifier](https://www.hl7.org/fhir/R4/identifier.html) + /// + public partial class Identifier + { + /// Initializes a new instance of . + public Identifier() + { + } + + /// Initializes a new instance of . + /// Unique id for inter-element referencing. + /// usual | official | temp | secondary | old (If known). + /// Description of identifier. + /// The namespace for the identifier value. + /// The value that is unique. + /// Time period when id is/was valid for use. + /// Organization that issued id (may be just text). + internal Identifier(string id, string use, CodeableConcept type, string system, string value, Period period, Reference assigner) + { + Id = id; + Use = use; + Type = type; + System = system; + Value = value; + Period = period; + Assigner = assigner; + } + + /// Unique id for inter-element referencing. + public string Id { get; set; } + /// usual | official | temp | secondary | old (If known). + public string Use { get; set; } + /// Description of identifier. + public CodeableConcept Type { get; set; } + /// The namespace for the identifier value. + public string System { get; set; } + /// The value that is unique. + public string Value { get; set; } + /// Time period when id is/was valid for use. + public Period Period { get; set; } + /// Organization that issued id (may be just text). + public Reference Assigner { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Meta.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Meta.Serialization.cs new file mode 100644 index 0000000000000..d32b90cca8dfd --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Meta.Serialization.cs @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.CancerProfiling +{ + public partial class Meta : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(VersionId)) + { + writer.WritePropertyName("versionId"u8); + writer.WriteStringValue(VersionId); + } + if (Optional.IsDefined(LastUpdated)) + { + writer.WritePropertyName("lastUpdated"u8); + writer.WriteStringValue(LastUpdated); + } + if (Optional.IsDefined(Source)) + { + writer.WritePropertyName("source"u8); + writer.WriteStringValue(Source); + } + if (Optional.IsCollectionDefined(Profile)) + { + writer.WritePropertyName("profile"u8); + writer.WriteStartArray(); + foreach (var item in Profile) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(Security)) + { + writer.WritePropertyName("security"u8); + writer.WriteStartArray(); + foreach (var item in Security) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(Tag)) + { + writer.WritePropertyName("tag"u8); + writer.WriteStartArray(); + foreach (var item in Tag) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Meta.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Meta.cs new file mode 100644 index 0000000000000..811d1bccba90c --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Meta.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.CancerProfiling +{ + /// + /// Metadata about a resource + /// Based on [FHIR Meta](https://www.hl7.org/fhir/R4/resource.html#Meta) + /// + public partial class Meta + { + /// Initializes a new instance of . + public Meta() + { + Profile = new ChangeTrackingList(); + Security = new ChangeTrackingList(); + Tag = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted. + /// When the resource last changed - e.g. when the version changed. + /// A uri that identifies the source system of the resource. This provides a minimal amount of Provenance information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc. + /// A list of profiles (references to [StructureDefinition](https://www.hl7.org/fhir/structuredefinition.html) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](https://www.hl7.org/fhir/structuredefinition-definitions.html#StructureDefinition.url). + /// Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure. + /// Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource. + internal Meta(string versionId, string lastUpdated, string source, IList profile, IList security, IList tag) + { + VersionId = versionId; + LastUpdated = lastUpdated; + Source = source; + Profile = profile; + Security = security; + Tag = tag; + } + + /// The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted. + public string VersionId { get; set; } + /// When the resource last changed - e.g. when the version changed. + public string LastUpdated { get; set; } + /// A uri that identifies the source system of the resource. This provides a minimal amount of Provenance information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc. + public string Source { get; set; } + /// A list of profiles (references to [StructureDefinition](https://www.hl7.org/fhir/structuredefinition.html) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](https://www.hl7.org/fhir/structuredefinition-definitions.html#StructureDefinition.url). + public IList Profile { get; } + /// Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure. + public IList Security { get; } + /// Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource. + public IList Tag { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/OncoPhenotypeResults.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/OncoPhenotypeInferenceResult.Serialization.cs similarity index 69% rename from sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/OncoPhenotypeResults.Serialization.cs rename to sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/OncoPhenotypeInferenceResult.Serialization.cs index 2023c5444f32c..a9b49d3b1d015 100644 --- a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/OncoPhenotypeResults.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/OncoPhenotypeInferenceResult.Serialization.cs @@ -11,26 +11,26 @@ namespace Azure.Health.Insights.CancerProfiling { - public partial class OncoPhenotypeResults + public partial class OncoPhenotypeInferenceResult { - internal static OncoPhenotypeResults DeserializeOncoPhenotypeResults(JsonElement element) + internal static OncoPhenotypeInferenceResult DeserializeOncoPhenotypeInferenceResult(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { return null; } - IReadOnlyList patients = default; + IReadOnlyList patientResults = default; string modelVersion = default; foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("patients"u8)) + if (property.NameEquals("patientResults"u8)) { List array = new List(); foreach (var item in property.Value.EnumerateArray()) { array.Add(OncoPhenotypePatientResult.DeserializeOncoPhenotypePatientResult(item)); } - patients = array; + patientResults = array; continue; } if (property.NameEquals("modelVersion"u8)) @@ -39,15 +39,15 @@ internal static OncoPhenotypeResults DeserializeOncoPhenotypeResults(JsonElement continue; } } - return new OncoPhenotypeResults(patients, modelVersion); + return new OncoPhenotypeInferenceResult(patientResults, modelVersion); } /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static OncoPhenotypeResults FromResponse(Response response) + internal static OncoPhenotypeInferenceResult FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content); - return DeserializeOncoPhenotypeResults(document.RootElement); + return DeserializeOncoPhenotypeInferenceResult(document.RootElement); } } } diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/OncoPhenotypeResults.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/OncoPhenotypeInferenceResult.cs similarity index 60% rename from sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/OncoPhenotypeResults.cs rename to sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/OncoPhenotypeInferenceResult.cs index e45a92396d15e..e33e9aeb263e1 100644 --- a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/OncoPhenotypeResults.cs +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/OncoPhenotypeInferenceResult.cs @@ -13,32 +13,32 @@ namespace Azure.Health.Insights.CancerProfiling { /// The inference results for the Onco Phenotype request. - public partial class OncoPhenotypeResults + public partial class OncoPhenotypeInferenceResult { - /// Initializes a new instance of . - /// Results for the patients given in the request. + /// Initializes a new instance of . + /// Results for the patients given in the request. /// The version of the model used for inference, expressed as the model date. - /// or is null. - internal OncoPhenotypeResults(IEnumerable patients, string modelVersion) + /// or is null. + internal OncoPhenotypeInferenceResult(IEnumerable patientResults, string modelVersion) { - Argument.AssertNotNull(patients, nameof(patients)); + Argument.AssertNotNull(patientResults, nameof(patientResults)); Argument.AssertNotNull(modelVersion, nameof(modelVersion)); - Patients = patients.ToList(); + PatientResults = patientResults.ToList(); ModelVersion = modelVersion; } - /// Initializes a new instance of . - /// Results for the patients given in the request. + /// Initializes a new instance of . + /// Results for the patients given in the request. /// The version of the model used for inference, expressed as the model date. - internal OncoPhenotypeResults(IReadOnlyList patients, string modelVersion) + internal OncoPhenotypeInferenceResult(IReadOnlyList patientResults, string modelVersion) { - Patients = patients; + PatientResults = patientResults; ModelVersion = modelVersion; } /// Results for the patients given in the request. - public IReadOnlyList Patients { get; } + public IReadOnlyList PatientResults { get; } /// The version of the model used for inference, expressed as the model date. public string ModelVersion { get; } } diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/OncoPhenotypeInferenceType.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/OncoPhenotypeInferenceType.cs index 1fc7fa940fd47..38ebfb1fdaac7 100644 --- a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/OncoPhenotypeInferenceType.cs +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/OncoPhenotypeInferenceType.cs @@ -30,6 +30,7 @@ public OncoPhenotypeInferenceType(string value) private const string PathologicStageTValue = "pathologicStageT"; private const string PathologicStageNValue = "pathologicStageN"; private const string PathologicStageMValue = "pathologicStageM"; + private const string DiagnosisDateValue = "diagnosisDate"; /// tumorSite. public static OncoPhenotypeInferenceType TumorSite { get; } = new OncoPhenotypeInferenceType(TumorSiteValue); @@ -47,6 +48,8 @@ public OncoPhenotypeInferenceType(string value) public static OncoPhenotypeInferenceType PathologicStageN { get; } = new OncoPhenotypeInferenceType(PathologicStageNValue); /// pathologicStageM. public static OncoPhenotypeInferenceType PathologicStageM { get; } = new OncoPhenotypeInferenceType(PathologicStageMValue); + /// diagnosisDate. + public static OncoPhenotypeInferenceType DiagnosisDate { get; } = new OncoPhenotypeInferenceType(DiagnosisDateValue); /// Determines if two values are the same. public static bool operator ==(OncoPhenotypeInferenceType left, OncoPhenotypeInferenceType right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/OncoPhenotypePatientResult.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/OncoPhenotypePatientResult.Serialization.cs index 1dec7e805a33a..84576a2a570d3 100644 --- a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/OncoPhenotypePatientResult.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/OncoPhenotypePatientResult.Serialization.cs @@ -19,13 +19,13 @@ internal static OncoPhenotypePatientResult DeserializeOncoPhenotypePatientResult { return null; } - string id = default; + string patientId = default; IReadOnlyList inferences = default; foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("id"u8)) + if (property.NameEquals("patientId"u8)) { - id = property.Value.GetString(); + patientId = property.Value.GetString(); continue; } if (property.NameEquals("inferences"u8)) @@ -39,7 +39,7 @@ internal static OncoPhenotypePatientResult DeserializeOncoPhenotypePatientResult continue; } } - return new OncoPhenotypePatientResult(id, inferences); + return new OncoPhenotypePatientResult(patientId, inferences); } /// Deserializes the model from a raw response. diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/OncoPhenotypePatientResult.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/OncoPhenotypePatientResult.cs index f0ed740444fa6..177f805d4f4d5 100644 --- a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/OncoPhenotypePatientResult.cs +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/OncoPhenotypePatientResult.cs @@ -16,29 +16,29 @@ namespace Azure.Health.Insights.CancerProfiling public partial class OncoPhenotypePatientResult { /// Initializes a new instance of . - /// The identifier given for the patient in the request. + /// The identifier given for the patient in the request. /// The model's inferences for the given patient. - /// or is null. - internal OncoPhenotypePatientResult(string id, IEnumerable inferences) + /// or is null. + internal OncoPhenotypePatientResult(string patientId, IEnumerable inferences) { - Argument.AssertNotNull(id, nameof(id)); + Argument.AssertNotNull(patientId, nameof(patientId)); Argument.AssertNotNull(inferences, nameof(inferences)); - Id = id; + PatientId = patientId; Inferences = inferences.ToList(); } /// Initializes a new instance of . - /// The identifier given for the patient in the request. + /// The identifier given for the patient in the request. /// The model's inferences for the given patient. - internal OncoPhenotypePatientResult(string id, IReadOnlyList inferences) + internal OncoPhenotypePatientResult(string patientId, IReadOnlyList inferences) { - Id = id; + PatientId = patientId; Inferences = inferences; } /// The identifier given for the patient in the request. - public string Id { get; } + public string PatientId { get; } /// The model's inferences for the given patient. public IReadOnlyList Inferences { get; } } diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/OrderedProcedure.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/OrderedProcedure.Serialization.cs new file mode 100644 index 0000000000000..596ca88ff7968 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/OrderedProcedure.Serialization.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.CancerProfiling +{ + public partial class OrderedProcedure : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(Code)) + { + writer.WritePropertyName("code"u8); + writer.WriteObjectValue(Code); + } + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + writer.WriteEndObject(); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/OrderedProcedure.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/OrderedProcedure.cs new file mode 100644 index 0000000000000..1bf6e13efb829 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/OrderedProcedure.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.CancerProfiling +{ + /// Procedure information. + public partial class OrderedProcedure + { + /// Initializes a new instance of . + public OrderedProcedure() + { + Extension = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// Additional Content defined by implementations. + /// Procedure code. + /// Procedure description. + internal OrderedProcedure(IList extension, CodeableConcept code, string description) + { + Extension = extension; + Code = code; + Description = description; + } + + /// Additional Content defined by implementations. + public IList Extension { get; } + /// Procedure code. + public CodeableConcept Code { get; set; } + /// Procedure description. + public string Description { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/PatientDocument.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/PatientDocument.Serialization.cs index 640a9208e7daf..87f4ba33e7fd4 100644 --- a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/PatientDocument.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/PatientDocument.Serialization.cs @@ -34,6 +34,26 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("createdDateTime"u8); writer.WriteStringValue(CreatedDateTime.Value, "O"); } + if (Optional.IsCollectionDefined(Authors)) + { + writer.WritePropertyName("authors"u8); + writer.WriteStartArray(); + foreach (var item in Authors) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(SpecialtyType)) + { + writer.WritePropertyName("specialtyType"u8); + writer.WriteStringValue(SpecialtyType.Value.ToString()); + } + if (Optional.IsDefined(AdministrativeMetadata)) + { + writer.WritePropertyName("administrativeMetadata"u8); + writer.WriteObjectValue(AdministrativeMetadata); + } writer.WritePropertyName("content"u8); writer.WriteObjectValue(Content); writer.WriteEndObject(); diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/PatientDocument.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/PatientDocument.cs index 25fe04d5f83a2..2e8ee8086e3de 100644 --- a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/PatientDocument.cs +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/PatientDocument.cs @@ -6,6 +6,7 @@ #nullable disable using System; +using System.Collections.Generic; using Azure.Core; namespace Azure.Health.Insights.CancerProfiling @@ -25,6 +26,7 @@ public PatientDocument(DocumentType type, string id, DocumentContent content) Type = type; Id = id; + Authors = new ChangeTrackingList(); Content = content; } @@ -34,14 +36,20 @@ public PatientDocument(DocumentType type, string id, DocumentContent content) /// A given identifier for the document. Has to be unique across all documents for a single patient. /// A 2 letter ISO 639-1 representation of the language of the document. /// The date and time when the document was created. + /// Document author(s). + /// specialty type the document. + /// Administrative metadata for the document. /// The content of the patient document. - internal PatientDocument(DocumentType type, ClinicalDocumentType? clinicalType, string id, string language, DateTimeOffset? createdDateTime, DocumentContent content) + internal PatientDocument(DocumentType type, ClinicalDocumentType? clinicalType, string id, string language, DateTimeOffset? createdDateTime, IList authors, SpecialtyType? specialtyType, DocumentAdministrativeMetadata administrativeMetadata, DocumentContent content) { Type = type; ClinicalType = clinicalType; Id = id; Language = language; CreatedDateTime = createdDateTime; + Authors = authors; + SpecialtyType = specialtyType; + AdministrativeMetadata = administrativeMetadata; Content = content; } @@ -55,6 +63,12 @@ internal PatientDocument(DocumentType type, ClinicalDocumentType? clinicalType, public string Language { get; set; } /// The date and time when the document was created. public DateTimeOffset? CreatedDateTime { get; set; } + /// Document author(s). + public IList Authors { get; } + /// specialty type the document. + public SpecialtyType? SpecialtyType { get; set; } + /// Administrative metadata for the document. + public DocumentAdministrativeMetadata AdministrativeMetadata { get; set; } /// The content of the patient document. public DocumentContent Content { get; } } diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/PatientInfo.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/PatientInfo.cs index e2202e6711d04..9aaa63188997b 100644 --- a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/PatientInfo.cs +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/PatientInfo.cs @@ -17,14 +17,14 @@ public partial class PatientInfo /// Initializes a new instance of . public PatientInfo() { - ClinicalInfo = new ChangeTrackingList(); + ClinicalInfo = new ChangeTrackingList(); } /// Initializes a new instance of . /// The patient's sex. /// The patient's date of birth. /// Known clinical information for the patient, structured. - internal PatientInfo(PatientInfoSex? sex, DateTimeOffset? birthDate, IList clinicalInfo) + internal PatientInfo(PatientInfoSex? sex, DateTimeOffset? birthDate, IList clinicalInfo) { Sex = sex; BirthDate = birthDate; @@ -36,6 +36,6 @@ internal PatientInfo(PatientInfoSex? sex, DateTimeOffset? birthDate, IList The patient's date of birth. public DateTimeOffset? BirthDate { get; set; } /// Known clinical information for the patient, structured. - public IList ClinicalInfo { get; } + public IList ClinicalInfo { get; } } } diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/PatientRecord.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/PatientRecord.Serialization.cs index 092eded2bfe6f..2aaf7cd67ee4c 100644 --- a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/PatientRecord.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/PatientRecord.Serialization.cs @@ -22,11 +22,21 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("info"u8); writer.WriteObjectValue(Info); } - if (Optional.IsCollectionDefined(Data)) + if (Optional.IsCollectionDefined(Encounters)) { - writer.WritePropertyName("data"u8); + writer.WritePropertyName("encounters"u8); writer.WriteStartArray(); - foreach (var item in Data) + foreach (var item in Encounters) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(PatientDocuments)) + { + writer.WritePropertyName("patientDocuments"u8); + writer.WriteStartArray(); + foreach (var item in PatientDocuments) { writer.WriteObjectValue(item); } diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/PatientRecord.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/PatientRecord.cs index d2383b4da9d88..4ad9eba28f442 100644 --- a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/PatientRecord.cs +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/PatientRecord.cs @@ -22,25 +22,30 @@ public PatientRecord(string id) Argument.AssertNotNull(id, nameof(id)); Id = id; - Data = new ChangeTrackingList(); + Encounters = new ChangeTrackingList(); + PatientDocuments = new ChangeTrackingList(); } /// Initializes a new instance of . /// A given identifier for the patient. Has to be unique across all patients in a single request. /// Patient structured information, including demographics and known structured clinical information. - /// Patient unstructured clinical data, given as documents. - internal PatientRecord(string id, PatientInfo info, IList data) + /// Patient encounters/visits. + /// Patient unstructured clinical data, given as documents. + internal PatientRecord(string id, PatientInfo info, IList encounters, IList patientDocuments) { Id = id; Info = info; - Data = data; + Encounters = encounters; + PatientDocuments = patientDocuments; } /// A given identifier for the patient. Has to be unique across all patients in a single request. public string Id { get; } /// Patient structured information, including demographics and known structured clinical information. public PatientInfo Info { get; set; } + /// Patient encounters/visits. + public IList Encounters { get; } /// Patient unstructured clinical data, given as documents. - public IList Data { get; } + public IList PatientDocuments { get; } } } diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Period.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Period.Serialization.cs new file mode 100644 index 0000000000000..d6ad0a320685d --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Period.Serialization.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.CancerProfiling +{ + public partial class Period : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsDefined(Start)) + { + writer.WritePropertyName("start"u8); + writer.WriteStringValue(Start); + } + if (Optional.IsDefined(End)) + { + writer.WritePropertyName("end"u8); + writer.WriteStringValue(End); + } + writer.WriteEndObject(); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Period.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Period.cs new file mode 100644 index 0000000000000..1053a4d6dd8d7 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Period.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Health.Insights.CancerProfiling +{ + /// + /// A time period defined by a start and end date and optionally time + /// Based on [FHIR Period](https://www.hl7.org/fhir/R4/datatypes.html#Period) + /// + public partial class Period + { + /// Initializes a new instance of . + public Period() + { + } + + /// Initializes a new instance of . + /// Unique id for inter-element referencing. + /// Starting time with inclusive boundary. + /// End time with inclusive boundary, if not ongoing. + internal Period(string id, string start, string end) + { + Id = id; + Start = start; + End = end; + } + + /// Unique id for inter-element referencing. + public string Id { get; set; } + /// Starting time with inclusive boundary. + public string Start { get; set; } + /// End time with inclusive boundary, if not ongoing. + public string End { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Quantity.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Quantity.Serialization.cs new file mode 100644 index 0000000000000..68f293f240b20 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Quantity.Serialization.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.CancerProfiling +{ + public partial class Quantity : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsDefined(Value)) + { + writer.WritePropertyName("value"u8); + writer.WriteNumberValue(Value.Value); + } + if (Optional.IsDefined(Comparator)) + { + writer.WritePropertyName("comparator"u8); + writer.WriteStringValue(Comparator); + } + if (Optional.IsDefined(Unit)) + { + writer.WritePropertyName("unit"u8); + writer.WriteStringValue(Unit); + } + if (Optional.IsDefined(System)) + { + writer.WritePropertyName("system"u8); + writer.WriteStringValue(System); + } + if (Optional.IsDefined(Code)) + { + writer.WritePropertyName("code"u8); + writer.WriteStringValue(Code); + } + writer.WriteEndObject(); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Quantity.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Quantity.cs new file mode 100644 index 0000000000000..38b829be197df --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Quantity.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Health.Insights.CancerProfiling +{ + /// + /// A measured or measurable amount + /// Based on [FHIR Quantity](https://www.hl7.org/fhir/R4/datatypes.html#Quantity) + /// + public partial class Quantity + { + /// Initializes a new instance of . + public Quantity() + { + } + + /// Initializes a new instance of . + /// Unique id for inter-element referencing. + /// Numerical value (with implicit precision). + /// < | <= | >= | > - how to understand the value. + /// Unit representation. + /// System that defines coded unit form. + /// Coded form of the unit. + internal Quantity(string id, decimal? value, string comparator, string unit, string system, string code) + { + Id = id; + Value = value; + Comparator = comparator; + Unit = unit; + System = system; + Code = code; + } + + /// Unique id for inter-element referencing. + public string Id { get; set; } + /// Numerical value (with implicit precision). + public decimal? Value { get; set; } + /// < | <= | >= | > - how to understand the value. + public string Comparator { get; set; } + /// Unit representation. + public string Unit { get; set; } + /// System that defines coded unit form. + public string System { get; set; } + /// Coded form of the unit. + public string Code { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Range.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Range.Serialization.cs new file mode 100644 index 0000000000000..f1c58f117659a --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Range.Serialization.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.CancerProfiling +{ + public partial class Range : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsDefined(Low)) + { + writer.WritePropertyName("low"u8); + writer.WriteObjectValue(Low); + } + if (Optional.IsDefined(High)) + { + writer.WritePropertyName("high"u8); + writer.WriteObjectValue(High); + } + writer.WriteEndObject(); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Range.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Range.cs new file mode 100644 index 0000000000000..0dfce4f183960 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Range.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Health.Insights.CancerProfiling +{ + /// + /// A set of ordered Quantities defined by a low and high limit + /// Based on [FHIR Range](https://www.hl7.org/fhir/R4/datatypes.html#Range) + /// + public partial class Range + { + /// Initializes a new instance of . + public Range() + { + } + + /// Initializes a new instance of . + /// Unique id for inter-element referencing. + /// Low limit. + /// High limit. + internal Range(string id, Quantity low, Quantity high) + { + Id = id; + Low = low; + High = high; + } + + /// Unique id for inter-element referencing. + public string Id { get; set; } + /// Low limit. + public Quantity Low { get; set; } + /// High limit. + public Quantity High { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Ratio.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Ratio.Serialization.cs new file mode 100644 index 0000000000000..4b8f4390e6061 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Ratio.Serialization.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.CancerProfiling +{ + public partial class Ratio : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsDefined(Numerator)) + { + writer.WritePropertyName("numerator"u8); + writer.WriteObjectValue(Numerator); + } + if (Optional.IsDefined(Denominator)) + { + writer.WritePropertyName("denominator"u8); + writer.WriteObjectValue(Denominator); + } + writer.WriteEndObject(); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Ratio.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Ratio.cs new file mode 100644 index 0000000000000..b81bcb6a70316 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Ratio.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Health.Insights.CancerProfiling +{ + /// + /// A ratio of two Quantity values - a numerator and a denominator + /// Based on [FHIR Ratio](https://www.hl7.org/fhir/R4/datatypes.html#Ratio) + /// + public partial class Ratio + { + /// Initializes a new instance of . + public Ratio() + { + } + + /// Initializes a new instance of . + /// Unique id for inter-element referencing. + /// Numerator value. + /// Denominator value. + internal Ratio(string id, Quantity numerator, Quantity denominator) + { + Id = id; + Numerator = numerator; + Denominator = denominator; + } + + /// Unique id for inter-element referencing. + public string Id { get; set; } + /// Numerator value. + public Quantity Numerator { get; set; } + /// Denominator value. + public Quantity Denominator { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Reference.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Reference.Serialization.cs new file mode 100644 index 0000000000000..031df6fd531c1 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Reference.Serialization.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.CancerProfiling +{ + public partial class Reference : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsDefined(ReferenceProperty)) + { + writer.WritePropertyName("reference"u8); + writer.WriteStringValue(ReferenceProperty); + } + if (Optional.IsDefined(Type)) + { + writer.WritePropertyName("type"u8); + writer.WriteStringValue(Type); + } + if (Optional.IsDefined(Identifier)) + { + writer.WritePropertyName("identifier"u8); + writer.WriteObjectValue(Identifier); + } + if (Optional.IsDefined(Display)) + { + writer.WritePropertyName("display"u8); + writer.WriteStringValue(Display); + } + writer.WriteEndObject(); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Reference.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Reference.cs new file mode 100644 index 0000000000000..d17009e254940 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Reference.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Health.Insights.CancerProfiling +{ + /// + /// A reference from one resource to another + /// Based on [FHIR Reference](https://www.hl7.org/fhir/R4/references.html) + /// + public partial class Reference + { + /// Initializes a new instance of . + public Reference() + { + } + + /// Initializes a new instance of . + /// Unique id for inter-element referencing. + /// Literal reference, Relative, internal or absolute URL. + /// Type the reference refers to (e.g. "Patient"). + /// Logical reference, when literal reference is not known. + /// Text alternative for the resource. + internal Reference(string id, string referenceProperty, string type, Identifier identifier, string display) + { + Id = id; + ReferenceProperty = referenceProperty; + Type = type; + Identifier = identifier; + Display = display; + } + + /// Unique id for inter-element referencing. + public string Id { get; set; } + /// Literal reference, Relative, internal or absolute URL. + public string ReferenceProperty { get; set; } + /// Type the reference refers to (e.g. "Patient"). + public string Type { get; set; } + /// Logical reference, when literal reference is not known. + public Identifier Identifier { get; set; } + /// Text alternative for the resource. + public string Display { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Resource.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Resource.Serialization.cs new file mode 100644 index 0000000000000..8b6e23bc0761a --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Resource.Serialization.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.CancerProfiling +{ + public partial class Resource : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("resourceType"u8); + writer.WriteStringValue(ResourceType); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsDefined(Meta)) + { + writer.WritePropertyName("meta"u8); + writer.WriteObjectValue(Meta); + } + if (Optional.IsDefined(ImplicitRules)) + { + writer.WritePropertyName("implicitRules"u8); + writer.WriteStringValue(ImplicitRules); + } + if (Optional.IsDefined(Language)) + { + writer.WritePropertyName("language"u8); + writer.WriteStringValue(Language); + } + foreach (var item in AdditionalProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + writer.WriteEndObject(); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Resource.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Resource.cs new file mode 100644 index 0000000000000..6d33d6ec78c17 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Resource.cs @@ -0,0 +1,90 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.CancerProfiling +{ + /// + /// Resource is the ancestor of DomainResource from which most resources are derived. Bundle, Parameters, and Binary extend Resource directly. + /// Based on [FHIR Resource](https://www.hl7.org/fhir/r4/resource.html + /// + public partial class Resource + { + /// Initializes a new instance of . + /// The type of resource. + /// is null. + public Resource(string resourceType) + { + Argument.AssertNotNull(resourceType, nameof(resourceType)); + + ResourceType = resourceType; + AdditionalProperties = new ChangeTrackingDictionary(); + } + + /// Initializes a new instance of . + /// The type of resource. + /// Resource Id. + /// Metadata about the resource. + /// A set of rules under which this content was created. + /// Language of the resource content. + /// Additional Properties. + internal Resource(string resourceType, string id, Meta meta, string implicitRules, string language, IDictionary additionalProperties) + { + ResourceType = resourceType; + Id = id; + Meta = meta; + ImplicitRules = implicitRules; + Language = language; + AdditionalProperties = additionalProperties; + } + + /// The type of resource. + public string ResourceType { get; } + /// Resource Id. + public string Id { get; set; } + /// Metadata about the resource. + public Meta Meta { get; set; } + /// A set of rules under which this content was created. + public string ImplicitRules { get; set; } + /// Language of the resource content. + public string Language { get; set; } + /// + /// Additional Properties + /// + /// 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" }. + /// + /// + /// + /// + public IDictionary AdditionalProperties { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/SampledData.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/SampledData.Serialization.cs new file mode 100644 index 0000000000000..fb848659a1d6a --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/SampledData.Serialization.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.CancerProfiling +{ + public partial class SampledData : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + writer.WritePropertyName("origin"u8); + writer.WriteObjectValue(Origin); + writer.WritePropertyName("period"u8); + writer.WriteNumberValue(Period); + if (Optional.IsDefined(Factor)) + { + writer.WritePropertyName("factor"u8); + writer.WriteNumberValue(Factor.Value); + } + if (Optional.IsDefined(LowerLimit)) + { + writer.WritePropertyName("lowerLimit"u8); + writer.WriteNumberValue(LowerLimit.Value); + } + if (Optional.IsDefined(UpperLimit)) + { + writer.WritePropertyName("upperLimit"u8); + writer.WriteNumberValue(UpperLimit.Value); + } + writer.WritePropertyName("dimensions"u8); + writer.WriteNumberValue(Dimensions); + if (Optional.IsDefined(Data)) + { + writer.WritePropertyName("data"u8); + writer.WriteStringValue(Data); + } + writer.WriteEndObject(); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/SampledData.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/SampledData.cs new file mode 100644 index 0000000000000..d549a5440bd7c --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/SampledData.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.Health.Insights.CancerProfiling +{ + /// + /// A series of measurements taken by a device + /// Based on [FHIR SampledData](https://www.hl7.org/fhir/R4/datatypes.html#SampledData) + /// + public partial class SampledData + { + /// Initializes a new instance of . + /// Zero value and units. + /// Number of milliseconds between samples. + /// Number of sample points at each time point. + /// is null. + public SampledData(Quantity origin, decimal period, int dimensions) + { + Argument.AssertNotNull(origin, nameof(origin)); + + Origin = origin; + Period = period; + Dimensions = dimensions; + } + + /// Initializes a new instance of . + /// Unique id for inter-element referencing. + /// Zero value and units. + /// Number of milliseconds between samples. + /// Multiply data by this before adding to origin. + /// Lower limit of detection. + /// Upper limit of detection. + /// Number of sample points at each time point. + /// Decimal values with spaces, or "E" | "U" | "L". + internal SampledData(string id, Quantity origin, decimal period, decimal? factor, decimal? lowerLimit, decimal? upperLimit, int dimensions, string data) + { + Id = id; + Origin = origin; + Period = period; + Factor = factor; + LowerLimit = lowerLimit; + UpperLimit = upperLimit; + Dimensions = dimensions; + Data = data; + } + + /// Unique id for inter-element referencing. + public string Id { get; set; } + /// Zero value and units. + public Quantity Origin { get; } + /// Number of milliseconds between samples. + public decimal Period { get; } + /// Multiply data by this before adding to origin. + public decimal? Factor { get; set; } + /// Lower limit of detection. + public decimal? LowerLimit { get; set; } + /// Upper limit of detection. + public decimal? UpperLimit { get; set; } + /// Number of sample points at each time point. + public int Dimensions { get; } + /// Decimal values with spaces, or "E" | "U" | "L". + public string Data { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/SpecialtyType.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/SpecialtyType.cs new file mode 100644 index 0000000000000..85894166b8303 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/SpecialtyType.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.CancerProfiling +{ + /// Known values codes that can be used to indicate the type of the Specialty. + public readonly partial struct SpecialtyType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public SpecialtyType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string PathologyValue = "pathology"; + private const string RadiologyValue = "radiology"; + + /// pathology. + public static SpecialtyType Pathology { get; } = new SpecialtyType(PathologyValue); + /// radiology. + public static SpecialtyType Radiology { get; } = new SpecialtyType(RadiologyValue); + /// Determines if two values are the same. + public static bool operator ==(SpecialtyType left, SpecialtyType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(SpecialtyType left, SpecialtyType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator SpecialtyType(string value) => new SpecialtyType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is SpecialtyType other && Equals(other); + /// + public bool Equals(SpecialtyType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/TimePeriod.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/TimePeriod.Serialization.cs new file mode 100644 index 0000000000000..45952aaffc378 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/TimePeriod.Serialization.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.CancerProfiling +{ + public partial class TimePeriod : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Start)) + { + writer.WritePropertyName("start"u8); + writer.WriteStringValue(Start.Value, "O"); + } + if (Optional.IsDefined(End)) + { + writer.WritePropertyName("end"u8); + writer.WriteStringValue(End.Value, "O"); + } + writer.WriteEndObject(); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/TimePeriod.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/TimePeriod.cs new file mode 100644 index 0000000000000..cd682f55acc36 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/TimePeriod.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.Health.Insights.CancerProfiling +{ + /// A duration of time during which an event is happening. + public partial class TimePeriod + { + /// Initializes a new instance of . + public TimePeriod() + { + } + + /// Initializes a new instance of . + /// Starting time with inclusive boundary. + /// End time with inclusive boundary, if not ongoing. + internal TimePeriod(DateTimeOffset? start, DateTimeOffset? end) + { + Start = start; + End = end; + } + + /// Starting time with inclusive boundary. + public DateTimeOffset? Start { get; set; } + /// End time with inclusive boundary, if not ongoing. + public DateTimeOffset? End { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/tests/Generated/Samples/Samples_CancerProfilingClient.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/tests/Generated/Samples/Samples_CancerProfilingClient.cs index f6f0887483a11..e81d611702078 100644 --- a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/tests/Generated/Samples/Samples_CancerProfilingClient.cs +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/tests/Generated/Samples/Samples_CancerProfilingClient.cs @@ -6,6 +6,7 @@ #nullable disable using System; +using System.Collections.Generic; using System.Text.Json; using System.Threading.Tasks; using Azure; @@ -40,9 +41,9 @@ public void Example_CancerProfilingClient_InferCancerProfile_ShortVersion() BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("id").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("patientId").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("value").ToString()); Console.WriteLine(result.GetProperty("modelVersion").ToString()); } @@ -68,9 +69,9 @@ public async Task Example_CancerProfilingClient_InferCancerProfile_ShortVersion_ BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("id").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("patientId").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("value").ToString()); Console.WriteLine(result.GetProperty("modelVersion").ToString()); } @@ -86,8 +87,8 @@ public void Example_CancerProfilingClient_InferCancerProfile_ShortVersion_Conven { new PatientRecord("") }); - Operation operation = client.InferCancerProfile(WaitUntil.Completed, oncoPhenotypeData); - OncoPhenotypeResults responseData = operation.Value; + Operation operation = client.InferCancerProfile(WaitUntil.Completed, oncoPhenotypeData); + OncoPhenotypeInferenceResult responseData = operation.Value; } [Test] @@ -102,8 +103,8 @@ public async Task Example_CancerProfilingClient_InferCancerProfile_ShortVersion_ { new PatientRecord("") }); - Operation operation = await client.InferCancerProfileAsync(WaitUntil.Completed, oncoPhenotypeData); - OncoPhenotypeResults responseData = operation.Value; + Operation operation = await client.InferCancerProfileAsync(WaitUntil.Completed, oncoPhenotypeData); + OncoPhenotypeInferenceResult responseData = operation.Value; } [Test] @@ -129,14 +130,121 @@ public void Example_CancerProfilingClient_InferCancerProfile_AllParameters() { new { +resourceType = "", +id = "", +meta = new +{ +versionId = "", +lastUpdated = "", +source = "", +profile = new object[] +{ +"" +}, +security = new object[] +{ +new +{ +id = "", +extension = new object[] +{ +new +{ +id = "", +url = "", +valueQuantity = new +{ +id = "", +value = new object(), +comparator = "", +unit = "", system = "", code = "", -name = "", +}, +valueCodeableConcept = new +{ +id = "", +coding = new object[] +{ +null +}, +text = "", +}, +valueString = "", +valueBoolean = true, +valueInteger = 1234, +valueRange = new +{ +id = "", +}, +valueRatio = new +{ +id = "", +}, +valueSampledData = new +{ +id = "", +period = new object(), +factor = new object(), +lowerLimit = new object(), +upperLimit = new object(), +dimensions = 1234, +data = "", +}, +valueTime = "01:23:45", +valueDateTime = "", +valuePeriod = new +{ +id = "", +start = "", +end = "", +}, +valueReference = new +{ +id = "", +reference = "", +type = "", +identifier = new +{ +id = "", +use = "", +system = "", value = "", +}, +display = "", +}, } }, +system = "", +version = "", +code = "", +display = "", +} }, -data = new object[] +tag = new object[] +{ +null +}, +}, +implicitRules = "", +language = "", +} +}, +}, +encounters = new object[] +{ +new Dictionary +{ +["id"] = "", +["period"] = new +{ +start = "2022-05-10T14:57:31.2311892-04:00", +end = "2022-05-10T14:57:31.2311892-04:00", +}, +["class"] = "inpatient" +} +}, +patientDocuments = new object[] { new { @@ -145,6 +253,30 @@ public void Example_CancerProfilingClient_InferCancerProfile_AllParameters() id = "", language = "", createdDateTime = "2022-05-10T14:57:31.2311892-04:00", +authors = new object[] +{ +new +{ +id = "", +fullName = "", +} +}, +specialtyType = "pathology", +administrativeMetadata = new +{ +orderedProcedures = new object[] +{ +new +{ +extension = new object[] +{ +null +}, +description = "", +} +}, +encounterId = "", +}, content = new { sourceType = "inline", @@ -169,21 +301,21 @@ public void Example_CancerProfilingClient_InferCancerProfile_AllParameters() BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("id").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("value").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("description").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("confidenceScore").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("id").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("text").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("offset").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("length").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("system").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("name").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("value").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("importance").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("caseId").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("patientId").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("description").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("confidenceScore").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("offset").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("length").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("name").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("importance").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("caseId").ToString()); Console.WriteLine(result.GetProperty("modelVersion").ToString()); } @@ -210,14 +342,121 @@ public async Task Example_CancerProfilingClient_InferCancerProfile_AllParameters { new { +resourceType = "", +id = "", +meta = new +{ +versionId = "", +lastUpdated = "", +source = "", +profile = new object[] +{ +"" +}, +security = new object[] +{ +new +{ +id = "", +extension = new object[] +{ +new +{ +id = "", +url = "", +valueQuantity = new +{ +id = "", +value = new object(), +comparator = "", +unit = "", system = "", code = "", -name = "", +}, +valueCodeableConcept = new +{ +id = "", +coding = new object[] +{ +null +}, +text = "", +}, +valueString = "", +valueBoolean = true, +valueInteger = 1234, +valueRange = new +{ +id = "", +}, +valueRatio = new +{ +id = "", +}, +valueSampledData = new +{ +id = "", +period = new object(), +factor = new object(), +lowerLimit = new object(), +upperLimit = new object(), +dimensions = 1234, +data = "", +}, +valueTime = "01:23:45", +valueDateTime = "", +valuePeriod = new +{ +id = "", +start = "", +end = "", +}, +valueReference = new +{ +id = "", +reference = "", +type = "", +identifier = new +{ +id = "", +use = "", +system = "", value = "", +}, +display = "", +}, +} +}, +system = "", +version = "", +code = "", +display = "", +} +}, +tag = new object[] +{ +null +}, +}, +implicitRules = "", +language = "", } }, }, -data = new object[] +encounters = new object[] +{ +new Dictionary +{ +["id"] = "", +["period"] = new +{ +start = "2022-05-10T14:57:31.2311892-04:00", +end = "2022-05-10T14:57:31.2311892-04:00", +}, +["class"] = "inpatient" +} +}, +patientDocuments = new object[] { new { @@ -226,6 +465,30 @@ public async Task Example_CancerProfilingClient_InferCancerProfile_AllParameters id = "", language = "", createdDateTime = "2022-05-10T14:57:31.2311892-04:00", +authors = new object[] +{ +new +{ +id = "", +fullName = "", +} +}, +specialtyType = "pathology", +administrativeMetadata = new +{ +orderedProcedures = new object[] +{ +new +{ +extension = new object[] +{ +null +}, +description = "", +} +}, +encounterId = "", +}, content = new { sourceType = "inline", @@ -250,21 +513,21 @@ public async Task Example_CancerProfilingClient_InferCancerProfile_AllParameters BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("id").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("value").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("description").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("confidenceScore").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("id").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("text").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("offset").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("length").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("system").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("name").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("value").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("importance").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("caseId").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("patientId").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("description").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("confidenceScore").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("offset").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("length").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("name").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("importance").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("caseId").ToString()); Console.WriteLine(result.GetProperty("modelVersion").ToString()); } @@ -284,17 +547,126 @@ public void Example_CancerProfilingClient_InferCancerProfile_AllParameters_Conve { Sex = PatientInfoSex.Female, BirthDate = DateTimeOffset.Parse("2022-05-10"), -ClinicalInfo = {new ClinicalCodedElement("", "") +ClinicalInfo = {new Resource("") +{ +Id = "", +Meta = new Meta +{ +VersionId = "", +LastUpdated = "", +Source = "", +Profile = {""}, +Security = {new Coding { -Name = "", +Id = "", +Extension = {new Extension("") +{ +Id = "", +ValueQuantity = new Quantity +{ +Id = "", +Value = default, +Comparator = "", +Unit = "", +System = "", +Code = "", +}, +ValueCodeableConcept = new CodeableConcept +{ +Id = "", +Coding = {default}, +Text = "", +}, +ValueString = "", +ValueBoolean = true, +ValueInteger = 1234, +ValueRange = new Range +{ +Id = "", +Low = default, +High = default, +}, +ValueRatio = new Ratio +{ +Id = "", +Numerator = default, +Denominator = default, +}, +ValueSampledData = new SampledData(default, default, 1234) +{ +Id = "", +Factor = default, +LowerLimit = default, +UpperLimit = default, +Data = "", +}, +ValueTime = TimeSpan.Parse("01:23:45"), +ValueDateTime = "", +ValuePeriod = new Period +{ +Id = "", +Start = "", +End = "", +}, +ValueReference = new Reference +{ +Id = "", +ReferenceProperty = "", +Type = "", +Identifier = new Identifier +{ +Id = "", +Use = "", +Type = default, +System = "", Value = "", +Period = default, +Assigner = default, +}, +Display = "", +}, }}, +System = "", +Version = "", +Code = "", +Display = "", +}}, +Tag = {default}, }, -Data = {new PatientDocument(DocumentType.Note, "", new DocumentContent(DocumentContentSourceType.Inline, "")) +ImplicitRules = "", +Language = "", +}}, +}, +Encounters = {new Encounter("") +{ +Period = new TimePeriod +{ +Start = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), +End = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), +}, +Class = EncounterClass.InPatient, +}}, +PatientDocuments = {new PatientDocument(DocumentType.Note, "", new DocumentContent(DocumentContentSourceType.Inline, "")) { ClinicalType = ClinicalDocumentType.Consultation, Language = "", CreatedDateTime = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), +Authors = {new DocumentAuthor +{ +Id = "", +FullName = "", +}}, +SpecialtyType = SpecialtyType.Pathology, +AdministrativeMetadata = new DocumentAdministrativeMetadata +{ +OrderedProcedures = {new OrderedProcedure +{ +Extension = {default}, +Code = default, +Description = "", +}}, +EncounterId = "", +}, }}, } }) @@ -307,8 +679,8 @@ public void Example_CancerProfilingClient_InferCancerProfile_AllParameters_Conve CheckForCancerCase = true, }, }; - Operation operation = client.InferCancerProfile(WaitUntil.Completed, oncoPhenotypeData); - OncoPhenotypeResults responseData = operation.Value; + Operation operation = client.InferCancerProfile(WaitUntil.Completed, oncoPhenotypeData); + OncoPhenotypeInferenceResult responseData = operation.Value; } [Test] @@ -327,17 +699,126 @@ public async Task Example_CancerProfilingClient_InferCancerProfile_AllParameters { Sex = PatientInfoSex.Female, BirthDate = DateTimeOffset.Parse("2022-05-10"), -ClinicalInfo = {new ClinicalCodedElement("", "") +ClinicalInfo = {new Resource("") +{ +Id = "", +Meta = new Meta +{ +VersionId = "", +LastUpdated = "", +Source = "", +Profile = {""}, +Security = {new Coding +{ +Id = "", +Extension = {new Extension("") +{ +Id = "", +ValueQuantity = new Quantity +{ +Id = "", +Value = default, +Comparator = "", +Unit = "", +System = "", +Code = "", +}, +ValueCodeableConcept = new CodeableConcept +{ +Id = "", +Coding = {default}, +Text = "", +}, +ValueString = "", +ValueBoolean = true, +ValueInteger = 1234, +ValueRange = new Range { -Name = "", +Id = "", +Low = default, +High = default, +}, +ValueRatio = new Ratio +{ +Id = "", +Numerator = default, +Denominator = default, +}, +ValueSampledData = new SampledData(default, default, 1234) +{ +Id = "", +Factor = default, +LowerLimit = default, +UpperLimit = default, +Data = "", +}, +ValueTime = TimeSpan.Parse("01:23:45"), +ValueDateTime = "", +ValuePeriod = new Period +{ +Id = "", +Start = "", +End = "", +}, +ValueReference = new Reference +{ +Id = "", +ReferenceProperty = "", +Type = "", +Identifier = new Identifier +{ +Id = "", +Use = "", +Type = default, +System = "", Value = "", +Period = default, +Assigner = default, +}, +Display = "", +}, +}}, +System = "", +Version = "", +Code = "", +Display = "", }}, +Tag = {default}, }, -Data = {new PatientDocument(DocumentType.Note, "", new DocumentContent(DocumentContentSourceType.Inline, "")) +ImplicitRules = "", +Language = "", +}}, +}, +Encounters = {new Encounter("") +{ +Period = new TimePeriod +{ +Start = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), +End = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), +}, +Class = EncounterClass.InPatient, +}}, +PatientDocuments = {new PatientDocument(DocumentType.Note, "", new DocumentContent(DocumentContentSourceType.Inline, "")) { ClinicalType = ClinicalDocumentType.Consultation, Language = "", CreatedDateTime = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), +Authors = {new DocumentAuthor +{ +Id = "", +FullName = "", +}}, +SpecialtyType = SpecialtyType.Pathology, +AdministrativeMetadata = new DocumentAdministrativeMetadata +{ +OrderedProcedures = {new OrderedProcedure +{ +Extension = {default}, +Code = default, +Description = "", +}}, +EncounterId = "", +}, }}, } }) @@ -350,8 +831,8 @@ public async Task Example_CancerProfilingClient_InferCancerProfile_AllParameters CheckForCancerCase = true, }, }; - Operation operation = await client.InferCancerProfileAsync(WaitUntil.Completed, oncoPhenotypeData); - OncoPhenotypeResults responseData = operation.Value; + Operation operation = await client.InferCancerProfileAsync(WaitUntil.Completed, oncoPhenotypeData); + OncoPhenotypeInferenceResult responseData = operation.Value; } } } diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/tsp-location.yaml b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/tsp-location.yaml index b828e244579db..eea9760095305 100644 --- a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/tsp-location.yaml +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/tsp-location.yaml @@ -1,6 +1,7 @@ -directory: specification/ai/HealthInsights/HealthInsights.OncoPhenotype/ +repo: Azure/azure-rest-api-specs +commit: 3025b3f6f47b628c17b60d5d5c553cf123845ecd +directory: specification/ai/HealthInsights/HealthInsights.OncoPhenotype additionalDirectories: - - specification/ai/HealthInsights/HealthInsights.OpenAPI/ - - specification/ai/HealthInsights/HealthInsights.Common/ -commit: 5e0c86b469be528174996420da94388ac12ce127 -repo: azure/azure-rest-api-specs +- specification/ai/HealthInsights/HealthInsights.Common/ +- specification/ai/HealthInsights/HealthInsights.OpenAPI/ + diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/api/Azure.Health.Insights.ClinicalMatching.netstandard2.0.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/api/Azure.Health.Insights.ClinicalMatching.netstandard2.0.cs index 5a4dae9676f47..6525f01d4593e 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/api/Azure.Health.Insights.ClinicalMatching.netstandard2.0.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/api/Azure.Health.Insights.ClinicalMatching.netstandard2.0.cs @@ -1,35 +1,13 @@ namespace Azure.Health.Insights.ClinicalMatching { - public partial class AcceptedAge + public partial class Annotation { - public AcceptedAge(Azure.Health.Insights.ClinicalMatching.AgeUnit unit, float value) { } - public Azure.Health.Insights.ClinicalMatching.AgeUnit Unit { get { throw null; } } - public float Value { get { throw null; } } - } - public partial class AcceptedAgeRange - { - public AcceptedAgeRange() { } - public Azure.Health.Insights.ClinicalMatching.AcceptedAge MaximumAge { get { throw null; } set { } } - public Azure.Health.Insights.ClinicalMatching.AcceptedAge MinimumAge { get { throw null; } set { } } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct AgeUnit : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public AgeUnit(string value) { throw null; } - public static Azure.Health.Insights.ClinicalMatching.AgeUnit Days { get { throw null; } } - public static Azure.Health.Insights.ClinicalMatching.AgeUnit Months { get { throw null; } } - public static Azure.Health.Insights.ClinicalMatching.AgeUnit Years { get { throw null; } } - public bool Equals(Azure.Health.Insights.ClinicalMatching.AgeUnit 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.ClinicalMatching.AgeUnit left, Azure.Health.Insights.ClinicalMatching.AgeUnit right) { throw null; } - public static implicit operator Azure.Health.Insights.ClinicalMatching.AgeUnit (string value) { throw null; } - public static bool operator !=(Azure.Health.Insights.ClinicalMatching.AgeUnit left, Azure.Health.Insights.ClinicalMatching.AgeUnit right) { throw null; } - public override string ToString() { throw null; } + public Annotation(string text) { } + public string AuthorString { get { throw null; } set { } } + public System.Collections.Generic.IList Extension { get { throw null; } } + public string Id { get { throw null; } set { } } + public string Text { get { throw null; } } + public string Time { get { throw null; } set { } } } public partial class AreaGeometry { @@ -45,11 +23,11 @@ public AreaProperties(Azure.Health.Insights.ClinicalMatching.GeoJsonPropertiesSu } public partial class ClinicalCodedElement { - public ClinicalCodedElement(string system, string code) { } - public string Code { get { throw null; } set { } } - public string Name { get { throw null; } set { } } - public string System { get { throw null; } set { } } - public string Value { get { throw null; } set { } } + internal ClinicalCodedElement() { } + public string Code { get { throw null; } } + public string Name { get { throw null; } } + public string System { get { throw null; } } + public string Value { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct ClinicalDocumentType : System.IEquatable @@ -60,11 +38,11 @@ public ClinicalCodedElement(string system, string code) { } public static Azure.Health.Insights.ClinicalMatching.ClinicalDocumentType Consultation { get { throw null; } } public static Azure.Health.Insights.ClinicalMatching.ClinicalDocumentType DischargeSummary { get { throw null; } } public static Azure.Health.Insights.ClinicalMatching.ClinicalDocumentType HistoryAndPhysical { get { throw null; } } - public static Azure.Health.Insights.ClinicalMatching.ClinicalDocumentType Imaging { get { throw null; } } public static Azure.Health.Insights.ClinicalMatching.ClinicalDocumentType Laboratory { get { throw null; } } - public static Azure.Health.Insights.ClinicalMatching.ClinicalDocumentType Pathology { get { throw null; } } + public static Azure.Health.Insights.ClinicalMatching.ClinicalDocumentType PathologyReport { get { throw null; } } public static Azure.Health.Insights.ClinicalMatching.ClinicalDocumentType Procedure { get { throw null; } } public static Azure.Health.Insights.ClinicalMatching.ClinicalDocumentType Progress { get { throw null; } } + public static Azure.Health.Insights.ClinicalMatching.ClinicalDocumentType RadiologyReport { get { throw null; } } public bool Equals(Azure.Health.Insights.ClinicalMatching.ClinicalDocumentType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } @@ -82,16 +60,16 @@ public ClinicalMatchingClient(System.Uri endpoint, Azure.AzureKeyCredential cred public ClinicalMatchingClient(System.Uri endpoint, Azure.AzureKeyCredential credential, Azure.Health.Insights.ClinicalMatching.ClinicalMatchingClientOptions options) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } public virtual Azure.Operation MatchTrials(Azure.WaitUntil waitUntil, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Operation MatchTrials(Azure.WaitUntil waitUntil, Azure.Health.Insights.ClinicalMatching.TrialMatcherData trialMatcherData, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Operation MatchTrials(Azure.WaitUntil waitUntil, Azure.Health.Insights.ClinicalMatching.TrialMatcherData trialMatcherData, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> MatchTrialsAsync(Azure.WaitUntil waitUntil, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task> MatchTrialsAsync(Azure.WaitUntil waitUntil, Azure.Health.Insights.ClinicalMatching.TrialMatcherData trialMatcherData, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> MatchTrialsAsync(Azure.WaitUntil waitUntil, Azure.Health.Insights.ClinicalMatching.TrialMatcherData trialMatcherData, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class ClinicalMatchingClientOptions : Azure.Core.ClientOptions { - public ClinicalMatchingClientOptions(Azure.Health.Insights.ClinicalMatching.ClinicalMatchingClientOptions.ServiceVersion version = Azure.Health.Insights.ClinicalMatching.ClinicalMatchingClientOptions.ServiceVersion.V2023_03_01_Preview) { } + public ClinicalMatchingClientOptions(Azure.Health.Insights.ClinicalMatching.ClinicalMatchingClientOptions.ServiceVersion version = Azure.Health.Insights.ClinicalMatching.ClinicalMatchingClientOptions.ServiceVersion.V2023_09_01_Preview) { } public enum ServiceVersion { - V2023_03_01_Preview = 1, + V2023_09_01_Preview = 1, } } public partial class ClinicalNoteEvidence @@ -102,49 +80,16 @@ internal ClinicalNoteEvidence() { } public int Offset { get { throw null; } } public string Text { get { throw null; } } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ClinicalTrialAcceptedSex : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public ClinicalTrialAcceptedSex(string value) { throw null; } - public static Azure.Health.Insights.ClinicalMatching.ClinicalTrialAcceptedSex All { get { throw null; } } - public static Azure.Health.Insights.ClinicalMatching.ClinicalTrialAcceptedSex Female { get { throw null; } } - public static Azure.Health.Insights.ClinicalMatching.ClinicalTrialAcceptedSex Male { get { throw null; } } - public bool Equals(Azure.Health.Insights.ClinicalMatching.ClinicalTrialAcceptedSex 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.ClinicalMatching.ClinicalTrialAcceptedSex left, Azure.Health.Insights.ClinicalMatching.ClinicalTrialAcceptedSex right) { throw null; } - public static implicit operator Azure.Health.Insights.ClinicalMatching.ClinicalTrialAcceptedSex (string value) { throw null; } - public static bool operator !=(Azure.Health.Insights.ClinicalMatching.ClinicalTrialAcceptedSex left, Azure.Health.Insights.ClinicalMatching.ClinicalTrialAcceptedSex right) { throw null; } - public override string ToString() { throw null; } - } - public partial class ClinicalTrialDemographics - { - public ClinicalTrialDemographics() { } - public Azure.Health.Insights.ClinicalMatching.AcceptedAgeRange AcceptedAgeRange { get { throw null; } set { } } - public Azure.Health.Insights.ClinicalMatching.ClinicalTrialAcceptedSex? AcceptedSex { get { throw null; } set { } } - } - public partial class ClinicalTrialDetails - { - public ClinicalTrialDetails(string id, Azure.Health.Insights.ClinicalMatching.ClinicalTrialMetadata metadata) { } - public Azure.Health.Insights.ClinicalMatching.ClinicalTrialDemographics Demographics { get { throw null; } set { } } - public string EligibilityCriteriaText { get { throw null; } set { } } - public string Id { get { throw null; } } - public Azure.Health.Insights.ClinicalMatching.ClinicalTrialMetadata Metadata { get { throw null; } } - } public partial class ClinicalTrialMetadata { - public ClinicalTrialMetadata(System.Collections.Generic.IEnumerable conditions) { } - public System.Collections.Generic.IList Conditions { get { throw null; } } - public System.Collections.Generic.IList Contacts { get { throw null; } } - public System.Collections.Generic.IList Facilities { get { throw null; } } - public System.Collections.Generic.IList Phases { get { throw null; } } - public Azure.Health.Insights.ClinicalMatching.ClinicalTrialRecruitmentStatus? RecruitmentStatus { get { throw null; } set { } } - public System.Collections.Generic.IList Sponsors { get { throw null; } } - public Azure.Health.Insights.ClinicalMatching.ClinicalTrialStudyType? StudyType { get { throw null; } set { } } + internal ClinicalTrialMetadata() { } + public System.Collections.Generic.IReadOnlyList Conditions { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Contacts { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Facilities { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Phases { get { throw null; } } + public Azure.Health.Insights.ClinicalMatching.ClinicalTrialRecruitmentStatus? RecruitmentStatus { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Sponsors { get { throw null; } } + public Azure.Health.Insights.ClinicalMatching.ClinicalTrialStudyType? StudyType { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct ClinicalTrialPhase : System.IEquatable @@ -231,16 +176,16 @@ public ClinicalTrialRegistryFilter() { } } public partial class ClinicalTrialResearchFacility { - public ClinicalTrialResearchFacility(string name, string countryOrRegion) { } - public string City { get { throw null; } set { } } - public string CountryOrRegion { get { throw null; } set { } } - public string Name { get { throw null; } set { } } - public string State { get { throw null; } set { } } + internal ClinicalTrialResearchFacility() { } + public string City { get { throw null; } } + public string CountryOrRegion { get { throw null; } } + public string Name { get { throw null; } } + public string State { get { throw null; } } } public partial class ClinicalTrials { public ClinicalTrials() { } - public System.Collections.Generic.IList CustomTrials { get { throw null; } } + public System.Collections.Generic.IList CustomTrials { get { throw null; } } public System.Collections.Generic.IList RegistryFilters { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] @@ -281,12 +226,102 @@ public ClinicalTrials() { } public static bool operator !=(Azure.Health.Insights.ClinicalMatching.ClinicalTrialStudyType left, Azure.Health.Insights.ClinicalMatching.ClinicalTrialStudyType right) { throw null; } public override string ToString() { throw null; } } - public partial class ContactDetails + public partial class CodeableConcept + { + public CodeableConcept() { } + public System.Collections.Generic.IList Coding { get { throw null; } } + public string Id { get { throw null; } set { } } + public string Text { get { throw null; } set { } } + } + public partial class Coding + { + public Coding() { } + public string Code { get { throw null; } set { } } + public string Display { get { throw null; } set { } } + public System.Collections.Generic.IList Extension { get { throw null; } } + public string Id { get { throw null; } set { } } + public string System { get { throw null; } set { } } + public string Version { get { throw null; } set { } } + } + public partial class ContactDetail { - public ContactDetails() { } - public string Email { get { throw null; } set { } } + public ContactDetail() { } + public System.Collections.Generic.IList Extension { get { throw null; } } + public string Id { get { throw null; } set { } } public string Name { get { throw null; } set { } } - public string Phone { get { throw null; } set { } } + public System.Collections.Generic.IList Telecom { get { throw null; } } + } + public partial class ContactDetails + { + internal ContactDetails() { } + public string Email { get { throw null; } } + public string Name { get { throw null; } } + public string Phone { get { throw null; } } + } + public partial class ContactPoint + { + public ContactPoint() { } + public Azure.Health.Insights.ClinicalMatching.Period Period { get { throw null; } set { } } + public int? Rank { get { throw null; } set { } } + public Azure.Health.Insights.ClinicalMatching.ContactPointSystem? System { get { throw null; } set { } } + public Azure.Health.Insights.ClinicalMatching.ContactPointUse? Use { get { throw null; } set { } } + public string Value { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ContactPointSystem : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ContactPointSystem(string value) { throw null; } + public static Azure.Health.Insights.ClinicalMatching.ContactPointSystem Email { get { throw null; } } + public static Azure.Health.Insights.ClinicalMatching.ContactPointSystem Fax { get { throw null; } } + public static Azure.Health.Insights.ClinicalMatching.ContactPointSystem Other { get { throw null; } } + public static Azure.Health.Insights.ClinicalMatching.ContactPointSystem Pager { get { throw null; } } + public static Azure.Health.Insights.ClinicalMatching.ContactPointSystem Phone { get { throw null; } } + public static Azure.Health.Insights.ClinicalMatching.ContactPointSystem Sms { get { throw null; } } + public static Azure.Health.Insights.ClinicalMatching.ContactPointSystem Url { get { throw null; } } + public bool Equals(Azure.Health.Insights.ClinicalMatching.ContactPointSystem 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.ClinicalMatching.ContactPointSystem left, Azure.Health.Insights.ClinicalMatching.ContactPointSystem right) { throw null; } + public static implicit operator Azure.Health.Insights.ClinicalMatching.ContactPointSystem (string value) { throw null; } + public static bool operator !=(Azure.Health.Insights.ClinicalMatching.ContactPointSystem left, Azure.Health.Insights.ClinicalMatching.ContactPointSystem right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ContactPointUse : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ContactPointUse(string value) { throw null; } + public static Azure.Health.Insights.ClinicalMatching.ContactPointUse Home { get { throw null; } } + public static Azure.Health.Insights.ClinicalMatching.ContactPointUse Mobile { get { throw null; } } + public static Azure.Health.Insights.ClinicalMatching.ContactPointUse Old { get { throw null; } } + public static Azure.Health.Insights.ClinicalMatching.ContactPointUse Temp { get { throw null; } } + public static Azure.Health.Insights.ClinicalMatching.ContactPointUse Work { get { throw null; } } + public bool Equals(Azure.Health.Insights.ClinicalMatching.ContactPointUse 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.ClinicalMatching.ContactPointUse left, Azure.Health.Insights.ClinicalMatching.ContactPointUse right) { throw null; } + public static implicit operator Azure.Health.Insights.ClinicalMatching.ContactPointUse (string value) { throw null; } + public static bool operator !=(Azure.Health.Insights.ClinicalMatching.ContactPointUse left, Azure.Health.Insights.ClinicalMatching.ContactPointUse right) { throw null; } + public override string ToString() { throw null; } + } + public partial class DocumentAdministrativeMetadata + { + public DocumentAdministrativeMetadata() { } + public string EncounterId { get { throw null; } set { } } + public System.Collections.Generic.IList OrderedProcedures { get { throw null; } } + } + public partial class DocumentAuthor + { + public DocumentAuthor() { } + public string FullName { get { throw null; } set { } } + public string Id { get { throw null; } set { } } } public partial class DocumentContent { @@ -332,6 +367,48 @@ public DocumentContent(Azure.Health.Insights.ClinicalMatching.DocumentContentSou public static bool operator !=(Azure.Health.Insights.ClinicalMatching.DocumentType left, Azure.Health.Insights.ClinicalMatching.DocumentType right) { throw null; } public override string ToString() { throw null; } } + public abstract partial class DomainResource + { + protected DomainResource() { } + public System.Collections.Generic.IReadOnlyDictionary AdditionalProperties { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Contained { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Extension { get { throw null; } } + public string Id { get { throw null; } } + public string ImplicitRules { get { throw null; } } + public string Language { get { throw null; } } + public Azure.Health.Insights.ClinicalMatching.Meta Meta { get { throw null; } } + public System.Collections.Generic.IReadOnlyList ModifierExtension { get { throw null; } } + public Azure.Health.Insights.ClinicalMatching.Narrative Text { get { throw null; } } + } + public partial class Encounter + { + public Encounter(string id) { } + public Azure.Health.Insights.ClinicalMatching.EncounterClass? Class { get { throw null; } set { } } + public string Id { get { throw null; } } + public Azure.Health.Insights.ClinicalMatching.TimePeriod Period { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct EncounterClass : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public EncounterClass(string value) { throw null; } + public static Azure.Health.Insights.ClinicalMatching.EncounterClass Ambulatory { get { throw null; } } + public static Azure.Health.Insights.ClinicalMatching.EncounterClass Emergency { get { throw null; } } + public static Azure.Health.Insights.ClinicalMatching.EncounterClass HealthHome { get { throw null; } } + public static Azure.Health.Insights.ClinicalMatching.EncounterClass InPatient { get { throw null; } } + public static Azure.Health.Insights.ClinicalMatching.EncounterClass Observation { get { throw null; } } + public static Azure.Health.Insights.ClinicalMatching.EncounterClass Virtual { get { throw null; } } + public bool Equals(Azure.Health.Insights.ClinicalMatching.EncounterClass 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.ClinicalMatching.EncounterClass left, Azure.Health.Insights.ClinicalMatching.EncounterClass right) { throw null; } + public static implicit operator Azure.Health.Insights.ClinicalMatching.EncounterClass (string value) { throw null; } + public static bool operator !=(Azure.Health.Insights.ClinicalMatching.EncounterClass left, Azure.Health.Insights.ClinicalMatching.EncounterClass right) { throw null; } + public override string ToString() { throw null; } + } public partial class ExtendedClinicalCodedElement { internal ExtendedClinicalCodedElement() { } @@ -342,6 +419,24 @@ internal ExtendedClinicalCodedElement() { } public string System { get { throw null; } } public string Value { get { throw null; } } } + public partial class Extension + { + public Extension(string url) { } + public string Id { get { throw null; } set { } } + public string Url { get { throw null; } } + public bool? ValueBoolean { get { throw null; } set { } } + public Azure.Health.Insights.ClinicalMatching.CodeableConcept ValueCodeableConcept { get { throw null; } set { } } + public string ValueDateTime { get { throw null; } set { } } + public int? ValueInteger { get { throw null; } set { } } + public Azure.Health.Insights.ClinicalMatching.Period ValuePeriod { get { throw null; } set { } } + public Azure.Health.Insights.ClinicalMatching.Quantity ValueQuantity { get { throw null; } set { } } + public Azure.Health.Insights.ClinicalMatching.Range ValueRange { get { throw null; } set { } } + public Azure.Health.Insights.ClinicalMatching.Ratio ValueRatio { get { throw null; } set { } } + public Azure.Health.Insights.ClinicalMatching.Reference ValueReference { get { throw null; } set { } } + public Azure.Health.Insights.ClinicalMatching.SampledData ValueSampledData { get { throw null; } set { } } + public string ValueString { get { throw null; } set { } } + public System.TimeSpan? ValueTime { get { throw null; } set { } } + } public partial class GeographicArea { public GeographicArea(Azure.Health.Insights.ClinicalMatching.GeoJsonType type, Azure.Health.Insights.ClinicalMatching.AreaGeometry geometry, Azure.Health.Insights.ClinicalMatching.AreaProperties properties) { } @@ -409,28 +504,71 @@ public GeographicLocation(string countryOrRegion) { } } public static partial class HealthInsightsClinicalMatchingModelFactory { + public static Azure.Health.Insights.ClinicalMatching.ClinicalCodedElement ClinicalCodedElement(string system = null, string code = null, string name = null, string value = null) { throw null; } public static Azure.Health.Insights.ClinicalMatching.ClinicalNoteEvidence ClinicalNoteEvidence(string id = null, string text = null, int offset = 0, int length = 0) { throw null; } + public static Azure.Health.Insights.ClinicalMatching.ClinicalTrialMetadata ClinicalTrialMetadata(System.Collections.Generic.IEnumerable phases = null, Azure.Health.Insights.ClinicalMatching.ClinicalTrialStudyType? studyType = default(Azure.Health.Insights.ClinicalMatching.ClinicalTrialStudyType?), Azure.Health.Insights.ClinicalMatching.ClinicalTrialRecruitmentStatus? recruitmentStatus = default(Azure.Health.Insights.ClinicalMatching.ClinicalTrialRecruitmentStatus?), System.Collections.Generic.IEnumerable conditions = null, System.Collections.Generic.IEnumerable sponsors = null, System.Collections.Generic.IEnumerable contacts = null, System.Collections.Generic.IEnumerable facilities = null) { throw null; } + public static Azure.Health.Insights.ClinicalMatching.ClinicalTrialResearchFacility ClinicalTrialResearchFacility(string name = null, string city = null, string state = null, string countryOrRegion = null) { throw null; } + public static Azure.Health.Insights.ClinicalMatching.ContactDetails ContactDetails(string name = null, string email = null, string phone = null) { throw null; } public static Azure.Health.Insights.ClinicalMatching.ExtendedClinicalCodedElement ExtendedClinicalCodedElement(string system = null, string code = null, string name = null, string value = null, string semanticType = null, string category = null) { throw null; } - public static Azure.Health.Insights.ClinicalMatching.TrialMatcherInference TrialMatcherInference(Azure.Health.Insights.ClinicalMatching.TrialMatcherInferenceType type = default(Azure.Health.Insights.ClinicalMatching.TrialMatcherInferenceType), string value = null, string description = null, float? confidenceScore = default(float?), System.Collections.Generic.IEnumerable evidence = null, string id = null, Azure.Health.Insights.ClinicalMatching.ClinicalTrialSource? source = default(Azure.Health.Insights.ClinicalMatching.ClinicalTrialSource?), Azure.Health.Insights.ClinicalMatching.ClinicalTrialMetadata metadata = null) { throw null; } + public static Azure.Health.Insights.ClinicalMatching.TrialMatcherInference TrialMatcherInference(string type = null, string value = null, string description = null, float? confidenceScore = default(float?), System.Collections.Generic.IEnumerable evidence = null, string clinicalTrialId = null, Azure.Health.Insights.ClinicalMatching.ClinicalTrialSource? source = default(Azure.Health.Insights.ClinicalMatching.ClinicalTrialSource?), Azure.Health.Insights.ClinicalMatching.ClinicalTrialMetadata metadata = null) { throw null; } public static Azure.Health.Insights.ClinicalMatching.TrialMatcherInferenceEvidence TrialMatcherInferenceEvidence(string eligibilityCriteriaEvidence = null, Azure.Health.Insights.ClinicalMatching.ClinicalNoteEvidence patientDataEvidence = null, Azure.Health.Insights.ClinicalMatching.ClinicalCodedElement patientInfoEvidence = null, float? importance = default(float?)) { throw null; } - public static Azure.Health.Insights.ClinicalMatching.TrialMatcherPatientResult TrialMatcherPatientResult(string id = null, System.Collections.Generic.IEnumerable inferences = null, System.Collections.Generic.IEnumerable neededClinicalInfo = null) { throw null; } - public static Azure.Health.Insights.ClinicalMatching.TrialMatcherResults TrialMatcherResults(System.Collections.Generic.IEnumerable patients = null, string modelVersion = null, System.DateTimeOffset? knowledgeGraphLastUpdateDate = default(System.DateTimeOffset?)) { throw null; } + public static Azure.Health.Insights.ClinicalMatching.TrialMatcherInferenceResult TrialMatcherInferenceResult(System.Collections.Generic.IEnumerable patientResults = null, string modelVersion = null, System.DateTimeOffset? knowledgeGraphLastUpdateDate = default(System.DateTimeOffset?)) { throw null; } + public static Azure.Health.Insights.ClinicalMatching.TrialMatcherPatientResult TrialMatcherPatientResult(string patientId = null, System.Collections.Generic.IEnumerable inferences = null, System.Collections.Generic.IEnumerable neededClinicalInfo = null) { throw null; } + } + public partial class Identifier + { + public Identifier() { } + public Azure.Health.Insights.ClinicalMatching.Reference Assigner { get { throw null; } set { } } + public string Id { get { throw null; } set { } } + public Azure.Health.Insights.ClinicalMatching.Period Period { get { throw null; } set { } } + public string System { get { throw null; } set { } } + public Azure.Health.Insights.ClinicalMatching.CodeableConcept Type { get { throw null; } set { } } + public string Use { get { throw null; } set { } } + public string Value { get { throw null; } set { } } + } + public partial class Meta + { + public Meta() { } + public string LastUpdated { get { throw null; } set { } } + public System.Collections.Generic.IList Profile { get { throw null; } } + public System.Collections.Generic.IList Security { get { throw null; } } + public string Source { get { throw null; } set { } } + public System.Collections.Generic.IList Tag { get { throw null; } } + public string VersionId { get { throw null; } set { } } + } + public partial class Narrative + { + public Narrative(string status, string div) { } + public string Div { get { throw null; } } + public System.Collections.Generic.IList Extension { get { throw null; } } + public string Id { get { throw null; } set { } } + public string Status { get { throw null; } } + } + public partial class OrderedProcedure + { + public OrderedProcedure() { } + public Azure.Health.Insights.ClinicalMatching.CodeableConcept Code { get { throw null; } set { } } + public string Description { get { throw null; } set { } } + public System.Collections.Generic.IList Extension { get { throw null; } } } public partial class PatientDocument { public PatientDocument(Azure.Health.Insights.ClinicalMatching.DocumentType type, string id, Azure.Health.Insights.ClinicalMatching.DocumentContent content) { } + public Azure.Health.Insights.ClinicalMatching.DocumentAdministrativeMetadata AdministrativeMetadata { get { throw null; } set { } } + public System.Collections.Generic.IList Authors { get { throw null; } } public Azure.Health.Insights.ClinicalMatching.ClinicalDocumentType? ClinicalType { get { throw null; } set { } } public Azure.Health.Insights.ClinicalMatching.DocumentContent Content { get { throw null; } } public System.DateTimeOffset? CreatedDateTime { get { throw null; } set { } } public string Id { get { throw null; } } public string Language { get { throw null; } set { } } + public Azure.Health.Insights.ClinicalMatching.SpecialtyType? SpecialtyType { get { throw null; } set { } } public Azure.Health.Insights.ClinicalMatching.DocumentType Type { get { throw null; } } } public partial class PatientInfo { public PatientInfo() { } public System.DateTimeOffset? BirthDate { get { throw null; } set { } } - public System.Collections.Generic.IList ClinicalInfo { get { throw null; } } + public System.Collections.Generic.IList ClinicalInfo { get { throw null; } } public Azure.Health.Insights.ClinicalMatching.PatientInfoSex? Sex { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] @@ -455,9 +593,163 @@ public PatientInfo() { } public partial class PatientRecord { public PatientRecord(string id) { } - public System.Collections.Generic.IList Data { get { throw null; } } + public System.Collections.Generic.IList Encounters { get { throw null; } } public string Id { get { throw null; } } public Azure.Health.Insights.ClinicalMatching.PatientInfo Info { get { throw null; } set { } } + public System.Collections.Generic.IList PatientDocuments { get { throw null; } } + } + public partial class Period + { + public Period() { } + public string End { get { throw null; } set { } } + public string Id { get { throw null; } set { } } + public string Start { get { throw null; } set { } } + } + public partial class Quantity + { + public Quantity() { } + public string Code { get { throw null; } set { } } + public string Comparator { get { throw null; } set { } } + public string Id { get { throw null; } set { } } + public string System { get { throw null; } set { } } + public string Unit { get { throw null; } set { } } + public decimal? Value { get { throw null; } set { } } + } + public partial class Range + { + public Range() { } + public Azure.Health.Insights.ClinicalMatching.Quantity High { get { throw null; } set { } } + public string Id { get { throw null; } set { } } + public Azure.Health.Insights.ClinicalMatching.Quantity Low { get { throw null; } set { } } + } + public partial class Ratio + { + public Ratio() { } + public Azure.Health.Insights.ClinicalMatching.Quantity Denominator { get { throw null; } set { } } + public string Id { get { throw null; } set { } } + public Azure.Health.Insights.ClinicalMatching.Quantity Numerator { get { throw null; } set { } } + } + public partial class Reference + { + public Reference() { } + public string Display { get { throw null; } set { } } + public string Id { get { throw null; } set { } } + public Azure.Health.Insights.ClinicalMatching.Identifier Identifier { get { throw null; } set { } } + public string ReferenceProperty { get { throw null; } set { } } + public string Type { get { throw null; } set { } } + } + public partial class ResearchStudy : Azure.Health.Insights.ClinicalMatching.DomainResource + { + public ResearchStudy(Azure.Health.Insights.ClinicalMatching.ResearchStudyStatusCodeType status) { } + public System.Collections.Generic.IList Arm { get { throw null; } } + public System.Collections.Generic.IList Category { get { throw null; } } + public System.Collections.Generic.IList Condition { get { throw null; } } + public System.Collections.Generic.IList Contact { get { throw null; } } + public string Description { get { throw null; } set { } } + public System.Collections.Generic.IList Enrollment { get { throw null; } } + public System.Collections.Generic.IList Focus { get { throw null; } } + public System.Collections.Generic.IList Identifier { get { throw null; } } + public System.Collections.Generic.IList Keyword { get { throw null; } } + public System.Collections.Generic.IList Location { get { throw null; } } + public System.Collections.Generic.IList Note { get { throw null; } } + public System.Collections.Generic.IList Objective { get { throw null; } } + public System.Collections.Generic.IList PartOf { get { throw null; } } + public Azure.Health.Insights.ClinicalMatching.Period Period { get { throw null; } set { } } + public Azure.Health.Insights.ClinicalMatching.CodeableConcept Phase { get { throw null; } set { } } + public Azure.Health.Insights.ClinicalMatching.CodeableConcept PrimaryPurposeType { get { throw null; } set { } } + public Azure.Health.Insights.ClinicalMatching.Reference PrincipalInvestigator { get { throw null; } set { } } + public System.Collections.Generic.IList Protocol { get { throw null; } } + public Azure.Health.Insights.ClinicalMatching.CodeableConcept ReasonStopped { get { throw null; } set { } } + public System.Collections.Generic.IList Site { get { throw null; } } + public Azure.Health.Insights.ClinicalMatching.Reference Sponsor { get { throw null; } set { } } + public Azure.Health.Insights.ClinicalMatching.ResearchStudyStatusCodeType Status { get { throw null; } } + public string Title { get { throw null; } set { } } + } + public partial class ResearchStudyArm + { + public ResearchStudyArm(string name) { } + public string Description { get { throw null; } set { } } + public string Name { get { throw null; } } + public Azure.Health.Insights.ClinicalMatching.CodeableConcept Type { get { throw null; } set { } } + } + public partial class ResearchStudyObjective + { + public ResearchStudyObjective(string name) { } + public string Name { get { throw null; } } + public Azure.Health.Insights.ClinicalMatching.CodeableConcept Type { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ResearchStudyStatusCodeType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ResearchStudyStatusCodeType(string value) { throw null; } + public static Azure.Health.Insights.ClinicalMatching.ResearchStudyStatusCodeType Active { get { throw null; } } + public static Azure.Health.Insights.ClinicalMatching.ResearchStudyStatusCodeType AdministrativelyCompleted { get { throw null; } } + public static Azure.Health.Insights.ClinicalMatching.ResearchStudyStatusCodeType Approved { get { throw null; } } + public static Azure.Health.Insights.ClinicalMatching.ResearchStudyStatusCodeType ClosedToAccrual { get { throw null; } } + public static Azure.Health.Insights.ClinicalMatching.ResearchStudyStatusCodeType ClosedToAccrualAndIntervention { get { throw null; } } + public static Azure.Health.Insights.ClinicalMatching.ResearchStudyStatusCodeType Completed { get { throw null; } } + public static Azure.Health.Insights.ClinicalMatching.ResearchStudyStatusCodeType Disapproved { get { throw null; } } + public static Azure.Health.Insights.ClinicalMatching.ResearchStudyStatusCodeType InReview { get { throw null; } } + public static Azure.Health.Insights.ClinicalMatching.ResearchStudyStatusCodeType TemporarilyClosedToAccrual { get { throw null; } } + public static Azure.Health.Insights.ClinicalMatching.ResearchStudyStatusCodeType TemporarilyClosedToAccrualAndIntervention { get { throw null; } } + public static Azure.Health.Insights.ClinicalMatching.ResearchStudyStatusCodeType Withdrawn { get { throw null; } } + public bool Equals(Azure.Health.Insights.ClinicalMatching.ResearchStudyStatusCodeType 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.ClinicalMatching.ResearchStudyStatusCodeType left, Azure.Health.Insights.ClinicalMatching.ResearchStudyStatusCodeType right) { throw null; } + public static implicit operator Azure.Health.Insights.ClinicalMatching.ResearchStudyStatusCodeType (string value) { throw null; } + public static bool operator !=(Azure.Health.Insights.ClinicalMatching.ResearchStudyStatusCodeType left, Azure.Health.Insights.ClinicalMatching.ResearchStudyStatusCodeType right) { throw null; } + public override string ToString() { throw null; } + } + public partial class Resource + { + public Resource(string resourceType) { } + public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } + public string Id { get { throw null; } set { } } + public string ImplicitRules { get { throw null; } set { } } + public string Language { get { throw null; } set { } } + public Azure.Health.Insights.ClinicalMatching.Meta Meta { get { throw null; } set { } } + public string ResourceType { get { throw null; } } + } + public partial class SampledData + { + public SampledData(Azure.Health.Insights.ClinicalMatching.Quantity origin, decimal period, int dimensions) { } + public string Data { get { throw null; } set { } } + public int Dimensions { get { throw null; } } + public decimal? Factor { get { throw null; } set { } } + public string Id { get { throw null; } set { } } + public decimal? LowerLimit { get { throw null; } set { } } + public Azure.Health.Insights.ClinicalMatching.Quantity Origin { get { throw null; } } + public decimal Period { get { throw null; } } + public decimal? UpperLimit { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct SpecialtyType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public SpecialtyType(string value) { throw null; } + public static Azure.Health.Insights.ClinicalMatching.SpecialtyType Pathology { get { throw null; } } + public static Azure.Health.Insights.ClinicalMatching.SpecialtyType Radiology { get { throw null; } } + public bool Equals(Azure.Health.Insights.ClinicalMatching.SpecialtyType 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.ClinicalMatching.SpecialtyType left, Azure.Health.Insights.ClinicalMatching.SpecialtyType right) { throw null; } + public static implicit operator Azure.Health.Insights.ClinicalMatching.SpecialtyType (string value) { throw null; } + public static bool operator !=(Azure.Health.Insights.ClinicalMatching.SpecialtyType left, Azure.Health.Insights.ClinicalMatching.SpecialtyType right) { throw null; } + public override string ToString() { throw null; } + } + public partial class TimePeriod + { + public TimePeriod() { } + public System.DateTimeOffset? End { get { throw null; } set { } } + public System.DateTimeOffset? Start { get { throw null; } set { } } } public partial class TrialMatcherData { @@ -468,13 +760,13 @@ public TrialMatcherData(System.Collections.Generic.IEnumerable Evidence { get { throw null; } } - public string Id { get { throw null; } } public Azure.Health.Insights.ClinicalMatching.ClinicalTrialMetadata Metadata { get { throw null; } } public Azure.Health.Insights.ClinicalMatching.ClinicalTrialSource? Source { get { throw null; } } - public Azure.Health.Insights.ClinicalMatching.TrialMatcherInferenceType Type { get { throw null; } } + public string Type { get { throw null; } } public string Value { get { throw null; } } } public partial class TrialMatcherInferenceEvidence @@ -485,22 +777,12 @@ internal TrialMatcherInferenceEvidence() { } public Azure.Health.Insights.ClinicalMatching.ClinicalNoteEvidence PatientDataEvidence { get { throw null; } } public Azure.Health.Insights.ClinicalMatching.ClinicalCodedElement PatientInfoEvidence { get { throw null; } } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct TrialMatcherInferenceType : System.IEquatable + public partial class TrialMatcherInferenceResult { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public TrialMatcherInferenceType(string value) { throw null; } - public static Azure.Health.Insights.ClinicalMatching.TrialMatcherInferenceType TrialEligibility { get { throw null; } } - public bool Equals(Azure.Health.Insights.ClinicalMatching.TrialMatcherInferenceType 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.ClinicalMatching.TrialMatcherInferenceType left, Azure.Health.Insights.ClinicalMatching.TrialMatcherInferenceType right) { throw null; } - public static implicit operator Azure.Health.Insights.ClinicalMatching.TrialMatcherInferenceType (string value) { throw null; } - public static bool operator !=(Azure.Health.Insights.ClinicalMatching.TrialMatcherInferenceType left, Azure.Health.Insights.ClinicalMatching.TrialMatcherInferenceType right) { throw null; } - public override string ToString() { throw null; } + internal TrialMatcherInferenceResult() { } + public System.DateTimeOffset? KnowledgeGraphLastUpdateDate { get { throw null; } } + public string ModelVersion { get { throw null; } } + public System.Collections.Generic.IReadOnlyList PatientResults { get { throw null; } } } public partial class TrialMatcherModelConfiguration { @@ -512,16 +794,9 @@ public TrialMatcherModelConfiguration(Azure.Health.Insights.ClinicalMatching.Cli public partial class TrialMatcherPatientResult { internal TrialMatcherPatientResult() { } - public string Id { get { throw null; } } public System.Collections.Generic.IReadOnlyList Inferences { get { throw null; } } public System.Collections.Generic.IReadOnlyList NeededClinicalInfo { get { throw null; } } - } - public partial class TrialMatcherResults - { - internal TrialMatcherResults() { } - public System.DateTimeOffset? KnowledgeGraphLastUpdateDate { get { throw null; } } - public string ModelVersion { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Patients { get { throw null; } } + public string PatientId { get { throw null; } } } } namespace Microsoft.Extensions.Azure diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/AcceptedAge.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/AcceptedAge.cs deleted file mode 100644 index 59563a59f16cb..0000000000000 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/AcceptedAge.cs +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.Health.Insights.ClinicalMatching -{ - /// A person's age, given as a number (value) and a unit (e.g. years, months). - public partial class AcceptedAge - { - /// Initializes a new instance of . - /// Possible units for a person's age. - /// The number of years/months/days that represents the person's age. - public AcceptedAge(AgeUnit unit, float value) - { - Unit = unit; - Value = value; - } - - /// Possible units for a person's age. - public AgeUnit Unit { get; } - /// The number of years/months/days that represents the person's age. - public float Value { get; } - } -} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/AcceptedAgeRange.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/AcceptedAgeRange.cs deleted file mode 100644 index 131e68c363bbe..0000000000000 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/AcceptedAgeRange.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.Health.Insights.ClinicalMatching -{ - /// A definition of the range of ages accepted by a clinical trial. Contains a minimum age and/or a maximum age. - public partial class AcceptedAgeRange - { - /// Initializes a new instance of . - public AcceptedAgeRange() - { - } - - /// Initializes a new instance of . - /// A person's age, given as a number (value) and a unit (e.g. years, months). - /// A person's age, given as a number (value) and a unit (e.g. years, months). - internal AcceptedAgeRange(AcceptedAge minimumAge, AcceptedAge maximumAge) - { - MinimumAge = minimumAge; - MaximumAge = maximumAge; - } - - /// A person's age, given as a number (value) and a unit (e.g. years, months). - public AcceptedAge MinimumAge { get; set; } - /// A person's age, given as a number (value) and a unit (e.g. years, months). - public AcceptedAge MaximumAge { get; set; } - } -} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/AgeUnit.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/AgeUnit.cs deleted file mode 100644 index 0fe84b951dce6..0000000000000 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/AgeUnit.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.Health.Insights.ClinicalMatching -{ - /// Possible units for a person's age. - public readonly partial struct AgeUnit : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public AgeUnit(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string YearsValue = "years"; - private const string MonthsValue = "months"; - private const string DaysValue = "days"; - - /// years. - public static AgeUnit Years { get; } = new AgeUnit(YearsValue); - /// months. - public static AgeUnit Months { get; } = new AgeUnit(MonthsValue); - /// days. - public static AgeUnit Days { get; } = new AgeUnit(DaysValue); - /// Determines if two values are the same. - public static bool operator ==(AgeUnit left, AgeUnit right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(AgeUnit left, AgeUnit right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator AgeUnit(string value) => new AgeUnit(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is AgeUnit other && Equals(other); - /// - public bool Equals(AgeUnit other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Annotation.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Annotation.Serialization.cs new file mode 100644 index 0000000000000..fda4a3abfe21c --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Annotation.Serialization.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.ClinicalMatching +{ + public partial class Annotation : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(AuthorString)) + { + writer.WritePropertyName("authorString"u8); + writer.WriteStringValue(AuthorString); + } + if (Optional.IsDefined(Time)) + { + writer.WritePropertyName("time"u8); + writer.WriteStringValue(Time); + } + writer.WritePropertyName("text"u8); + writer.WriteStringValue(Text); + writer.WriteEndObject(); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Annotation.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Annotation.cs new file mode 100644 index 0000000000000..9e9e73937b670 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Annotation.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.ClinicalMatching +{ + /// + /// A text note which also contains information about who made the statement and when + /// Based on [FHIR Annotation](https://www.hl7.org/fhir/R4/datatypes.html#Annotation) + /// + public partial class Annotation + { + /// Initializes a new instance of . + /// The annotation - text content (as markdown). + /// is null. + public Annotation(string text) + { + Argument.AssertNotNull(text, nameof(text)); + + Extension = new ChangeTrackingList(); + Text = text; + } + + /// Initializes a new instance of . + /// Unique id for inter-element referencing. + /// Additional Content defined by implementations. + /// Individual responsible for the annotation. + /// When the annotation was made. + /// The annotation - text content (as markdown). + internal Annotation(string id, IList extension, string authorString, string time, string text) + { + Id = id; + Extension = extension; + AuthorString = authorString; + Time = time; + Text = text; + } + + /// Unique id for inter-element referencing. + public string Id { get; set; } + /// Additional Content defined by implementations. + public IList Extension { get; } + /// Individual responsible for the annotation. + public string AuthorString { get; set; } + /// When the annotation was made. + public string Time { get; set; } + /// The annotation - text content (as markdown). + public string Text { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalCodedElement.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalCodedElement.Serialization.cs index 28ba3b66d668b..dbf70a365e085 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalCodedElement.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalCodedElement.Serialization.cs @@ -11,28 +11,8 @@ namespace Azure.Health.Insights.ClinicalMatching { - public partial class ClinicalCodedElement : IUtf8JsonSerializable + public partial class ClinicalCodedElement { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - writer.WritePropertyName("system"u8); - writer.WriteStringValue(System); - writer.WritePropertyName("code"u8); - writer.WriteStringValue(Code); - if (Optional.IsDefined(Name)) - { - writer.WritePropertyName("name"u8); - writer.WriteStringValue(Name); - } - if (Optional.IsDefined(Value)) - { - writer.WritePropertyName("value"u8); - writer.WriteStringValue(Value); - } - writer.WriteEndObject(); - } - internal static ClinicalCodedElement DeserializeClinicalCodedElement(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) @@ -76,13 +56,5 @@ internal static ClinicalCodedElement FromResponse(Response response) using var document = JsonDocument.Parse(response.Content); return DeserializeClinicalCodedElement(document.RootElement); } - - /// Convert into a Utf8JsonRequestContent. - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this); - return content; - } } } diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalCodedElement.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalCodedElement.cs index 7a199b87b13a2..d6a045f7d7892 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalCodedElement.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalCodedElement.cs @@ -17,7 +17,7 @@ public partial class ClinicalCodedElement /// The clinical coding system, e.g. ICD-10, SNOMED-CT, UMLS. /// The code within the given clinical coding system. /// or is null. - public ClinicalCodedElement(string system, string code) + internal ClinicalCodedElement(string system, string code) { Argument.AssertNotNull(system, nameof(system)); Argument.AssertNotNull(code, nameof(code)); @@ -40,12 +40,12 @@ internal ClinicalCodedElement(string system, string code, string name, string va } /// The clinical coding system, e.g. ICD-10, SNOMED-CT, UMLS. - public string System { get; set; } + public string System { get; } /// The code within the given clinical coding system. - public string Code { get; set; } + public string Code { get; } /// The name of this coded concept in the coding system. - public string Name { get; set; } + public string Name { get; } /// A value associated with the code within the given clinical coding system. - public string Value { get; set; } + public string Value { get; } } } diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalDocumentType.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalDocumentType.cs index 191b1d6a43171..dfc6ea273b9da 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalDocumentType.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalDocumentType.cs @@ -25,11 +25,11 @@ public ClinicalDocumentType(string value) private const string ConsultationValue = "consultation"; private const string DischargeSummaryValue = "dischargeSummary"; private const string HistoryAndPhysicalValue = "historyAndPhysical"; + private const string RadiologyReportValue = "radiologyReport"; private const string ProcedureValue = "procedure"; private const string ProgressValue = "progress"; - private const string ImagingValue = "imaging"; private const string LaboratoryValue = "laboratory"; - private const string PathologyValue = "pathology"; + private const string PathologyReportValue = "pathologyReport"; /// consultation. public static ClinicalDocumentType Consultation { get; } = new ClinicalDocumentType(ConsultationValue); @@ -37,16 +37,16 @@ public ClinicalDocumentType(string value) public static ClinicalDocumentType DischargeSummary { get; } = new ClinicalDocumentType(DischargeSummaryValue); /// historyAndPhysical. public static ClinicalDocumentType HistoryAndPhysical { get; } = new ClinicalDocumentType(HistoryAndPhysicalValue); + /// radiologyReport. + public static ClinicalDocumentType RadiologyReport { get; } = new ClinicalDocumentType(RadiologyReportValue); /// procedure. public static ClinicalDocumentType Procedure { get; } = new ClinicalDocumentType(ProcedureValue); /// progress. public static ClinicalDocumentType Progress { get; } = new ClinicalDocumentType(ProgressValue); - /// imaging. - public static ClinicalDocumentType Imaging { get; } = new ClinicalDocumentType(ImagingValue); /// laboratory. public static ClinicalDocumentType Laboratory { get; } = new ClinicalDocumentType(LaboratoryValue); - /// pathology. - public static ClinicalDocumentType Pathology { get; } = new ClinicalDocumentType(PathologyValue); + /// pathologyReport. + public static ClinicalDocumentType PathologyReport { get; } = new ClinicalDocumentType(PathologyReportValue); /// Determines if two values are the same. public static bool operator ==(ClinicalDocumentType left, ClinicalDocumentType right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalMatchingClient.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalMatchingClient.cs index db8a132ce7e33..74baa3e2ed11e 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalMatchingClient.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalMatchingClient.cs @@ -69,14 +69,14 @@ public ClinicalMatchingClient(Uri endpoint, AzureKeyCredential credential, Clini /// is null. /// Creates a Trial Matcher job with the given request body. /// - public virtual async Task> MatchTrialsAsync(WaitUntil waitUntil, TrialMatcherData trialMatcherData, CancellationToken cancellationToken = default) + public virtual async Task> MatchTrialsAsync(WaitUntil waitUntil, TrialMatcherData trialMatcherData, CancellationToken cancellationToken = default) { Argument.AssertNotNull(trialMatcherData, nameof(trialMatcherData)); RequestContext context = FromCancellationToken(cancellationToken); using RequestContent content = trialMatcherData.ToRequestContent(); Operation response = await MatchTrialsAsync(waitUntil, content, context).ConfigureAwait(false); - return ProtocolOperationHelpers.Convert(response, FetchTrialMatcherResultsFromTrialMatcherResult, ClientDiagnostics, "ClinicalMatchingClient.MatchTrials"); + return ProtocolOperationHelpers.Convert(response, FetchTrialMatcherInferenceResultFromTrialMatcherResult, ClientDiagnostics, "ClinicalMatchingClient.MatchTrials"); } /// Create Trial Matcher job. @@ -86,14 +86,14 @@ public virtual async Task> MatchTrialsAsync(WaitU /// is null. /// Creates a Trial Matcher job with the given request body. /// - public virtual Operation MatchTrials(WaitUntil waitUntil, TrialMatcherData trialMatcherData, CancellationToken cancellationToken = default) + public virtual Operation MatchTrials(WaitUntil waitUntil, TrialMatcherData trialMatcherData, CancellationToken cancellationToken = default) { Argument.AssertNotNull(trialMatcherData, nameof(trialMatcherData)); RequestContext context = FromCancellationToken(cancellationToken); using RequestContent content = trialMatcherData.ToRequestContent(); Operation response = MatchTrials(waitUntil, content, context); - return ProtocolOperationHelpers.Convert(response, FetchTrialMatcherResultsFromTrialMatcherResult, ClientDiagnostics, "ClinicalMatchingClient.MatchTrials"); + return ProtocolOperationHelpers.Convert(response, FetchTrialMatcherInferenceResultFromTrialMatcherResult, ClientDiagnostics, "ClinicalMatchingClient.MatchTrials"); } /// @@ -178,13 +178,13 @@ public virtual Operation MatchTrials(WaitUntil waitUntil, RequestCon internal HttpMessage CreateMatchTrialsRequest(RequestContent content, RequestContext context) { - var message = _pipeline.CreateMessage(context, ResponseClassifier200202); + var message = _pipeline.CreateMessage(context, ResponseClassifier202); var request = message.Request; request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); - uri.AppendRaw("/healthinsights", false); - uri.AppendPath("/trialmatcher/jobs", false); + uri.AppendRaw("/health-insights", false); + uri.AppendPath("/trial-matcher/jobs", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -206,13 +206,13 @@ internal static RequestContext FromCancellationToken(CancellationToken cancellat return new RequestContext() { CancellationToken = cancellationToken }; } - private static ResponseClassifier _responseClassifier200202; - private static ResponseClassifier ResponseClassifier200202 => _responseClassifier200202 ??= new StatusCodeClassifier(stackalloc ushort[] { 200, 202 }); + private static ResponseClassifier _responseClassifier202; + private static ResponseClassifier ResponseClassifier202 => _responseClassifier202 ??= new StatusCodeClassifier(stackalloc ushort[] { 202 }); - private TrialMatcherResults FetchTrialMatcherResultsFromTrialMatcherResult(Response response) + private TrialMatcherInferenceResult FetchTrialMatcherInferenceResultFromTrialMatcherResult(Response response) { - var resultJsonElement = JsonDocument.Parse(response.Content).RootElement.GetProperty("results"); - return TrialMatcherResults.DeserializeTrialMatcherResults(resultJsonElement); + var resultJsonElement = JsonDocument.Parse(response.Content).RootElement.GetProperty("result"); + return TrialMatcherInferenceResult.DeserializeTrialMatcherInferenceResult(resultJsonElement); } } } diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalMatchingClientOptions.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalMatchingClientOptions.cs index aee7822e8c4b5..19f2ab3d99545 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalMatchingClientOptions.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalMatchingClientOptions.cs @@ -13,13 +13,13 @@ namespace Azure.Health.Insights.ClinicalMatching /// Client options for ClinicalMatchingClient. public partial class ClinicalMatchingClientOptions : ClientOptions { - private const ServiceVersion LatestVersion = ServiceVersion.V2023_03_01_Preview; + private const ServiceVersion LatestVersion = ServiceVersion.V2023_09_01_Preview; /// The version of the service to use. public enum ServiceVersion { - /// Service version "2023-03-01-preview". - V2023_03_01_Preview = 1, + /// Service version "2023-09-01-preview". + V2023_09_01_Preview = 1, } internal string Version { get; } @@ -29,7 +29,7 @@ public ClinicalMatchingClientOptions(ServiceVersion version = LatestVersion) { Version = version switch { - ServiceVersion.V2023_03_01_Preview => "2023-03-01-preview", + ServiceVersion.V2023_09_01_Preview => "2023-09-01-preview", _ => throw new NotSupportedException() }; } diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialAcceptedSex.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialAcceptedSex.cs deleted file mode 100644 index 2828de5a8924f..0000000000000 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialAcceptedSex.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.Health.Insights.ClinicalMatching -{ - /// Possible values for the Sex eligibility criterion as accepted by clinical trials, which indicates the sex of people who may participate in a clinical study. - public readonly partial struct ClinicalTrialAcceptedSex : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public ClinicalTrialAcceptedSex(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string AllValue = "all"; - private const string FemaleValue = "female"; - private const string MaleValue = "male"; - - /// all. - public static ClinicalTrialAcceptedSex All { get; } = new ClinicalTrialAcceptedSex(AllValue); - /// female. - public static ClinicalTrialAcceptedSex Female { get; } = new ClinicalTrialAcceptedSex(FemaleValue); - /// male. - public static ClinicalTrialAcceptedSex Male { get; } = new ClinicalTrialAcceptedSex(MaleValue); - /// Determines if two values are the same. - public static bool operator ==(ClinicalTrialAcceptedSex left, ClinicalTrialAcceptedSex right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(ClinicalTrialAcceptedSex left, ClinicalTrialAcceptedSex right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator ClinicalTrialAcceptedSex(string value) => new ClinicalTrialAcceptedSex(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is ClinicalTrialAcceptedSex other && Equals(other); - /// - public bool Equals(ClinicalTrialAcceptedSex other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialDemographics.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialDemographics.cs deleted file mode 100644 index 132b5a10e617f..0000000000000 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialDemographics.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.Health.Insights.ClinicalMatching -{ - /// Demographic criteria for a clinical trial. - public partial class ClinicalTrialDemographics - { - /// Initializes a new instance of . - public ClinicalTrialDemographics() - { - } - - /// Initializes a new instance of . - /// Indication of the sex of people who may participate in the clinical trial. - /// A definition of the range of ages accepted by a clinical trial. Contains a minimum age and/or a maximum age. - internal ClinicalTrialDemographics(ClinicalTrialAcceptedSex? acceptedSex, AcceptedAgeRange acceptedAgeRange) - { - AcceptedSex = acceptedSex; - AcceptedAgeRange = acceptedAgeRange; - } - - /// Indication of the sex of people who may participate in the clinical trial. - public ClinicalTrialAcceptedSex? AcceptedSex { get; set; } - /// A definition of the range of ages accepted by a clinical trial. Contains a minimum age and/or a maximum age. - public AcceptedAgeRange AcceptedAgeRange { get; set; } - } -} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialDetails.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialDetails.cs deleted file mode 100644 index 937443b8c964d..0000000000000 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialDetails.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using Azure.Core; - -namespace Azure.Health.Insights.ClinicalMatching -{ - /// A description of a clinical trial. - public partial class ClinicalTrialDetails - { - /// Initializes a new instance of . - /// A given identifier for the clinical trial. Has to be unique within a list of clinical trials. - /// Trial data which is of interest to the potential participant. - /// or is null. - public ClinicalTrialDetails(string id, ClinicalTrialMetadata metadata) - { - Argument.AssertNotNull(id, nameof(id)); - Argument.AssertNotNull(metadata, nameof(metadata)); - - Id = id; - Metadata = metadata; - } - - /// Initializes a new instance of . - /// A given identifier for the clinical trial. Has to be unique within a list of clinical trials. - /// The eligibility criteria of the clinical trial (inclusion and exclusion), given as text. - /// Demographic criteria for a clinical trial. - /// Trial data which is of interest to the potential participant. - internal ClinicalTrialDetails(string id, string eligibilityCriteriaText, ClinicalTrialDemographics demographics, ClinicalTrialMetadata metadata) - { - Id = id; - EligibilityCriteriaText = eligibilityCriteriaText; - Demographics = demographics; - Metadata = metadata; - } - - /// A given identifier for the clinical trial. Has to be unique within a list of clinical trials. - public string Id { get; } - /// The eligibility criteria of the clinical trial (inclusion and exclusion), given as text. - public string EligibilityCriteriaText { get; set; } - /// Demographic criteria for a clinical trial. - public ClinicalTrialDemographics Demographics { get; set; } - /// Trial data which is of interest to the potential participant. - public ClinicalTrialMetadata Metadata { get; } - } -} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialMetadata.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialMetadata.Serialization.cs index 63e34c3c57786..0b0e445d2dd54 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialMetadata.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialMetadata.Serialization.cs @@ -12,84 +12,21 @@ namespace Azure.Health.Insights.ClinicalMatching { - public partial class ClinicalTrialMetadata : IUtf8JsonSerializable + public partial class ClinicalTrialMetadata { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - if (Optional.IsCollectionDefined(Phases)) - { - writer.WritePropertyName("phases"u8); - writer.WriteStartArray(); - foreach (var item in Phases) - { - writer.WriteStringValue(item.ToString()); - } - writer.WriteEndArray(); - } - if (Optional.IsDefined(StudyType)) - { - writer.WritePropertyName("studyType"u8); - writer.WriteStringValue(StudyType.Value.ToString()); - } - if (Optional.IsDefined(RecruitmentStatus)) - { - writer.WritePropertyName("recruitmentStatus"u8); - writer.WriteStringValue(RecruitmentStatus.Value.ToString()); - } - writer.WritePropertyName("conditions"u8); - writer.WriteStartArray(); - foreach (var item in Conditions) - { - writer.WriteStringValue(item); - } - writer.WriteEndArray(); - if (Optional.IsCollectionDefined(Sponsors)) - { - writer.WritePropertyName("sponsors"u8); - writer.WriteStartArray(); - foreach (var item in Sponsors) - { - writer.WriteStringValue(item); - } - writer.WriteEndArray(); - } - if (Optional.IsCollectionDefined(Contacts)) - { - writer.WritePropertyName("contacts"u8); - writer.WriteStartArray(); - foreach (var item in Contacts) - { - writer.WriteObjectValue(item); - } - writer.WriteEndArray(); - } - if (Optional.IsCollectionDefined(Facilities)) - { - writer.WritePropertyName("facilities"u8); - writer.WriteStartArray(); - foreach (var item in Facilities) - { - writer.WriteObjectValue(item); - } - writer.WriteEndArray(); - } - writer.WriteEndObject(); - } - internal static ClinicalTrialMetadata DeserializeClinicalTrialMetadata(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { return null; } - Optional> phases = default; + Optional> phases = default; Optional studyType = default; Optional recruitmentStatus = default; - IList conditions = default; - Optional> sponsors = default; - Optional> contacts = default; - Optional> facilities = default; + IReadOnlyList conditions = default; + Optional> sponsors = default; + Optional> contacts = default; + Optional> facilities = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("phases"u8)) @@ -187,13 +124,5 @@ internal static ClinicalTrialMetadata FromResponse(Response response) using var document = JsonDocument.Parse(response.Content); return DeserializeClinicalTrialMetadata(document.RootElement); } - - /// Convert into a Utf8JsonRequestContent. - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this); - return content; - } } } diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialMetadata.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialMetadata.cs index ebe341d8e9a34..03b3ceb156840 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialMetadata.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialMetadata.cs @@ -18,7 +18,7 @@ public partial class ClinicalTrialMetadata /// Initializes a new instance of . /// Medical conditions and their synonyms which are relevant for the clinical trial, given as strings. /// is null. - public ClinicalTrialMetadata(IEnumerable conditions) + internal ClinicalTrialMetadata(IEnumerable conditions) { Argument.AssertNotNull(conditions, nameof(conditions)); @@ -40,7 +40,7 @@ public ClinicalTrialMetadata(IEnumerable conditions) /// Sponsors/collaborators involved with the trial. /// Contact details of the trial administrators, for patients that want to participate in the trial. /// Research facilities where the clinical trial is conducted. - internal ClinicalTrialMetadata(IList phases, ClinicalTrialStudyType? studyType, ClinicalTrialRecruitmentStatus? recruitmentStatus, IList conditions, IList sponsors, IList contacts, IList facilities) + internal ClinicalTrialMetadata(IReadOnlyList phases, ClinicalTrialStudyType? studyType, ClinicalTrialRecruitmentStatus? recruitmentStatus, IReadOnlyList conditions, IReadOnlyList sponsors, IReadOnlyList contacts, IReadOnlyList facilities) { Phases = phases; StudyType = studyType; @@ -55,18 +55,18 @@ internal ClinicalTrialMetadata(IList phases, ClinicalTrialSt /// Phases which are relevant for the clinical trial. /// Each clinical trial can be in a certain phase or in multiple phases. /// - public IList Phases { get; } + public IReadOnlyList Phases { get; } /// Possible study types of a clinical trial. - public ClinicalTrialStudyType? StudyType { get; set; } + public ClinicalTrialStudyType? StudyType { get; } /// Possible recruitment status of a clinical trial. - public ClinicalTrialRecruitmentStatus? RecruitmentStatus { get; set; } + public ClinicalTrialRecruitmentStatus? RecruitmentStatus { get; } /// Medical conditions and their synonyms which are relevant for the clinical trial, given as strings. - public IList Conditions { get; } + public IReadOnlyList Conditions { get; } /// Sponsors/collaborators involved with the trial. - public IList Sponsors { get; } + public IReadOnlyList Sponsors { get; } /// Contact details of the trial administrators, for patients that want to participate in the trial. - public IList Contacts { get; } + public IReadOnlyList Contacts { get; } /// Research facilities where the clinical trial is conducted. - public IList Facilities { get; } + public IReadOnlyList Facilities { get; } } } diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialResearchFacility.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialResearchFacility.Serialization.cs index 883ec5a6b19e6..3e67b515c6e22 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialResearchFacility.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialResearchFacility.Serialization.cs @@ -11,28 +11,8 @@ namespace Azure.Health.Insights.ClinicalMatching { - public partial class ClinicalTrialResearchFacility : IUtf8JsonSerializable + public partial class ClinicalTrialResearchFacility { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - writer.WritePropertyName("name"u8); - writer.WriteStringValue(Name); - if (Optional.IsDefined(City)) - { - writer.WritePropertyName("city"u8); - writer.WriteStringValue(City); - } - if (Optional.IsDefined(State)) - { - writer.WritePropertyName("state"u8); - writer.WriteStringValue(State); - } - writer.WritePropertyName("countryOrRegion"u8); - writer.WriteStringValue(CountryOrRegion); - writer.WriteEndObject(); - } - internal static ClinicalTrialResearchFacility DeserializeClinicalTrialResearchFacility(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) @@ -76,13 +56,5 @@ internal static ClinicalTrialResearchFacility FromResponse(Response response) using var document = JsonDocument.Parse(response.Content); return DeserializeClinicalTrialResearchFacility(document.RootElement); } - - /// Convert into a Utf8JsonRequestContent. - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this); - return content; - } } } diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialResearchFacility.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialResearchFacility.cs index 2b9a1603552fc..3845a5365a23f 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialResearchFacility.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialResearchFacility.cs @@ -17,7 +17,7 @@ public partial class ClinicalTrialResearchFacility /// The facility's name. /// Country/region name. /// or is null. - public ClinicalTrialResearchFacility(string name, string countryOrRegion) + internal ClinicalTrialResearchFacility(string name, string countryOrRegion) { Argument.AssertNotNull(name, nameof(name)); Argument.AssertNotNull(countryOrRegion, nameof(countryOrRegion)); @@ -40,12 +40,12 @@ internal ClinicalTrialResearchFacility(string name, string city, string state, s } /// The facility's name. - public string Name { get; set; } + public string Name { get; } /// City name. - public string City { get; set; } + public string City { get; } /// State name. - public string State { get; set; } + public string State { get; } /// Country/region name. - public string CountryOrRegion { get; set; } + public string CountryOrRegion { get; } } } diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrials.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrials.cs index 239ba2fceb4e1..5a28e59c9d8f6 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrials.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrials.cs @@ -20,7 +20,7 @@ public partial class ClinicalTrials /// Initializes a new instance of . public ClinicalTrials() { - CustomTrials = new ChangeTrackingList(); + CustomTrials = new ChangeTrackingList(); RegistryFilters = new ChangeTrackingList(); } @@ -30,14 +30,14 @@ public ClinicalTrials() /// A list of filters, each one creating a selection of trials from a given /// clinical trial registry. /// - internal ClinicalTrials(IList customTrials, IList registryFilters) + internal ClinicalTrials(IList customTrials, IList registryFilters) { CustomTrials = customTrials; RegistryFilters = registryFilters; } /// A list of clinical trials. - public IList CustomTrials { get; } + public IList CustomTrials { get; } /// /// A list of filters, each one creating a selection of trials from a given /// clinical trial registry. diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/CodeableConcept.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/CodeableConcept.Serialization.cs new file mode 100644 index 0000000000000..959c99c559a32 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/CodeableConcept.Serialization.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.ClinicalMatching +{ + public partial class CodeableConcept : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Coding)) + { + writer.WritePropertyName("coding"u8); + writer.WriteStartArray(); + foreach (var item in Coding) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(Text)) + { + writer.WritePropertyName("text"u8); + writer.WriteStringValue(Text); + } + writer.WriteEndObject(); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/CodeableConcept.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/CodeableConcept.cs new file mode 100644 index 0000000000000..2210943cfd1e6 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/CodeableConcept.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.ClinicalMatching +{ + /// + /// Concept - reference to a terminology or just text + /// Based on [FHIR CodeableConcept](https://www.hl7.org/fhir/R4/datatypes.html#CodeableConcept) + /// + public partial class CodeableConcept + { + /// Initializes a new instance of . + public CodeableConcept() + { + Coding = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// Unique id for inter-element referencing. + /// Code defined by a terminology system. + /// Plain text representation of the concept. + internal CodeableConcept(string id, IList coding, string text) + { + Id = id; + Coding = coding; + Text = text; + } + + /// Unique id for inter-element referencing. + public string Id { get; set; } + /// Code defined by a terminology system. + public IList Coding { get; } + /// Plain text representation of the concept. + public string Text { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Coding.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Coding.Serialization.cs new file mode 100644 index 0000000000000..90ebc2322d749 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Coding.Serialization.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.ClinicalMatching +{ + public partial class Coding : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(System)) + { + writer.WritePropertyName("system"u8); + writer.WriteStringValue(System); + } + if (Optional.IsDefined(Version)) + { + writer.WritePropertyName("version"u8); + writer.WriteStringValue(Version); + } + if (Optional.IsDefined(Code)) + { + writer.WritePropertyName("code"u8); + writer.WriteStringValue(Code); + } + if (Optional.IsDefined(Display)) + { + writer.WritePropertyName("display"u8); + writer.WriteStringValue(Display); + } + writer.WriteEndObject(); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Coding.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Coding.cs new file mode 100644 index 0000000000000..c1a7e5ff4f661 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Coding.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.ClinicalMatching +{ + /// + /// A Coding is a representation of a defined concept using a symbol from a defined "code system". + /// Based on [FHIR Coding](https://www.hl7.org/fhir/R4/datatypes.html#Coding) + /// + public partial class Coding + { + /// Initializes a new instance of . + public Coding() + { + Extension = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// Unique id for inter-element referencing. + /// Additional Content defined by implementations. + /// Identity of the terminology system. + /// Version of the system - if relevant. + /// Symbol in syntax defined by the system. + /// Representation defined by the system. + internal Coding(string id, IList extension, string system, string version, string code, string display) + { + Id = id; + Extension = extension; + System = system; + Version = version; + Code = code; + Display = display; + } + + /// Unique id for inter-element referencing. + public string Id { get; set; } + /// Additional Content defined by implementations. + public IList Extension { get; } + /// Identity of the terminology system. + public string System { get; set; } + /// Version of the system - if relevant. + public string Version { get; set; } + /// Symbol in syntax defined by the system. + public string Code { get; set; } + /// Representation defined by the system. + public string Display { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ContactDetail.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ContactDetail.Serialization.cs new file mode 100644 index 0000000000000..481f190421ca9 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ContactDetail.Serialization.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.ClinicalMatching +{ + public partial class ContactDetail : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(Name)) + { + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + } + if (Optional.IsCollectionDefined(Telecom)) + { + writer.WritePropertyName("telecom"u8); + writer.WriteStartArray(); + foreach (var item in Telecom) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ContactDetail.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ContactDetail.cs new file mode 100644 index 0000000000000..26e008824e396 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ContactDetail.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.ClinicalMatching +{ + /// Contact details (See: https://www.hl7.org/fhir/R4/metadatatypes.html#ContactDetail). + public partial class ContactDetail + { + /// Initializes a new instance of . + public ContactDetail() + { + Extension = new ChangeTrackingList(); + Telecom = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// Unique id for inter-element referencing. + /// Additional Content defined by implementations. + /// Name of an individual to contact. + /// Contact details for individual or organization. + internal ContactDetail(string id, IList extension, string name, IList telecom) + { + Id = id; + Extension = extension; + Name = name; + Telecom = telecom; + } + + /// Unique id for inter-element referencing. + public string Id { get; set; } + /// Additional Content defined by implementations. + public IList Extension { get; } + /// Name of an individual to contact. + public string Name { get; set; } + /// Contact details for individual or organization. + public IList Telecom { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ContactDetails.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ContactDetails.Serialization.cs index 3dc2fa9876d62..50115b7452be6 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ContactDetails.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ContactDetails.Serialization.cs @@ -11,29 +11,8 @@ namespace Azure.Health.Insights.ClinicalMatching { - public partial class ContactDetails : IUtf8JsonSerializable + public partial class ContactDetails { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - if (Optional.IsDefined(Name)) - { - writer.WritePropertyName("name"u8); - writer.WriteStringValue(Name); - } - if (Optional.IsDefined(Email)) - { - writer.WritePropertyName("email"u8); - writer.WriteStringValue(Email); - } - if (Optional.IsDefined(Phone)) - { - writer.WritePropertyName("phone"u8); - writer.WriteStringValue(Phone); - } - writer.WriteEndObject(); - } - internal static ContactDetails DeserializeContactDetails(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) @@ -71,13 +50,5 @@ internal static ContactDetails FromResponse(Response response) using var document = JsonDocument.Parse(response.Content); return DeserializeContactDetails(document.RootElement); } - - /// Convert into a Utf8JsonRequestContent. - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this); - return content; - } } } diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ContactDetails.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ContactDetails.cs index 30ae72450e823..db2e4fa5822fd 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ContactDetails.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ContactDetails.cs @@ -11,7 +11,7 @@ namespace Azure.Health.Insights.ClinicalMatching public partial class ContactDetails { /// Initializes a new instance of . - public ContactDetails() + internal ContactDetails() { } @@ -27,10 +27,10 @@ internal ContactDetails(string name, string email, string phone) } /// The person's name. - public string Name { get; set; } + public string Name { get; } /// The person's email. - public string Email { get; set; } + public string Email { get; } /// A person's phone number. - public string Phone { get; set; } + public string Phone { get; } } } diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ContactPoint.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ContactPoint.Serialization.cs new file mode 100644 index 0000000000000..2e842976fb712 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ContactPoint.Serialization.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.ClinicalMatching +{ + public partial class ContactPoint : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(System)) + { + writer.WritePropertyName("system"u8); + writer.WriteStringValue(System.Value.ToString()); + } + if (Optional.IsDefined(Value)) + { + writer.WritePropertyName("value"u8); + writer.WriteStringValue(Value); + } + if (Optional.IsDefined(Use)) + { + writer.WritePropertyName("use"u8); + writer.WriteStringValue(Use.Value.ToString()); + } + if (Optional.IsDefined(Rank)) + { + writer.WritePropertyName("rank"u8); + writer.WriteNumberValue(Rank.Value); + } + if (Optional.IsDefined(Period)) + { + writer.WritePropertyName("period"u8); + writer.WriteObjectValue(Period); + } + writer.WriteEndObject(); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ContactPoint.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ContactPoint.cs new file mode 100644 index 0000000000000..db84cdc7613ef --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ContactPoint.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Health.Insights.ClinicalMatching +{ + /// + /// Details for all kinds of technology mediated contact points for a person or organization, including telephone, email, etc. + /// See https://www.hl7.org/fhir/R4/datatypes.html#ContactPoint + /// + public partial class ContactPoint + { + /// Initializes a new instance of . + public ContactPoint() + { + } + + /// Initializes a new instance of . + /// phone | fax | email | pager | url | sms | other. + /// The actual contact point details. + /// home | work | temp | old | mobile - purpose of this contact point. + /// Specify preferred order of use (1 = highest). + /// Time period when the contact point was/is in use. + internal ContactPoint(ContactPointSystem? system, string value, ContactPointUse? use, int? rank, Period period) + { + System = system; + Value = value; + Use = use; + Rank = rank; + Period = period; + } + + /// phone | fax | email | pager | url | sms | other. + public ContactPointSystem? System { get; set; } + /// The actual contact point details. + public string Value { get; set; } + /// home | work | temp | old | mobile - purpose of this contact point. + public ContactPointUse? Use { get; set; } + /// Specify preferred order of use (1 = highest). + public int? Rank { get; set; } + /// Time period when the contact point was/is in use. + public Period Period { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ContactPointSystem.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ContactPointSystem.cs new file mode 100644 index 0000000000000..c750ee1002476 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ContactPointSystem.cs @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Health.Insights.ClinicalMatching +{ + /// + /// Contact Point System + /// see https://www.hl7.org/fhir/R4/valueset-contact-point-system.html + /// + public readonly partial struct ContactPointSystem : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ContactPointSystem(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string PhoneValue = "phone"; + private const string FaxValue = "fax"; + private const string EmailValue = "email"; + private const string PagerValue = "pager"; + private const string UrlValue = "url"; + private const string SmsValue = "sms"; + private const string OtherValue = "other"; + + /// Phone. + public static ContactPointSystem Phone { get; } = new ContactPointSystem(PhoneValue); + /// Fax. + public static ContactPointSystem Fax { get; } = new ContactPointSystem(FaxValue); + /// Email. + public static ContactPointSystem Email { get; } = new ContactPointSystem(EmailValue); + /// Pager. + public static ContactPointSystem Pager { get; } = new ContactPointSystem(PagerValue); + /// Url. + public static ContactPointSystem Url { get; } = new ContactPointSystem(UrlValue); + /// Sms. + public static ContactPointSystem Sms { get; } = new ContactPointSystem(SmsValue); + /// Other. + public static ContactPointSystem Other { get; } = new ContactPointSystem(OtherValue); + /// Determines if two values are the same. + public static bool operator ==(ContactPointSystem left, ContactPointSystem right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ContactPointSystem left, ContactPointSystem right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ContactPointSystem(string value) => new ContactPointSystem(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ContactPointSystem other && Equals(other); + /// + public bool Equals(ContactPointSystem other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ContactPointUse.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ContactPointUse.cs new file mode 100644 index 0000000000000..1c58c6024a1ef --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ContactPointUse.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Health.Insights.ClinicalMatching +{ + /// + /// Contact Point Use + /// See: http://hl7.org/fhir/ValueSet/contact-point-use + /// + public readonly partial struct ContactPointUse : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ContactPointUse(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string HomeValue = "home"; + private const string WorkValue = "work"; + private const string TempValue = "temp"; + private const string OldValue = "old"; + private const string MobileValue = "mobile"; + + /// Home. + public static ContactPointUse Home { get; } = new ContactPointUse(HomeValue); + /// Work. + public static ContactPointUse Work { get; } = new ContactPointUse(WorkValue); + /// Temp. + public static ContactPointUse Temp { get; } = new ContactPointUse(TempValue); + /// Old. + public static ContactPointUse Old { get; } = new ContactPointUse(OldValue); + /// Mobile. + public static ContactPointUse Mobile { get; } = new ContactPointUse(MobileValue); + /// Determines if two values are the same. + public static bool operator ==(ContactPointUse left, ContactPointUse right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ContactPointUse left, ContactPointUse right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ContactPointUse(string value) => new ContactPointUse(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ContactPointUse other && Equals(other); + /// + public bool Equals(ContactPointUse other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Docs/ClinicalMatchingClient.xml b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Docs/ClinicalMatchingClient.xml index 7593c6ea374a8..96971b23e43d2 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Docs/ClinicalMatchingClient.xml +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Docs/ClinicalMatchingClient.xml @@ -13,8 +13,8 @@ TrialMatcherData trialMatcherData = new TrialMatcherData(new PatientRecord[] { new PatientRecord("") }); -Operation operation = await client.MatchTrialsAsync(WaitUntil.Completed, trialMatcherData); -TrialMatcherResults responseData = operation.Value; +Operation operation = await client.MatchTrialsAsync(WaitUntil.Completed, trialMatcherData); +TrialMatcherInferenceResult responseData = operation.Value; ]]> This sample shows how to call MatchTrialsAsync with all parameters. ", "") + ClinicalInfo = {new Resource("") { - Name = "", - Value = "", + Id = "", + Meta = new Meta + { + VersionId = "", + LastUpdated = "", + Source = "", + Profile = {""}, + Security = {new Coding + { + Id = "", + Extension = {new Extension("") + { + Id = "", + ValueQuantity = new Quantity + { + Id = "", + Value = default, + Comparator = "", + Unit = "", + System = "", + Code = "", + }, + ValueCodeableConcept = new CodeableConcept + { + Id = "", + Coding = {default}, + Text = "", + }, + ValueString = "", + ValueBoolean = true, + ValueInteger = 1234, + ValueRange = new Range + { + Id = "", + Low = default, + High = default, + }, + ValueRatio = new Ratio + { + Id = "", + Numerator = default, + Denominator = default, + }, + ValueSampledData = new SampledData(default, default, 1234) + { + Id = "", + Factor = default, + LowerLimit = default, + UpperLimit = default, + Data = "", + }, + ValueTime = TimeSpan.Parse("01:23:45"), + ValueDateTime = "", + ValuePeriod = new Period + { + Id = "", + Start = "", + End = "", + }, + ValueReference = new Reference + { + Id = "", + ReferenceProperty = "", + Type = "", + Identifier = new Identifier + { + Id = "", + Use = "", + Type = default, + System = "", + Value = "", + Period = default, + Assigner = default, + }, + Display = "", + }, + }}, + System = "", + Version = "", + Code = "", + Display = "", + }}, + Tag = {default}, + }, + ImplicitRules = "", + Language = "", }}, }, - Data = {new PatientDocument(DocumentType.Note, "", new DocumentContent(DocumentContentSourceType.Inline, "")) + Encounters = {new Encounter("") + { + Period = new TimePeriod + { + Start = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), + End = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), + }, + Class = EncounterClass.InPatient, + }}, + PatientDocuments = {new PatientDocument(DocumentType.Note, "", new DocumentContent(DocumentContentSourceType.Inline, "")) { ClinicalType = ClinicalDocumentType.Consultation, Language = "", CreatedDateTime = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), + Authors = {new DocumentAuthor + { + Id = "", + FullName = "", + }}, + SpecialtyType = SpecialtyType.Pathology, + AdministrativeMetadata = new DocumentAdministrativeMetadata + { + OrderedProcedures = {new OrderedProcedure + { + Extension = {default}, + Code = default, + Description = "", + }}, + EncounterId = "", + }, }}, } }) { Configuration = new TrialMatcherModelConfiguration(new ClinicalTrials { - CustomTrials = {new ClinicalTrialDetails("", new ClinicalTrialMetadata(new string[]{""}) + CustomTrials = {new ResearchStudy(ResearchStudyStatusCodeType.Active) { - Phases = {ClinicalTrialPhase.NotApplicable}, - StudyType = ClinicalTrialStudyType.Interventional, - RecruitmentStatus = ClinicalTrialRecruitmentStatus.UnknownStatus, - Sponsors = {""}, - Contacts = {new ContactDetails + Identifier = {default}, + Title = "", + Protocol = {default}, + PartOf = {default}, + PrimaryPurposeType = default, + Phase = default, + Category = {default}, + Focus = {default}, + Condition = {default}, + Contact = {new ContactDetail { + Id = "<id>", + Extension = {default}, Name = "<name>", - Email = "<email>", - Phone = "<phone>", + Telecom = {new ContactPoint + { + System = ContactPointSystem.Phone, + Value = "<value>", + Use = ContactPointUse.Home, + Rank = 1234, + Period = default, + }}, }}, - Facilities = {new ClinicalTrialResearchFacility("<name>", "<countryOrRegion>") + Keyword = {default}, + Location = {default}, + Description = "<description>", + Enrollment = {default}, + Period = default, + Sponsor = default, + PrincipalInvestigator = default, + Site = {default}, + ReasonStopped = default, + Note = {new Annotation("<text>") { - City = "<city>", - State = "<state>", + Id = "<id>", + Extension = {default}, + AuthorString = "<authorString>", + Time = "<time>", }}, - }) - { - EligibilityCriteriaText = "<eligibilityCriteriaText>", - Demographics = new ClinicalTrialDemographics + Arm = {new ResearchStudyArm("<name>") { - AcceptedSex = ClinicalTrialAcceptedSex.All, - AcceptedAgeRange = new AcceptedAgeRange - { - MinimumAge = new AcceptedAge(AgeUnit.Years, 123.45F), - MaximumAge = default, - }, - }, + Type = default, + Description = "<description>", + }}, + Objective = {new ResearchStudyObjective("<name>") + { + Type = default, + }}, }}, RegistryFilters = {new ClinicalTrialRegistryFilter { @@ -101,8 +231,8 @@ TrialMatcherData trialMatcherData = new TrialMatcherData(new PatientRecord[] IncludeEvidence = true, }, }; -Operation<TrialMatcherResults> operation = await client.MatchTrialsAsync(WaitUntil.Completed, trialMatcherData); -TrialMatcherResults responseData = operation.Value; +Operation<TrialMatcherInferenceResult> operation = await client.MatchTrialsAsync(WaitUntil.Completed, trialMatcherData); +TrialMatcherInferenceResult responseData = operation.Value; ]]></code></example> </member> <member name="MatchTrials(WaitUntil,TrialMatcherData,CancellationToken)"> @@ -117,8 +247,8 @@ TrialMatcherData trialMatcherData = new TrialMatcherData(new PatientRecord[] { new PatientRecord("<id>") }); -Operation<TrialMatcherResults> operation = client.MatchTrials(WaitUntil.Completed, trialMatcherData); -TrialMatcherResults responseData = operation.Value; +Operation<TrialMatcherInferenceResult> operation = client.MatchTrials(WaitUntil.Completed, trialMatcherData); +TrialMatcherInferenceResult responseData = operation.Value; ]]></code> This sample shows how to call MatchTrials with all parameters. <code><![CDATA[ @@ -134,52 +264,182 @@ TrialMatcherData trialMatcherData = new TrialMatcherData(new PatientRecord[] { Sex = PatientInfoSex.Female, BirthDate = DateTimeOffset.Parse("2022-05-10"), - ClinicalInfo = {new ClinicalCodedElement("<system>", "<code>") + ClinicalInfo = {new Resource("<resourceType>") { - Name = "<name>", - Value = "<value>", + Id = "<id>", + Meta = new Meta + { + VersionId = "<versionId>", + LastUpdated = "<lastUpdated>", + Source = "<source>", + Profile = {"<profile>"}, + Security = {new Coding + { + Id = "<id>", + Extension = {new Extension("<url>") + { + Id = "<id>", + ValueQuantity = new Quantity + { + Id = "<id>", + Value = default, + Comparator = "<comparator>", + Unit = "<unit>", + System = "<system>", + Code = "<code>", + }, + ValueCodeableConcept = new CodeableConcept + { + Id = "<id>", + Coding = {default}, + Text = "<text>", + }, + ValueString = "<valueString>", + ValueBoolean = true, + ValueInteger = 1234, + ValueRange = new Range + { + Id = "<id>", + Low = default, + High = default, + }, + ValueRatio = new Ratio + { + Id = "<id>", + Numerator = default, + Denominator = default, + }, + ValueSampledData = new SampledData(default, default, 1234) + { + Id = "<id>", + Factor = default, + LowerLimit = default, + UpperLimit = default, + Data = "<data>", + }, + ValueTime = TimeSpan.Parse("01:23:45"), + ValueDateTime = "<valueDateTime>", + ValuePeriod = new Period + { + Id = "<id>", + Start = "<start>", + End = "<end>", + }, + ValueReference = new Reference + { + Id = "<id>", + ReferenceProperty = "<reference>", + Type = "<type>", + Identifier = new Identifier + { + Id = "<id>", + Use = "<use>", + Type = default, + System = "<system>", + Value = "<value>", + Period = default, + Assigner = default, + }, + Display = "<display>", + }, + }}, + System = "<system>", + Version = "<version>", + Code = "<code>", + Display = "<display>", + }}, + Tag = {default}, + }, + ImplicitRules = "<implicitRules>", + Language = "<language>", }}, }, - Data = {new PatientDocument(DocumentType.Note, "<id>", new DocumentContent(DocumentContentSourceType.Inline, "<value>")) + Encounters = {new Encounter("<id>") + { + Period = new TimePeriod + { + Start = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), + End = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), + }, + Class = EncounterClass.InPatient, + }}, + PatientDocuments = {new PatientDocument(DocumentType.Note, "<id>", new DocumentContent(DocumentContentSourceType.Inline, "<value>")) { ClinicalType = ClinicalDocumentType.Consultation, Language = "<language>", CreatedDateTime = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), + Authors = {new DocumentAuthor + { + Id = "<id>", + FullName = "<fullName>", + }}, + SpecialtyType = SpecialtyType.Pathology, + AdministrativeMetadata = new DocumentAdministrativeMetadata + { + OrderedProcedures = {new OrderedProcedure + { + Extension = {default}, + Code = default, + Description = "<description>", + }}, + EncounterId = "<encounterId>", + }, }}, } }) { Configuration = new TrialMatcherModelConfiguration(new ClinicalTrials { - CustomTrials = {new ClinicalTrialDetails("<id>", new ClinicalTrialMetadata(new string[]{"<conditions>"}) + CustomTrials = {new ResearchStudy(ResearchStudyStatusCodeType.Active) { - Phases = {ClinicalTrialPhase.NotApplicable}, - StudyType = ClinicalTrialStudyType.Interventional, - RecruitmentStatus = ClinicalTrialRecruitmentStatus.UnknownStatus, - Sponsors = {"<sponsors>"}, - Contacts = {new ContactDetails + Identifier = {default}, + Title = "<title>", + Protocol = {default}, + PartOf = {default}, + PrimaryPurposeType = default, + Phase = default, + Category = {default}, + Focus = {default}, + Condition = {default}, + Contact = {new ContactDetail { + Id = "<id>", + Extension = {default}, Name = "<name>", - Email = "<email>", - Phone = "<phone>", + Telecom = {new ContactPoint + { + System = ContactPointSystem.Phone, + Value = "<value>", + Use = ContactPointUse.Home, + Rank = 1234, + Period = default, + }}, }}, - Facilities = {new ClinicalTrialResearchFacility("<name>", "<countryOrRegion>") + Keyword = {default}, + Location = {default}, + Description = "<description>", + Enrollment = {default}, + Period = default, + Sponsor = default, + PrincipalInvestigator = default, + Site = {default}, + ReasonStopped = default, + Note = {new Annotation("<text>") { - City = "<city>", - State = "<state>", + Id = "<id>", + Extension = {default}, + AuthorString = "<authorString>", + Time = "<time>", }}, - }) - { - EligibilityCriteriaText = "<eligibilityCriteriaText>", - Demographics = new ClinicalTrialDemographics + Arm = {new ResearchStudyArm("<name>") { - AcceptedSex = ClinicalTrialAcceptedSex.All, - AcceptedAgeRange = new AcceptedAgeRange - { - MinimumAge = new AcceptedAge(AgeUnit.Years, 123.45F), - MaximumAge = default, - }, - }, + Type = default, + Description = "<description>", + }}, + Objective = {new ResearchStudyObjective("<name>") + { + Type = default, + }}, }}, RegistryFilters = {new ClinicalTrialRegistryFilter { @@ -205,8 +465,8 @@ TrialMatcherData trialMatcherData = new TrialMatcherData(new PatientRecord[] IncludeEvidence = true, }, }; -Operation<TrialMatcherResults> operation = client.MatchTrials(WaitUntil.Completed, trialMatcherData); -TrialMatcherResults responseData = operation.Value; +Operation<TrialMatcherInferenceResult> operation = client.MatchTrials(WaitUntil.Completed, trialMatcherData); +TrialMatcherInferenceResult responseData = operation.Value; ]]></code></example> </member> <member name="MatchTrialsAsync(WaitUntil,RequestContent,RequestContext)"> @@ -231,9 +491,9 @@ Operation<BinaryData> operation = await client.MatchTrialsAsync(WaitUntil.Comple BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("id").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("patientId").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("value").ToString()); Console.WriteLine(result.GetProperty("modelVersion").ToString()); ]]></code> This sample shows how to call MatchTrialsAsync with all parameters and request content and parse the result. @@ -257,14 +517,121 @@ using RequestContent content = RequestContent.Create(new { new { - system = "<system>", - code = "<code>", - name = "<name>", - value = "<value>", + resourceType = "<resourceType>", + id = "<id>", + meta = new + { + versionId = "<versionId>", + lastUpdated = "<lastUpdated>", + source = "<source>", + profile = new object[] + { + "<profile>" + }, + security = new object[] + { + new + { + id = "<id>", + extension = new object[] + { + new + { + id = "<id>", + url = "<url>", + valueQuantity = new + { + id = "<id>", + value = new object(), + comparator = "<comparator>", + unit = "<unit>", + system = "<system>", + code = "<code>", + }, + valueCodeableConcept = new + { + id = "<id>", + coding = new object[] + { + null + }, + text = "<text>", + }, + valueString = "<valueString>", + valueBoolean = true, + valueInteger = 1234, + valueRange = new + { + id = "<id>", + }, + valueRatio = new + { + id = "<id>", + }, + valueSampledData = new + { + id = "<id>", + period = new object(), + factor = new object(), + lowerLimit = new object(), + upperLimit = new object(), + dimensions = 1234, + data = "<data>", + }, + valueTime = "01:23:45", + valueDateTime = "<valueDateTime>", + valuePeriod = new + { + id = "<id>", + start = "<start>", + end = "<end>", + }, + valueReference = new + { + id = "<id>", + reference = "<reference>", + type = "<type>", + identifier = new + { + id = "<id>", + use = "<use>", + system = "<system>", + value = "<value>", + }, + display = "<display>", + }, + } + }, + system = "<system>", + version = "<version>", + code = "<code>", + display = "<display>", + } + }, + tag = new object[] + { + null + }, + }, + implicitRules = "<implicitRules>", + language = "<language>", } }, }, - data = new object[] + encounters = new object[] + { + new Dictionary<string, object> + { + ["id"] = "<id>", + ["period"] = new + { + start = "2022-05-10T14:57:31.2311892-04:00", + end = "2022-05-10T14:57:31.2311892-04:00", + }, + ["class"] = "inpatient" + } + }, + patientDocuments = new object[] { new { @@ -273,6 +640,30 @@ using RequestContent content = RequestContent.Create(new id = "<id>", language = "<language>", createdDateTime = "2022-05-10T14:57:31.2311892-04:00", + authors = new object[] + { + new + { + id = "<id>", + fullName = "<fullName>", + } + }, + specialtyType = "pathology", + administrativeMetadata = new + { + orderedProcedures = new object[] + { + new + { + extension = new object[] + { + null + }, + description = "<description>", + } + }, + encounterId = "<encounterId>", + }, content = new { sourceType = "inline", @@ -292,55 +683,125 @@ using RequestContent content = RequestContent.Create(new { new { - id = "<id>", - eligibilityCriteriaText = "<eligibilityCriteriaText>", - demographics = new + identifier = new object[] { - acceptedSex = "all", - acceptedAgeRange = new + null + }, + title = "<title>", + protocol = new object[] + { + null + }, + partOf = new object[] + { + null + }, + status = "active", + category = new object[] + { + null + }, + focus = new object[] + { + null + }, + condition = new object[] + { + null + }, + contact = new object[] + { + new { - minimumAge = new + id = "<id>", + extension = new object[] { - unit = "years", - value = 123.45F, + null }, - }, + name = "<name>", + telecom = new object[] + { + new + { + system = "phone", + value = "<value>", + use = "home", + rank = 1234, + } + }, + } }, - metadata = new + keyword = new object[] { - phases = new object[] - { - "notApplicable" - }, - studyType = "interventional", - recruitmentStatus = "unknownStatus", - conditions = new object[] + null + }, + location = new object[] + { + null + }, + description = "<description>", + enrollment = new object[] + { + null + }, + site = new object[] + { + null + }, + note = new object[] + { + new { - "<conditions>" - }, - sponsors = new object[] + id = "<id>", + extension = new object[] + { + null + }, + authorString = "<authorString>", + time = "<time>", + text = "<text>", + } + }, + arm = new object[] + { + new { - "<sponsors>" - }, - contacts = new object[] + name = "<name>", + description = "<description>", + } + }, + objective = new object[] + { + new { - new - { - name = "<name>", - email = "<email>", - phone = "<phone>", - } - }, - facilities = new object[] + name = "<name>", + } + }, + resourceType = "ResearchStudy", + id = "<id>", + implicitRules = "<implicitRules>", + language = "<language>", + text = new + { + id = "<id>", + extension = new object[] { - new - { - name = "<name>", - city = "<city>", - state = "<state>", - countryOrRegion = "<countryOrRegion>", - } + null }, + status = "<status>", + div = "<div>", + }, + contained = new object[] + { + null + }, + extension = new object[] + { + null + }, + modifierExtension = new object[] + { + null }, } }, @@ -422,41 +883,41 @@ Operation<BinaryData> operation = await client.MatchTrialsAsync(WaitUntil.Comple BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("id").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("value").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("description").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("confidenceScore").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("eligibilityCriteriaEvidence").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("id").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("text").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("offset").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("length").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("system").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("name").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("value").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("importance").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("id").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("source").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("phases")[0].ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("studyType").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("recruitmentStatus").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("conditions")[0].ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("sponsors")[0].ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("contacts")[0].GetProperty("name").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("contacts")[0].GetProperty("email").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("contacts")[0].GetProperty("phone").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("facilities")[0].GetProperty("name").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("facilities")[0].GetProperty("city").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("facilities")[0].GetProperty("state").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("facilities")[0].GetProperty("countryOrRegion").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("neededClinicalInfo")[0].GetProperty("system").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("neededClinicalInfo")[0].GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("neededClinicalInfo")[0].GetProperty("name").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("neededClinicalInfo")[0].GetProperty("value").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("neededClinicalInfo")[0].GetProperty("semanticType").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("neededClinicalInfo")[0].GetProperty("category").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("patientId").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("description").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("confidenceScore").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("eligibilityCriteriaEvidence").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("offset").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("length").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("name").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("importance").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("clinicalTrialId").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("source").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("phases")[0].ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("studyType").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("recruitmentStatus").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("conditions")[0].ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("sponsors")[0].ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("contacts")[0].GetProperty("name").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("contacts")[0].GetProperty("email").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("contacts")[0].GetProperty("phone").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("facilities")[0].GetProperty("name").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("facilities")[0].GetProperty("city").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("facilities")[0].GetProperty("state").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("facilities")[0].GetProperty("countryOrRegion").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("neededClinicalInfo")[0].GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("neededClinicalInfo")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("neededClinicalInfo")[0].GetProperty("name").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("neededClinicalInfo")[0].GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("neededClinicalInfo")[0].GetProperty("semanticType").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("neededClinicalInfo")[0].GetProperty("category").ToString()); Console.WriteLine(result.GetProperty("modelVersion").ToString()); Console.WriteLine(result.GetProperty("knowledgeGraphLastUpdateDate").ToString()); ]]></code></example> @@ -483,9 +944,9 @@ Operation<BinaryData> operation = client.MatchTrials(WaitUntil.Completed, conten BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("id").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("patientId").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("value").ToString()); Console.WriteLine(result.GetProperty("modelVersion").ToString()); ]]></code> This sample shows how to call MatchTrials with all parameters and request content and parse the result. @@ -509,14 +970,121 @@ using RequestContent content = RequestContent.Create(new { new { - system = "<system>", - code = "<code>", - name = "<name>", - value = "<value>", + resourceType = "<resourceType>", + id = "<id>", + meta = new + { + versionId = "<versionId>", + lastUpdated = "<lastUpdated>", + source = "<source>", + profile = new object[] + { + "<profile>" + }, + security = new object[] + { + new + { + id = "<id>", + extension = new object[] + { + new + { + id = "<id>", + url = "<url>", + valueQuantity = new + { + id = "<id>", + value = new object(), + comparator = "<comparator>", + unit = "<unit>", + system = "<system>", + code = "<code>", + }, + valueCodeableConcept = new + { + id = "<id>", + coding = new object[] + { + null + }, + text = "<text>", + }, + valueString = "<valueString>", + valueBoolean = true, + valueInteger = 1234, + valueRange = new + { + id = "<id>", + }, + valueRatio = new + { + id = "<id>", + }, + valueSampledData = new + { + id = "<id>", + period = new object(), + factor = new object(), + lowerLimit = new object(), + upperLimit = new object(), + dimensions = 1234, + data = "<data>", + }, + valueTime = "01:23:45", + valueDateTime = "<valueDateTime>", + valuePeriod = new + { + id = "<id>", + start = "<start>", + end = "<end>", + }, + valueReference = new + { + id = "<id>", + reference = "<reference>", + type = "<type>", + identifier = new + { + id = "<id>", + use = "<use>", + system = "<system>", + value = "<value>", + }, + display = "<display>", + }, + } + }, + system = "<system>", + version = "<version>", + code = "<code>", + display = "<display>", + } + }, + tag = new object[] + { + null + }, + }, + implicitRules = "<implicitRules>", + language = "<language>", } }, }, - data = new object[] + encounters = new object[] + { + new Dictionary<string, object> + { + ["id"] = "<id>", + ["period"] = new + { + start = "2022-05-10T14:57:31.2311892-04:00", + end = "2022-05-10T14:57:31.2311892-04:00", + }, + ["class"] = "inpatient" + } + }, + patientDocuments = new object[] { new { @@ -525,6 +1093,30 @@ using RequestContent content = RequestContent.Create(new id = "<id>", language = "<language>", createdDateTime = "2022-05-10T14:57:31.2311892-04:00", + authors = new object[] + { + new + { + id = "<id>", + fullName = "<fullName>", + } + }, + specialtyType = "pathology", + administrativeMetadata = new + { + orderedProcedures = new object[] + { + new + { + extension = new object[] + { + null + }, + description = "<description>", + } + }, + encounterId = "<encounterId>", + }, content = new { sourceType = "inline", @@ -544,55 +1136,125 @@ using RequestContent content = RequestContent.Create(new { new { - id = "<id>", - eligibilityCriteriaText = "<eligibilityCriteriaText>", - demographics = new + identifier = new object[] + { + null + }, + title = "<title>", + protocol = new object[] + { + null + }, + partOf = new object[] + { + null + }, + status = "active", + category = new object[] + { + null + }, + focus = new object[] + { + null + }, + condition = new object[] { - acceptedSex = "all", - acceptedAgeRange = new + null + }, + contact = new object[] + { + new { - minimumAge = new + id = "<id>", + extension = new object[] { - unit = "years", - value = 123.45F, + null }, - }, + name = "<name>", + telecom = new object[] + { + new + { + system = "phone", + value = "<value>", + use = "home", + rank = 1234, + } + }, + } }, - metadata = new + keyword = new object[] { - phases = new object[] - { - "notApplicable" - }, - studyType = "interventional", - recruitmentStatus = "unknownStatus", - conditions = new object[] + null + }, + location = new object[] + { + null + }, + description = "<description>", + enrollment = new object[] + { + null + }, + site = new object[] + { + null + }, + note = new object[] + { + new { - "<conditions>" - }, - sponsors = new object[] + id = "<id>", + extension = new object[] + { + null + }, + authorString = "<authorString>", + time = "<time>", + text = "<text>", + } + }, + arm = new object[] + { + new { - "<sponsors>" - }, - contacts = new object[] + name = "<name>", + description = "<description>", + } + }, + objective = new object[] + { + new { - new - { - name = "<name>", - email = "<email>", - phone = "<phone>", - } - }, - facilities = new object[] + name = "<name>", + } + }, + resourceType = "ResearchStudy", + id = "<id>", + implicitRules = "<implicitRules>", + language = "<language>", + text = new + { + id = "<id>", + extension = new object[] { - new - { - name = "<name>", - city = "<city>", - state = "<state>", - countryOrRegion = "<countryOrRegion>", - } + null }, + status = "<status>", + div = "<div>", + }, + contained = new object[] + { + null + }, + extension = new object[] + { + null + }, + modifierExtension = new object[] + { + null }, } }, @@ -674,41 +1336,41 @@ Operation<BinaryData> operation = client.MatchTrials(WaitUntil.Completed, conten BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("id").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("value").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("description").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("confidenceScore").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("eligibilityCriteriaEvidence").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("id").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("text").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("offset").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("length").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("system").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("name").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("value").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("importance").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("id").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("source").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("phases")[0].ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("studyType").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("recruitmentStatus").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("conditions")[0].ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("sponsors")[0].ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("contacts")[0].GetProperty("name").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("contacts")[0].GetProperty("email").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("contacts")[0].GetProperty("phone").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("facilities")[0].GetProperty("name").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("facilities")[0].GetProperty("city").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("facilities")[0].GetProperty("state").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("facilities")[0].GetProperty("countryOrRegion").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("neededClinicalInfo")[0].GetProperty("system").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("neededClinicalInfo")[0].GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("neededClinicalInfo")[0].GetProperty("name").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("neededClinicalInfo")[0].GetProperty("value").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("neededClinicalInfo")[0].GetProperty("semanticType").ToString()); -Console.WriteLine(result.GetProperty("patients")[0].GetProperty("neededClinicalInfo")[0].GetProperty("category").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("patientId").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("description").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("confidenceScore").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("eligibilityCriteriaEvidence").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("offset").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("length").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("name").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("importance").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("clinicalTrialId").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("source").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("phases")[0].ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("studyType").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("recruitmentStatus").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("conditions")[0].ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("sponsors")[0].ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("contacts")[0].GetProperty("name").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("contacts")[0].GetProperty("email").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("contacts")[0].GetProperty("phone").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("facilities")[0].GetProperty("name").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("facilities")[0].GetProperty("city").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("facilities")[0].GetProperty("state").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("facilities")[0].GetProperty("countryOrRegion").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("neededClinicalInfo")[0].GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("neededClinicalInfo")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("neededClinicalInfo")[0].GetProperty("name").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("neededClinicalInfo")[0].GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("neededClinicalInfo")[0].GetProperty("semanticType").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("neededClinicalInfo")[0].GetProperty("category").ToString()); Console.WriteLine(result.GetProperty("modelVersion").ToString()); Console.WriteLine(result.GetProperty("knowledgeGraphLastUpdateDate").ToString()); ]]></code></example> diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/DocumentAdministrativeMetadata.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/DocumentAdministrativeMetadata.Serialization.cs new file mode 100644 index 0000000000000..3a37775c94c43 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/DocumentAdministrativeMetadata.Serialization.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.ClinicalMatching +{ + public partial class DocumentAdministrativeMetadata : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(OrderedProcedures)) + { + writer.WritePropertyName("orderedProcedures"u8); + writer.WriteStartArray(); + foreach (var item in OrderedProcedures) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(EncounterId)) + { + writer.WritePropertyName("encounterId"u8); + writer.WriteStringValue(EncounterId); + } + writer.WriteEndObject(); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/DocumentAdministrativeMetadata.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/DocumentAdministrativeMetadata.cs new file mode 100644 index 0000000000000..f6e21302e9938 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/DocumentAdministrativeMetadata.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.ClinicalMatching +{ + /// <summary> Document administrative metadata. </summary> + public partial class DocumentAdministrativeMetadata + { + /// <summary> Initializes a new instance of <see cref="DocumentAdministrativeMetadata"/>. </summary> + public DocumentAdministrativeMetadata() + { + OrderedProcedures = new ChangeTrackingList<OrderedProcedure>(); + } + + /// <summary> Initializes a new instance of <see cref="DocumentAdministrativeMetadata"/>. </summary> + /// <param name="orderedProcedures"> List of procedure information associated with the document. </param> + /// <param name="encounterId"> Reference to the encounter associated with the document. </param> + internal DocumentAdministrativeMetadata(IList<OrderedProcedure> orderedProcedures, string encounterId) + { + OrderedProcedures = orderedProcedures; + EncounterId = encounterId; + } + + /// <summary> List of procedure information associated with the document. </summary> + public IList<OrderedProcedure> OrderedProcedures { get; } + /// <summary> Reference to the encounter associated with the document. </summary> + public string EncounterId { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/AcceptedAgeRange.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/DocumentAuthor.Serialization.cs similarity index 66% rename from sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/AcceptedAgeRange.Serialization.cs rename to sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/DocumentAuthor.Serialization.cs index 0952e92350900..b88f50047356f 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/AcceptedAgeRange.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/DocumentAuthor.Serialization.cs @@ -10,20 +10,20 @@ namespace Azure.Health.Insights.ClinicalMatching { - public partial class AcceptedAgeRange : IUtf8JsonSerializable + public partial class DocumentAuthor : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (Optional.IsDefined(MinimumAge)) + if (Optional.IsDefined(Id)) { - writer.WritePropertyName("minimumAge"u8); - writer.WriteObjectValue(MinimumAge); + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); } - if (Optional.IsDefined(MaximumAge)) + if (Optional.IsDefined(FullName)) { - writer.WritePropertyName("maximumAge"u8); - writer.WriteObjectValue(MaximumAge); + writer.WritePropertyName("fullName"u8); + writer.WriteStringValue(FullName); } writer.WriteEndObject(); } diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/DocumentAuthor.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/DocumentAuthor.cs new file mode 100644 index 0000000000000..064d9bf69e571 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/DocumentAuthor.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +namespace Azure.Health.Insights.ClinicalMatching +{ + /// <summary> Document author. </summary> + public partial class DocumentAuthor + { + /// <summary> Initializes a new instance of <see cref="DocumentAuthor"/>. </summary> + public DocumentAuthor() + { + } + + /// <summary> Initializes a new instance of <see cref="DocumentAuthor"/>. </summary> + /// <param name="id"> author id. </param> + /// <param name="fullName"> Text representation of the full name. </param> + internal DocumentAuthor(string id, string fullName) + { + Id = id; + FullName = fullName; + } + + /// <summary> author id. </summary> + public string Id { get; set; } + /// <summary> Text representation of the full name. </summary> + public string FullName { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/DocumentContentSourceType.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/DocumentContentSourceType.cs index 466298d460dc8..49d38e2955210 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/DocumentContentSourceType.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/DocumentContentSourceType.cs @@ -29,9 +29,9 @@ public DocumentContentSourceType(string value) private const string InlineValue = "inline"; private const string ReferenceValue = "reference"; - /// <summary> inline. </summary> + /// <summary> The content is given as a string (for instance, text). </summary> public static DocumentContentSourceType Inline { get; } = new DocumentContentSourceType(InlineValue); - /// <summary> reference. </summary> + /// <summary> The content is given as a URI. </summary> public static DocumentContentSourceType Reference { get; } = new DocumentContentSourceType(ReferenceValue); /// <summary> Determines if two <see cref="DocumentContentSourceType"/> values are the same. </summary> public static bool operator ==(DocumentContentSourceType left, DocumentContentSourceType right) => left.Equals(right); diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/DomainResource.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/DomainResource.cs new file mode 100644 index 0000000000000..3d6a9572541d7 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/DomainResource.cs @@ -0,0 +1,106 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.ClinicalMatching +{ + /// <summary> + /// A resource with narrative, extensions, and contained resources + /// Based on [FHIR DomainResource](https://www.hl7.org/fhir/domainresource.html) + /// Please note <see cref="DomainResource"/> 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 <see cref="ResearchStudy"/>. + /// </summary> + public abstract partial class DomainResource + { + /// <summary> Initializes a new instance of <see cref="DomainResource"/>. </summary> + protected DomainResource() + { + Contained = new ChangeTrackingList<Resource>(); + Extension = new ChangeTrackingList<Extension>(); + ModifierExtension = new ChangeTrackingList<Extension>(); + AdditionalProperties = new ChangeTrackingDictionary<string, BinaryData>(); + } + + /// <summary> Initializes a new instance of <see cref="DomainResource"/>. </summary> + /// <param name="resourceType"> The type of resource. </param> + /// <param name="id"> Resource Id. </param> + /// <param name="meta"> Metadata about the resource. </param> + /// <param name="implicitRules"> A set of rules under which this content was created. </param> + /// <param name="language"> Language of the resource content. </param> + /// <param name="text"> Text summary of the resource, for human interpretation. </param> + /// <param name="contained"> Contained, inline Resources. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="modifierExtension"> Extensions that cannot be ignored. </param> + /// <param name="additionalProperties"> Additional Properties. </param> + internal DomainResource(string resourceType, string id, Meta meta, string implicitRules, string language, Narrative text, IReadOnlyList<Resource> contained, IReadOnlyList<Extension> extension, IReadOnlyList<Extension> modifierExtension, IReadOnlyDictionary<string, BinaryData> additionalProperties) + { + ResourceType = resourceType; + Id = id; + Meta = meta; + ImplicitRules = implicitRules; + Language = language; + Text = text; + Contained = contained; + Extension = extension; + ModifierExtension = modifierExtension; + AdditionalProperties = additionalProperties; + } + + /// <summary> The type of resource. </summary> + internal string ResourceType { get; set; } + /// <summary> Resource Id. </summary> + public string Id { get; } + /// <summary> Metadata about the resource. </summary> + public Meta Meta { get; } + /// <summary> A set of rules under which this content was created. </summary> + public string ImplicitRules { get; } + /// <summary> Language of the resource content. </summary> + public string Language { get; } + /// <summary> Text summary of the resource, for human interpretation. </summary> + public Narrative Text { get; } + /// <summary> Contained, inline Resources. </summary> + public IReadOnlyList<Resource> Contained { get; } + /// <summary> Additional Content defined by implementations. </summary> + public IReadOnlyList<Extension> Extension { get; } + /// <summary> Extensions that cannot be ignored. </summary> + public IReadOnlyList<Extension> ModifierExtension { get; } + /// <summary> + /// Additional Properties + /// <para> + /// To assign an object to the value of this property use <see cref="BinaryData.FromObjectAsJson{T}(T, System.Text.Json.JsonSerializerOptions?)"/>. + /// </para> + /// <para> + /// To assign an already formatted json string to this property use <see cref="BinaryData.FromString(string)"/>. + /// </para> + /// <para> + /// Examples: + /// <list type="bullet"> + /// <item> + /// <term>BinaryData.FromObjectAsJson("foo")</term> + /// <description>Creates a payload of "foo".</description> + /// </item> + /// <item> + /// <term>BinaryData.FromString("\"foo\"")</term> + /// <description>Creates a payload of "foo".</description> + /// </item> + /// <item> + /// <term>BinaryData.FromObjectAsJson(new { key = "value" })</term> + /// <description>Creates a payload of { "key": "value" }.</description> + /// </item> + /// <item> + /// <term>BinaryData.FromString("{\"key\": \"value\"}")</term> + /// <description>Creates a payload of { "key": "value" }.</description> + /// </item> + /// </list> + /// </para> + /// </summary> + public IReadOnlyDictionary<string, BinaryData> AdditionalProperties { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialDetails.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Encounter.Serialization.cs similarity index 61% rename from sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialDetails.Serialization.cs rename to sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Encounter.Serialization.cs index 805d901af00d4..8bac539d80bf1 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialDetails.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Encounter.Serialization.cs @@ -10,25 +10,23 @@ namespace Azure.Health.Insights.ClinicalMatching { - public partial class ClinicalTrialDetails : IUtf8JsonSerializable + public partial class Encounter : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); writer.WritePropertyName("id"u8); writer.WriteStringValue(Id); - if (Optional.IsDefined(EligibilityCriteriaText)) + if (Optional.IsDefined(Period)) { - writer.WritePropertyName("eligibilityCriteriaText"u8); - writer.WriteStringValue(EligibilityCriteriaText); + writer.WritePropertyName("period"u8); + writer.WriteObjectValue(Period); } - if (Optional.IsDefined(Demographics)) + if (Optional.IsDefined(Class)) { - writer.WritePropertyName("demographics"u8); - writer.WriteObjectValue(Demographics); + writer.WritePropertyName("class"u8); + writer.WriteStringValue(Class.Value.ToString()); } - writer.WritePropertyName("metadata"u8); - writer.WriteObjectValue(Metadata); writer.WriteEndObject(); } diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Encounter.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Encounter.cs new file mode 100644 index 0000000000000..c9d333a18b658 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Encounter.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.Health.Insights.ClinicalMatching +{ + /// <summary> visit/encounter information. </summary> + public partial class Encounter + { + /// <summary> Initializes a new instance of <see cref="Encounter"/>. </summary> + /// <param name="id"> The id of the visit. </param> + /// <exception cref="ArgumentNullException"> <paramref name="id"/> is null. </exception> + public Encounter(string id) + { + Argument.AssertNotNull(id, nameof(id)); + + Id = id; + } + + /// <summary> Initializes a new instance of <see cref="Encounter"/>. </summary> + /// <param name="id"> The id of the visit. </param> + /// <param name="period"> + /// Time period of the visit. + /// In case of admission, use timePeriod.start to indicate the admission time and timePeriod.end to indicate the discharge time. + /// </param> + /// <param name="class"> The class of the encounter. </param> + internal Encounter(string id, TimePeriod period, EncounterClass? @class) + { + Id = id; + Period = period; + Class = @class; + } + + /// <summary> The id of the visit. </summary> + public string Id { get; } + /// <summary> + /// Time period of the visit. + /// In case of admission, use timePeriod.start to indicate the admission time and timePeriod.end to indicate the discharge time. + /// </summary> + public TimePeriod Period { get; set; } + /// <summary> The class of the encounter. </summary> + public EncounterClass? Class { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/EncounterClass.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/EncounterClass.cs new file mode 100644 index 0000000000000..3f60c5487c291 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/EncounterClass.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Health.Insights.ClinicalMatching +{ + /// <summary> Known values codes that can be used to indicate the class of encounter (TODO://Based on FHIR value set--http://....). </summary> + public readonly partial struct EncounterClass : IEquatable<EncounterClass> + { + private readonly string _value; + + /// <summary> Initializes a new instance of <see cref="EncounterClass"/>. </summary> + /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception> + public EncounterClass(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string InPatientValue = "inpatient"; + private const string AmbulatoryValue = "ambulatory"; + private const string ObservationValue = "observation"; + private const string EmergencyValue = "emergency"; + private const string VirtualValue = "virtual"; + private const string HealthHomeValue = "healthHome"; + + /// <summary> A patient encounter where a patient is admitted by a hospital or equivalent facility, assigned to a location where patients generally stay at least overnight and provided with room, board, and continuous nursing service. </summary> + public static EncounterClass InPatient { get; } = new EncounterClass(InPatientValue); + /// <summary> The term ambulatory usually implies that the patient has come to the location and is not assigned to a bed. Sometimes referred to as an outpatient encounter. </summary> + public static EncounterClass Ambulatory { get; } = new EncounterClass(AmbulatoryValue); + /// <summary> An encounter where the patient usually will start in different encounter, such as one in the emergency department but then transition to this type of encounter because they require a significant period of treatment and monitoring to determine whether or not their condition warrants an inpatient admission or discharge. </summary> + public static EncounterClass Observation { get; } = new EncounterClass(ObservationValue); + /// <summary> A patient encounter that takes place at a dedicated healthcare service delivery location where the patient receives immediate evaluation and treatment, provided until the patient can be discharged or responsibility for the patient's care is transferred elsewhere (for example, the patient could be admitted as an inpatient or transferred to another facility. </summary> + public static EncounterClass Emergency { get; } = new EncounterClass(EmergencyValue); + /// <summary> A patient encounter where the patient is not physically present for the encounter, such as in a telehealth encounter, phone call, or electronic communication. </summary> + public static EncounterClass Virtual { get; } = new EncounterClass(VirtualValue); + /// <summary> Healthcare encounter that takes place in the residence of the patient or a designee. </summary> + public static EncounterClass HealthHome { get; } = new EncounterClass(HealthHomeValue); + /// <summary> Determines if two <see cref="EncounterClass"/> values are the same. </summary> + public static bool operator ==(EncounterClass left, EncounterClass right) => left.Equals(right); + /// <summary> Determines if two <see cref="EncounterClass"/> values are not the same. </summary> + public static bool operator !=(EncounterClass left, EncounterClass right) => !left.Equals(right); + /// <summary> Converts a string to a <see cref="EncounterClass"/>. </summary> + public static implicit operator EncounterClass(string value) => new EncounterClass(value); + + /// <inheritdoc /> + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is EncounterClass other && Equals(other); + /// <inheritdoc /> + public bool Equals(EncounterClass other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// <inheritdoc /> + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// <inheritdoc /> + public override string ToString() => _value; + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Extension.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Extension.Serialization.cs new file mode 100644 index 0000000000000..0a54602d29f83 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Extension.Serialization.cs @@ -0,0 +1,96 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.ClinicalMatching +{ + public partial class Extension : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + writer.WritePropertyName("url"u8); + writer.WriteStringValue(Url); + if (Optional.IsDefined(ValueQuantity)) + { + writer.WritePropertyName("valueQuantity"u8); + writer.WriteObjectValue(ValueQuantity); + } + if (Optional.IsDefined(ValueCodeableConcept)) + { + writer.WritePropertyName("valueCodeableConcept"u8); + writer.WriteObjectValue(ValueCodeableConcept); + } + if (Optional.IsDefined(ValueString)) + { + writer.WritePropertyName("valueString"u8); + writer.WriteStringValue(ValueString); + } + if (Optional.IsDefined(ValueBoolean)) + { + writer.WritePropertyName("valueBoolean"u8); + writer.WriteBooleanValue(ValueBoolean.Value); + } + if (Optional.IsDefined(ValueInteger)) + { + writer.WritePropertyName("valueInteger"u8); + writer.WriteNumberValue(ValueInteger.Value); + } + if (Optional.IsDefined(ValueRange)) + { + writer.WritePropertyName("valueRange"u8); + writer.WriteObjectValue(ValueRange); + } + if (Optional.IsDefined(ValueRatio)) + { + writer.WritePropertyName("valueRatio"u8); + writer.WriteObjectValue(ValueRatio); + } + if (Optional.IsDefined(ValueSampledData)) + { + writer.WritePropertyName("valueSampledData"u8); + writer.WriteObjectValue(ValueSampledData); + } + if (Optional.IsDefined(ValueTime)) + { + writer.WritePropertyName("valueTime"u8); + writer.WriteStringValue(ValueTime.Value, "T"); + } + if (Optional.IsDefined(ValueDateTime)) + { + writer.WritePropertyName("valueDateTime"u8); + writer.WriteStringValue(ValueDateTime); + } + if (Optional.IsDefined(ValuePeriod)) + { + writer.WritePropertyName("valuePeriod"u8); + writer.WriteObjectValue(ValuePeriod); + } + if (Optional.IsDefined(ValueReference)) + { + writer.WritePropertyName("valueReference"u8); + writer.WriteObjectValue(ValueReference); + } + writer.WriteEndObject(); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Extension.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Extension.cs new file mode 100644 index 0000000000000..0d52c062ee41f --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Extension.cs @@ -0,0 +1,91 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.Health.Insights.ClinicalMatching +{ + /// <summary> + /// Base for all elements + /// Based on [FHIR Element](https://www.hl7.org/fhir/datatypes.html#Element) + /// </summary> + public partial class Extension + { + /// <summary> Initializes a new instance of <see cref="Extension"/>. </summary> + /// <param name="url"> Source of the definition for the extension code - a logical name or a URL. </param> + /// <exception cref="ArgumentNullException"> <paramref name="url"/> is null. </exception> + public Extension(string url) + { + Argument.AssertNotNull(url, nameof(url)); + + Url = url; + } + + /// <summary> Initializes a new instance of <see cref="Extension"/>. </summary> + /// <param name="id"> Unique id for inter-element referencing. </param> + /// <param name="url"> Source of the definition for the extension code - a logical name or a URL. </param> + /// <param name="valueQuantity"> Value as Quantity. </param> + /// <param name="valueCodeableConcept"> Value as CodeableConcept. </param> + /// <param name="valueString"> Value as string. </param> + /// <param name="valueBoolean"> Value as boolean. </param> + /// <param name="valueInteger"> Value as integer. </param> + /// <param name="valueRange"> Value as Range. </param> + /// <param name="valueRatio"> Value as Ratio. </param> + /// <param name="valueSampledData"> Value as SampledData. </param> + /// <param name="valueTime"> Value as time (hh:mm:ss). </param> + /// <param name="valueDateTime"> Value as dateTime. </param> + /// <param name="valuePeriod"> Value as Period. </param> + /// <param name="valueReference"> Value as reference. </param> + internal Extension(string id, string url, Quantity valueQuantity, CodeableConcept valueCodeableConcept, string valueString, bool? valueBoolean, int? valueInteger, Range valueRange, Ratio valueRatio, SampledData valueSampledData, TimeSpan? valueTime, string valueDateTime, Period valuePeriod, Reference valueReference) + { + Id = id; + Url = url; + ValueQuantity = valueQuantity; + ValueCodeableConcept = valueCodeableConcept; + ValueString = valueString; + ValueBoolean = valueBoolean; + ValueInteger = valueInteger; + ValueRange = valueRange; + ValueRatio = valueRatio; + ValueSampledData = valueSampledData; + ValueTime = valueTime; + ValueDateTime = valueDateTime; + ValuePeriod = valuePeriod; + ValueReference = valueReference; + } + + /// <summary> Unique id for inter-element referencing. </summary> + public string Id { get; set; } + /// <summary> Source of the definition for the extension code - a logical name or a URL. </summary> + public string Url { get; } + /// <summary> Value as Quantity. </summary> + public Quantity ValueQuantity { get; set; } + /// <summary> Value as CodeableConcept. </summary> + public CodeableConcept ValueCodeableConcept { get; set; } + /// <summary> Value as string. </summary> + public string ValueString { get; set; } + /// <summary> Value as boolean. </summary> + public bool? ValueBoolean { get; set; } + /// <summary> Value as integer. </summary> + public int? ValueInteger { get; set; } + /// <summary> Value as Range. </summary> + public Range ValueRange { get; set; } + /// <summary> Value as Ratio. </summary> + public Ratio ValueRatio { get; set; } + /// <summary> Value as SampledData. </summary> + public SampledData ValueSampledData { get; set; } + /// <summary> Value as time (hh:mm:ss). </summary> + public TimeSpan? ValueTime { get; set; } + /// <summary> Value as dateTime. </summary> + public string ValueDateTime { get; set; } + /// <summary> Value as Period. </summary> + public Period ValuePeriod { get; set; } + /// <summary> Value as reference. </summary> + public Reference ValueReference { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/HealthInsightsClinicalMatchingModelFactory.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/HealthInsightsClinicalMatchingModelFactory.cs index 4810744645d54..aaca6988c90e0 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/HealthInsightsClinicalMatchingModelFactory.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/HealthInsightsClinicalMatchingModelFactory.cs @@ -15,29 +15,29 @@ namespace Azure.Health.Insights.ClinicalMatching /// <summary> Model factory for models. </summary> public static partial class HealthInsightsClinicalMatchingModelFactory { - /// <summary> Initializes a new instance of <see cref="ClinicalMatching.TrialMatcherResults"/>. </summary> - /// <param name="patients"> Results for the patients given in the request. </param> + /// <summary> Initializes a new instance of <see cref="ClinicalMatching.TrialMatcherInferenceResult"/>. </summary> + /// <param name="patientResults"> Results for the patients given in the request. </param> /// <param name="modelVersion"> The version of the model used for inference, expressed as the model date. </param> /// <param name="knowledgeGraphLastUpdateDate"> The date when the clinical trials knowledge graph was last updated. </param> - /// <returns> A new <see cref="ClinicalMatching.TrialMatcherResults"/> instance for mocking. </returns> - public static TrialMatcherResults TrialMatcherResults(IEnumerable<TrialMatcherPatientResult> patients = null, string modelVersion = null, DateTimeOffset? knowledgeGraphLastUpdateDate = null) + /// <returns> A new <see cref="ClinicalMatching.TrialMatcherInferenceResult"/> instance for mocking. </returns> + public static TrialMatcherInferenceResult TrialMatcherInferenceResult(IEnumerable<TrialMatcherPatientResult> patientResults = null, string modelVersion = null, DateTimeOffset? knowledgeGraphLastUpdateDate = null) { - patients ??= new List<TrialMatcherPatientResult>(); + patientResults ??= new List<TrialMatcherPatientResult>(); - return new TrialMatcherResults(patients?.ToList(), modelVersion, knowledgeGraphLastUpdateDate); + return new TrialMatcherInferenceResult(patientResults?.ToList(), modelVersion, knowledgeGraphLastUpdateDate); } /// <summary> Initializes a new instance of <see cref="ClinicalMatching.TrialMatcherPatientResult"/>. </summary> - /// <param name="id"> The identifier given for the patient in the request. </param> - /// <param name="inferences"> The model's inferences for the given patient. </param> + /// <param name="patientId"> The identifier given for the patient in the request. </param> + /// <param name="inferences"> The inference results for the patient. </param> /// <param name="neededClinicalInfo"> Clinical information which is needed to provide better trial matching results for the patient. </param> /// <returns> A new <see cref="ClinicalMatching.TrialMatcherPatientResult"/> instance for mocking. </returns> - public static TrialMatcherPatientResult TrialMatcherPatientResult(string id = null, IEnumerable<TrialMatcherInference> inferences = null, IEnumerable<ExtendedClinicalCodedElement> neededClinicalInfo = null) + public static TrialMatcherPatientResult TrialMatcherPatientResult(string patientId = null, IEnumerable<TrialMatcherInference> inferences = null, IEnumerable<ExtendedClinicalCodedElement> neededClinicalInfo = null) { inferences ??= new List<TrialMatcherInference>(); neededClinicalInfo ??= new List<ExtendedClinicalCodedElement>(); - return new TrialMatcherPatientResult(id, inferences?.ToList(), neededClinicalInfo?.ToList()); + return new TrialMatcherPatientResult(patientId, inferences?.ToList(), neededClinicalInfo?.ToList()); } /// <summary> Initializes a new instance of <see cref="ClinicalMatching.TrialMatcherInference"/>. </summary> @@ -46,15 +46,15 @@ public static TrialMatcherPatientResult TrialMatcherPatientResult(string id = nu /// <param name="description"> The description corresponding to the inference value. </param> /// <param name="confidenceScore"> Confidence score for this inference. </param> /// <param name="evidence"> The evidence corresponding to the inference value. </param> - /// <param name="id"> The identifier of the clinical trial. </param> + /// <param name="clinicalTrialId"> The identifier of the clinical trial. </param> /// <param name="source"> Possible sources of a clinical trial. </param> /// <param name="metadata"> Trial data which is of interest to the potential participant. </param> /// <returns> A new <see cref="ClinicalMatching.TrialMatcherInference"/> instance for mocking. </returns> - public static TrialMatcherInference TrialMatcherInference(TrialMatcherInferenceType type = default, string value = null, string description = null, float? confidenceScore = null, IEnumerable<TrialMatcherInferenceEvidence> evidence = null, string id = null, ClinicalTrialSource? source = null, ClinicalTrialMetadata metadata = null) + public static TrialMatcherInference TrialMatcherInference(string type = null, string value = null, string description = null, float? confidenceScore = null, IEnumerable<TrialMatcherInferenceEvidence> evidence = null, string clinicalTrialId = null, ClinicalTrialSource? source = null, ClinicalTrialMetadata metadata = null) { evidence ??= new List<TrialMatcherInferenceEvidence>(); - return new TrialMatcherInference(type, value, description, confidenceScore, evidence?.ToList(), id, source, metadata); + return new TrialMatcherInference(type, value, description, confidenceScore, evidence?.ToList(), clinicalTrialId, source, metadata); } /// <summary> Initializes a new instance of <see cref="ClinicalMatching.TrialMatcherInferenceEvidence"/>. </summary> @@ -82,6 +82,61 @@ public static ClinicalNoteEvidence ClinicalNoteEvidence(string id = null, string return new ClinicalNoteEvidence(id, text, offset, length); } + /// <summary> Initializes a new instance of <see cref="ClinicalMatching.ClinicalCodedElement"/>. </summary> + /// <param name="system"> The clinical coding system, e.g. ICD-10, SNOMED-CT, UMLS. </param> + /// <param name="code"> The code within the given clinical coding system. </param> + /// <param name="name"> The name of this coded concept in the coding system. </param> + /// <param name="value"> A value associated with the code within the given clinical coding system. </param> + /// <returns> A new <see cref="ClinicalMatching.ClinicalCodedElement"/> instance for mocking. </returns> + public static ClinicalCodedElement ClinicalCodedElement(string system = null, string code = null, string name = null, string value = null) + { + return new ClinicalCodedElement(system, code, name, value); + } + + /// <summary> Initializes a new instance of <see cref="ClinicalMatching.ClinicalTrialMetadata"/>. </summary> + /// <param name="phases"> + /// Phases which are relevant for the clinical trial. + /// Each clinical trial can be in a certain phase or in multiple phases. + /// </param> + /// <param name="studyType"> Possible study types of a clinical trial. </param> + /// <param name="recruitmentStatus"> Possible recruitment status of a clinical trial. </param> + /// <param name="conditions"> Medical conditions and their synonyms which are relevant for the clinical trial, given as strings. </param> + /// <param name="sponsors"> Sponsors/collaborators involved with the trial. </param> + /// <param name="contacts"> Contact details of the trial administrators, for patients that want to participate in the trial. </param> + /// <param name="facilities"> Research facilities where the clinical trial is conducted. </param> + /// <returns> A new <see cref="ClinicalMatching.ClinicalTrialMetadata"/> instance for mocking. </returns> + public static ClinicalTrialMetadata ClinicalTrialMetadata(IEnumerable<ClinicalTrialPhase> phases = null, ClinicalTrialStudyType? studyType = null, ClinicalTrialRecruitmentStatus? recruitmentStatus = null, IEnumerable<string> conditions = null, IEnumerable<string> sponsors = null, IEnumerable<ContactDetails> contacts = null, IEnumerable<ClinicalTrialResearchFacility> facilities = null) + { + phases ??= new List<ClinicalTrialPhase>(); + conditions ??= new List<string>(); + sponsors ??= new List<string>(); + contacts ??= new List<ContactDetails>(); + facilities ??= new List<ClinicalTrialResearchFacility>(); + + return new ClinicalTrialMetadata(phases?.ToList(), studyType, recruitmentStatus, conditions?.ToList(), sponsors?.ToList(), contacts?.ToList(), facilities?.ToList()); + } + + /// <summary> Initializes a new instance of <see cref="ClinicalMatching.ContactDetails"/>. </summary> + /// <param name="name"> The person's name. </param> + /// <param name="email"> The person's email. </param> + /// <param name="phone"> A person's phone number. </param> + /// <returns> A new <see cref="ClinicalMatching.ContactDetails"/> instance for mocking. </returns> + public static ContactDetails ContactDetails(string name = null, string email = null, string phone = null) + { + return new ContactDetails(name, email, phone); + } + + /// <summary> Initializes a new instance of <see cref="ClinicalMatching.ClinicalTrialResearchFacility"/>. </summary> + /// <param name="name"> The facility's name. </param> + /// <param name="city"> City name. </param> + /// <param name="state"> State name. </param> + /// <param name="countryOrRegion"> Country/region name. </param> + /// <returns> A new <see cref="ClinicalMatching.ClinicalTrialResearchFacility"/> instance for mocking. </returns> + public static ClinicalTrialResearchFacility ClinicalTrialResearchFacility(string name = null, string city = null, string state = null, string countryOrRegion = null) + { + return new ClinicalTrialResearchFacility(name, city, state, countryOrRegion); + } + /// <summary> Initializes a new instance of <see cref="ClinicalMatching.ExtendedClinicalCodedElement"/>. </summary> /// <param name="system"> The clinical coding system, e.g. ICD-10, SNOMED-CT, UMLS. </param> /// <param name="code"> The code within the given clinical coding system. </param> diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Identifier.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Identifier.Serialization.cs new file mode 100644 index 0000000000000..a38f1220892c4 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Identifier.Serialization.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.ClinicalMatching +{ + public partial class Identifier : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsDefined(Use)) + { + writer.WritePropertyName("use"u8); + writer.WriteStringValue(Use); + } + if (Optional.IsDefined(Type)) + { + writer.WritePropertyName("type"u8); + writer.WriteObjectValue(Type); + } + if (Optional.IsDefined(System)) + { + writer.WritePropertyName("system"u8); + writer.WriteStringValue(System); + } + if (Optional.IsDefined(Value)) + { + writer.WritePropertyName("value"u8); + writer.WriteStringValue(Value); + } + if (Optional.IsDefined(Period)) + { + writer.WritePropertyName("period"u8); + writer.WriteObjectValue(Period); + } + if (Optional.IsDefined(Assigner)) + { + writer.WritePropertyName("assigner"u8); + writer.WriteObjectValue(Assigner); + } + writer.WriteEndObject(); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Identifier.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Identifier.cs new file mode 100644 index 0000000000000..f391cf461a232 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Identifier.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +namespace Azure.Health.Insights.ClinicalMatching +{ + /// <summary> + /// An identifier intended for computation + /// Based on [FHIR Identifier](https://www.hl7.org/fhir/R4/identifier.html) + /// </summary> + public partial class Identifier + { + /// <summary> Initializes a new instance of <see cref="Identifier"/>. </summary> + public Identifier() + { + } + + /// <summary> Initializes a new instance of <see cref="Identifier"/>. </summary> + /// <param name="id"> Unique id for inter-element referencing. </param> + /// <param name="use"> usual | official | temp | secondary | old (If known). </param> + /// <param name="type"> Description of identifier. </param> + /// <param name="system"> The namespace for the identifier value. </param> + /// <param name="value"> The value that is unique. </param> + /// <param name="period"> Time period when id is/was valid for use. </param> + /// <param name="assigner"> Organization that issued id (may be just text). </param> + internal Identifier(string id, string use, CodeableConcept type, string system, string value, Period period, Reference assigner) + { + Id = id; + Use = use; + Type = type; + System = system; + Value = value; + Period = period; + Assigner = assigner; + } + + /// <summary> Unique id for inter-element referencing. </summary> + public string Id { get; set; } + /// <summary> usual | official | temp | secondary | old (If known). </summary> + public string Use { get; set; } + /// <summary> Description of identifier. </summary> + public CodeableConcept Type { get; set; } + /// <summary> The namespace for the identifier value. </summary> + public string System { get; set; } + /// <summary> The value that is unique. </summary> + public string Value { get; set; } + /// <summary> Time period when id is/was valid for use. </summary> + public Period Period { get; set; } + /// <summary> Organization that issued id (may be just text). </summary> + public Reference Assigner { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Meta.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Meta.Serialization.cs new file mode 100644 index 0000000000000..4ce138dd95a42 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Meta.Serialization.cs @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.ClinicalMatching +{ + public partial class Meta : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(VersionId)) + { + writer.WritePropertyName("versionId"u8); + writer.WriteStringValue(VersionId); + } + if (Optional.IsDefined(LastUpdated)) + { + writer.WritePropertyName("lastUpdated"u8); + writer.WriteStringValue(LastUpdated); + } + if (Optional.IsDefined(Source)) + { + writer.WritePropertyName("source"u8); + writer.WriteStringValue(Source); + } + if (Optional.IsCollectionDefined(Profile)) + { + writer.WritePropertyName("profile"u8); + writer.WriteStartArray(); + foreach (var item in Profile) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(Security)) + { + writer.WritePropertyName("security"u8); + writer.WriteStartArray(); + foreach (var item in Security) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(Tag)) + { + writer.WritePropertyName("tag"u8); + writer.WriteStartArray(); + foreach (var item in Tag) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Meta.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Meta.cs new file mode 100644 index 0000000000000..0eb746035687a --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Meta.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.ClinicalMatching +{ + /// <summary> + /// Metadata about a resource + /// Based on [FHIR Meta](https://www.hl7.org/fhir/R4/resource.html#Meta) + /// </summary> + public partial class Meta + { + /// <summary> Initializes a new instance of <see cref="Meta"/>. </summary> + public Meta() + { + Profile = new ChangeTrackingList<string>(); + Security = new ChangeTrackingList<Coding>(); + Tag = new ChangeTrackingList<Coding>(); + } + + /// <summary> Initializes a new instance of <see cref="Meta"/>. </summary> + /// <param name="versionId"> The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted. </param> + /// <param name="lastUpdated"> When the resource last changed - e.g. when the version changed. </param> + /// <param name="source"> A uri that identifies the source system of the resource. This provides a minimal amount of Provenance information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc. </param> + /// <param name="profile"> A list of profiles (references to [StructureDefinition](https://www.hl7.org/fhir/structuredefinition.html) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](https://www.hl7.org/fhir/structuredefinition-definitions.html#StructureDefinition.url). </param> + /// <param name="security"> Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure. </param> + /// <param name="tag"> Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource. </param> + internal Meta(string versionId, string lastUpdated, string source, IList<string> profile, IList<Coding> security, IList<Coding> tag) + { + VersionId = versionId; + LastUpdated = lastUpdated; + Source = source; + Profile = profile; + Security = security; + Tag = tag; + } + + /// <summary> The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted. </summary> + public string VersionId { get; set; } + /// <summary> When the resource last changed - e.g. when the version changed. </summary> + public string LastUpdated { get; set; } + /// <summary> A uri that identifies the source system of the resource. This provides a minimal amount of Provenance information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc. </summary> + public string Source { get; set; } + /// <summary> A list of profiles (references to [StructureDefinition](https://www.hl7.org/fhir/structuredefinition.html) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](https://www.hl7.org/fhir/structuredefinition-definitions.html#StructureDefinition.url). </summary> + public IList<string> Profile { get; } + /// <summary> Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure. </summary> + public IList<Coding> Security { get; } + /// <summary> Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource. </summary> + public IList<Coding> Tag { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Narrative.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Narrative.Serialization.cs new file mode 100644 index 0000000000000..fd3d018d4c21b --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Narrative.Serialization.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.ClinicalMatching +{ + public partial class Narrative : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + writer.WritePropertyName("status"u8); + writer.WriteStringValue(Status); + writer.WritePropertyName("div"u8); + writer.WriteStringValue(Div); + writer.WriteEndObject(); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Narrative.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Narrative.cs new file mode 100644 index 0000000000000..f46f28da4b104 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Narrative.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.ClinicalMatching +{ + /// <summary> + /// Any resource that is a [DomainResource](https://www.hl7.org/fhir/domainresource.html) may include a human-readable narrative that contains a summary of the resource and may be used to represent the content of the resource to a human. + /// Based on [FHIR Narrative](https://www.hl7.org/fhir/R4/narrative.html#Narrative) + /// </summary> + public partial class Narrative + { + /// <summary> Initializes a new instance of <see cref="Narrative"/>. </summary> + /// <param name="status"> generated, extensions, additional, empty. </param> + /// <param name="div"> xhtml. </param> + /// <exception cref="ArgumentNullException"> <paramref name="status"/> or <paramref name="div"/> is null. </exception> + public Narrative(string status, string div) + { + Argument.AssertNotNull(status, nameof(status)); + Argument.AssertNotNull(div, nameof(div)); + + Extension = new ChangeTrackingList<Extension>(); + Status = status; + Div = div; + } + + /// <summary> Initializes a new instance of <see cref="Narrative"/>. </summary> + /// <param name="id"> Unique id for inter-element referencing. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="status"> generated, extensions, additional, empty. </param> + /// <param name="div"> xhtml. </param> + internal Narrative(string id, IList<Extension> extension, string status, string div) + { + Id = id; + Extension = extension; + Status = status; + Div = div; + } + + /// <summary> Unique id for inter-element referencing. </summary> + public string Id { get; set; } + /// <summary> Additional Content defined by implementations. </summary> + public IList<Extension> Extension { get; } + /// <summary> generated, extensions, additional, empty. </summary> + public string Status { get; } + /// <summary> xhtml. </summary> + public string Div { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/OrderedProcedure.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/OrderedProcedure.Serialization.cs new file mode 100644 index 0000000000000..dbe8a528dd7e7 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/OrderedProcedure.Serialization.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.ClinicalMatching +{ + public partial class OrderedProcedure : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(Code)) + { + writer.WritePropertyName("code"u8); + writer.WriteObjectValue(Code); + } + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + writer.WriteEndObject(); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/OrderedProcedure.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/OrderedProcedure.cs new file mode 100644 index 0000000000000..7be620c9086f8 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/OrderedProcedure.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.ClinicalMatching +{ + /// <summary> Procedure information. </summary> + public partial class OrderedProcedure + { + /// <summary> Initializes a new instance of <see cref="OrderedProcedure"/>. </summary> + public OrderedProcedure() + { + Extension = new ChangeTrackingList<Extension>(); + } + + /// <summary> Initializes a new instance of <see cref="OrderedProcedure"/>. </summary> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="code"> Procedure code. </param> + /// <param name="description"> Procedure description. </param> + internal OrderedProcedure(IList<Extension> extension, CodeableConcept code, string description) + { + Extension = extension; + Code = code; + Description = description; + } + + /// <summary> Additional Content defined by implementations. </summary> + public IList<Extension> Extension { get; } + /// <summary> Procedure code. </summary> + public CodeableConcept Code { get; set; } + /// <summary> Procedure description. </summary> + public string Description { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/PatientDocument.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/PatientDocument.Serialization.cs index 5caf98010b032..008bb3af3b629 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/PatientDocument.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/PatientDocument.Serialization.cs @@ -34,6 +34,26 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("createdDateTime"u8); writer.WriteStringValue(CreatedDateTime.Value, "O"); } + if (Optional.IsCollectionDefined(Authors)) + { + writer.WritePropertyName("authors"u8); + writer.WriteStartArray(); + foreach (var item in Authors) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(SpecialtyType)) + { + writer.WritePropertyName("specialtyType"u8); + writer.WriteStringValue(SpecialtyType.Value.ToString()); + } + if (Optional.IsDefined(AdministrativeMetadata)) + { + writer.WritePropertyName("administrativeMetadata"u8); + writer.WriteObjectValue(AdministrativeMetadata); + } writer.WritePropertyName("content"u8); writer.WriteObjectValue(Content); writer.WriteEndObject(); diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/PatientDocument.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/PatientDocument.cs index 658d1351e6271..15c2d242e35a7 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/PatientDocument.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/PatientDocument.cs @@ -6,6 +6,7 @@ #nullable disable using System; +using System.Collections.Generic; using Azure.Core; namespace Azure.Health.Insights.ClinicalMatching @@ -25,6 +26,7 @@ public PatientDocument(DocumentType type, string id, DocumentContent content) Type = type; Id = id; + Authors = new ChangeTrackingList<DocumentAuthor>(); Content = content; } @@ -34,14 +36,20 @@ public PatientDocument(DocumentType type, string id, DocumentContent content) /// <param name="id"> A given identifier for the document. Has to be unique across all documents for a single patient. </param> /// <param name="language"> A 2 letter ISO 639-1 representation of the language of the document. </param> /// <param name="createdDateTime"> The date and time when the document was created. </param> + /// <param name="authors"> Document author(s). </param> + /// <param name="specialtyType"> specialty type the document. </param> + /// <param name="administrativeMetadata"> Administrative metadata for the document. </param> /// <param name="content"> The content of the patient document. </param> - internal PatientDocument(DocumentType type, ClinicalDocumentType? clinicalType, string id, string language, DateTimeOffset? createdDateTime, DocumentContent content) + internal PatientDocument(DocumentType type, ClinicalDocumentType? clinicalType, string id, string language, DateTimeOffset? createdDateTime, IList<DocumentAuthor> authors, SpecialtyType? specialtyType, DocumentAdministrativeMetadata administrativeMetadata, DocumentContent content) { Type = type; ClinicalType = clinicalType; Id = id; Language = language; CreatedDateTime = createdDateTime; + Authors = authors; + SpecialtyType = specialtyType; + AdministrativeMetadata = administrativeMetadata; Content = content; } @@ -55,6 +63,12 @@ internal PatientDocument(DocumentType type, ClinicalDocumentType? clinicalType, public string Language { get; set; } /// <summary> The date and time when the document was created. </summary> public DateTimeOffset? CreatedDateTime { get; set; } + /// <summary> Document author(s). </summary> + public IList<DocumentAuthor> Authors { get; } + /// <summary> specialty type the document. </summary> + public SpecialtyType? SpecialtyType { get; set; } + /// <summary> Administrative metadata for the document. </summary> + public DocumentAdministrativeMetadata AdministrativeMetadata { get; set; } /// <summary> The content of the patient document. </summary> public DocumentContent Content { get; } } diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/PatientInfo.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/PatientInfo.cs index 2e63b4ca22077..08b9a57e19ac3 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/PatientInfo.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/PatientInfo.cs @@ -17,14 +17,14 @@ public partial class PatientInfo /// <summary> Initializes a new instance of <see cref="PatientInfo"/>. </summary> public PatientInfo() { - ClinicalInfo = new ChangeTrackingList<ClinicalCodedElement>(); + ClinicalInfo = new ChangeTrackingList<Resource>(); } /// <summary> Initializes a new instance of <see cref="PatientInfo"/>. </summary> /// <param name="sex"> The patient's sex. </param> /// <param name="birthDate"> The patient's date of birth. </param> /// <param name="clinicalInfo"> Known clinical information for the patient, structured. </param> - internal PatientInfo(PatientInfoSex? sex, DateTimeOffset? birthDate, IList<ClinicalCodedElement> clinicalInfo) + internal PatientInfo(PatientInfoSex? sex, DateTimeOffset? birthDate, IList<Resource> clinicalInfo) { Sex = sex; BirthDate = birthDate; @@ -36,6 +36,6 @@ internal PatientInfo(PatientInfoSex? sex, DateTimeOffset? birthDate, IList<Clini /// <summary> The patient's date of birth. </summary> public DateTimeOffset? BirthDate { get; set; } /// <summary> Known clinical information for the patient, structured. </summary> - public IList<ClinicalCodedElement> ClinicalInfo { get; } + public IList<Resource> ClinicalInfo { get; } } } diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/PatientRecord.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/PatientRecord.Serialization.cs index bda61a432c73a..d3bfd502c1ddc 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/PatientRecord.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/PatientRecord.Serialization.cs @@ -22,11 +22,21 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("info"u8); writer.WriteObjectValue(Info); } - if (Optional.IsCollectionDefined(Data)) + if (Optional.IsCollectionDefined(Encounters)) { - writer.WritePropertyName("data"u8); + writer.WritePropertyName("encounters"u8); writer.WriteStartArray(); - foreach (var item in Data) + foreach (var item in Encounters) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(PatientDocuments)) + { + writer.WritePropertyName("patientDocuments"u8); + writer.WriteStartArray(); + foreach (var item in PatientDocuments) { writer.WriteObjectValue(item); } diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/PatientRecord.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/PatientRecord.cs index 015afb1124de5..e7d4f2d37535f 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/PatientRecord.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/PatientRecord.cs @@ -22,25 +22,30 @@ public PatientRecord(string id) Argument.AssertNotNull(id, nameof(id)); Id = id; - Data = new ChangeTrackingList<PatientDocument>(); + Encounters = new ChangeTrackingList<Encounter>(); + PatientDocuments = new ChangeTrackingList<PatientDocument>(); } /// <summary> Initializes a new instance of <see cref="PatientRecord"/>. </summary> /// <param name="id"> A given identifier for the patient. Has to be unique across all patients in a single request. </param> /// <param name="info"> Patient structured information, including demographics and known structured clinical information. </param> - /// <param name="data"> Patient unstructured clinical data, given as documents. </param> - internal PatientRecord(string id, PatientInfo info, IList<PatientDocument> data) + /// <param name="encounters"> Patient encounters/visits. </param> + /// <param name="patientDocuments"> Patient unstructured clinical data, given as documents. </param> + internal PatientRecord(string id, PatientInfo info, IList<Encounter> encounters, IList<PatientDocument> patientDocuments) { Id = id; Info = info; - Data = data; + Encounters = encounters; + PatientDocuments = patientDocuments; } /// <summary> A given identifier for the patient. Has to be unique across all patients in a single request. </summary> public string Id { get; } /// <summary> Patient structured information, including demographics and known structured clinical information. </summary> public PatientInfo Info { get; set; } + /// <summary> Patient encounters/visits. </summary> + public IList<Encounter> Encounters { get; } /// <summary> Patient unstructured clinical data, given as documents. </summary> - public IList<PatientDocument> Data { get; } + public IList<PatientDocument> PatientDocuments { get; } } } diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Period.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Period.Serialization.cs new file mode 100644 index 0000000000000..587cd9238014a --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Period.Serialization.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.ClinicalMatching +{ + public partial class Period : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsDefined(Start)) + { + writer.WritePropertyName("start"u8); + writer.WriteStringValue(Start); + } + if (Optional.IsDefined(End)) + { + writer.WritePropertyName("end"u8); + writer.WriteStringValue(End); + } + writer.WriteEndObject(); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Period.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Period.cs new file mode 100644 index 0000000000000..049d1bbc142c4 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Period.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +namespace Azure.Health.Insights.ClinicalMatching +{ + /// <summary> + /// A time period defined by a start and end date and optionally time + /// Based on [FHIR Period](https://www.hl7.org/fhir/R4/datatypes.html#Period) + /// </summary> + public partial class Period + { + /// <summary> Initializes a new instance of <see cref="Period"/>. </summary> + public Period() + { + } + + /// <summary> Initializes a new instance of <see cref="Period"/>. </summary> + /// <param name="id"> Unique id for inter-element referencing. </param> + /// <param name="start"> Starting time with inclusive boundary. </param> + /// <param name="end"> End time with inclusive boundary, if not ongoing. </param> + internal Period(string id, string start, string end) + { + Id = id; + Start = start; + End = end; + } + + /// <summary> Unique id for inter-element referencing. </summary> + public string Id { get; set; } + /// <summary> Starting time with inclusive boundary. </summary> + public string Start { get; set; } + /// <summary> End time with inclusive boundary, if not ongoing. </summary> + public string End { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Quantity.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Quantity.Serialization.cs new file mode 100644 index 0000000000000..659446f78d4cb --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Quantity.Serialization.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.ClinicalMatching +{ + public partial class Quantity : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsDefined(Value)) + { + writer.WritePropertyName("value"u8); + writer.WriteNumberValue(Value.Value); + } + if (Optional.IsDefined(Comparator)) + { + writer.WritePropertyName("comparator"u8); + writer.WriteStringValue(Comparator); + } + if (Optional.IsDefined(Unit)) + { + writer.WritePropertyName("unit"u8); + writer.WriteStringValue(Unit); + } + if (Optional.IsDefined(System)) + { + writer.WritePropertyName("system"u8); + writer.WriteStringValue(System); + } + if (Optional.IsDefined(Code)) + { + writer.WritePropertyName("code"u8); + writer.WriteStringValue(Code); + } + writer.WriteEndObject(); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Quantity.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Quantity.cs new file mode 100644 index 0000000000000..f2e6fb6e5da78 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Quantity.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +namespace Azure.Health.Insights.ClinicalMatching +{ + /// <summary> + /// A measured or measurable amount + /// Based on [FHIR Quantity](https://www.hl7.org/fhir/R4/datatypes.html#Quantity) + /// </summary> + public partial class Quantity + { + /// <summary> Initializes a new instance of <see cref="Quantity"/>. </summary> + public Quantity() + { + } + + /// <summary> Initializes a new instance of <see cref="Quantity"/>. </summary> + /// <param name="id"> Unique id for inter-element referencing. </param> + /// <param name="value"> Numerical value (with implicit precision). </param> + /// <param name="comparator"> < | <= | >= | > - how to understand the value. </param> + /// <param name="unit"> Unit representation. </param> + /// <param name="system"> System that defines coded unit form. </param> + /// <param name="code"> Coded form of the unit. </param> + internal Quantity(string id, decimal? value, string comparator, string unit, string system, string code) + { + Id = id; + Value = value; + Comparator = comparator; + Unit = unit; + System = system; + Code = code; + } + + /// <summary> Unique id for inter-element referencing. </summary> + public string Id { get; set; } + /// <summary> Numerical value (with implicit precision). </summary> + public decimal? Value { get; set; } + /// <summary> < | <= | >= | > - how to understand the value. </summary> + public string Comparator { get; set; } + /// <summary> Unit representation. </summary> + public string Unit { get; set; } + /// <summary> System that defines coded unit form. </summary> + public string System { get; set; } + /// <summary> Coded form of the unit. </summary> + public string Code { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Range.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Range.Serialization.cs new file mode 100644 index 0000000000000..f13f924b705f0 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Range.Serialization.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.ClinicalMatching +{ + public partial class Range : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsDefined(Low)) + { + writer.WritePropertyName("low"u8); + writer.WriteObjectValue(Low); + } + if (Optional.IsDefined(High)) + { + writer.WritePropertyName("high"u8); + writer.WriteObjectValue(High); + } + writer.WriteEndObject(); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Range.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Range.cs new file mode 100644 index 0000000000000..fb10a9df893f9 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Range.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +namespace Azure.Health.Insights.ClinicalMatching +{ + /// <summary> + /// A set of ordered Quantities defined by a low and high limit + /// Based on [FHIR Range](https://www.hl7.org/fhir/R4/datatypes.html#Range) + /// </summary> + public partial class Range + { + /// <summary> Initializes a new instance of <see cref="Range"/>. </summary> + public Range() + { + } + + /// <summary> Initializes a new instance of <see cref="Range"/>. </summary> + /// <param name="id"> Unique id for inter-element referencing. </param> + /// <param name="low"> Low limit. </param> + /// <param name="high"> High limit. </param> + internal Range(string id, Quantity low, Quantity high) + { + Id = id; + Low = low; + High = high; + } + + /// <summary> Unique id for inter-element referencing. </summary> + public string Id { get; set; } + /// <summary> Low limit. </summary> + public Quantity Low { get; set; } + /// <summary> High limit. </summary> + public Quantity High { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Ratio.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Ratio.Serialization.cs new file mode 100644 index 0000000000000..559692e766b47 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Ratio.Serialization.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.ClinicalMatching +{ + public partial class Ratio : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsDefined(Numerator)) + { + writer.WritePropertyName("numerator"u8); + writer.WriteObjectValue(Numerator); + } + if (Optional.IsDefined(Denominator)) + { + writer.WritePropertyName("denominator"u8); + writer.WriteObjectValue(Denominator); + } + writer.WriteEndObject(); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Ratio.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Ratio.cs new file mode 100644 index 0000000000000..d595ae76dbd28 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Ratio.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +namespace Azure.Health.Insights.ClinicalMatching +{ + /// <summary> + /// A ratio of two Quantity values - a numerator and a denominator + /// Based on [FHIR Ratio](https://www.hl7.org/fhir/R4/datatypes.html#Ratio) + /// </summary> + public partial class Ratio + { + /// <summary> Initializes a new instance of <see cref="Ratio"/>. </summary> + public Ratio() + { + } + + /// <summary> Initializes a new instance of <see cref="Ratio"/>. </summary> + /// <param name="id"> Unique id for inter-element referencing. </param> + /// <param name="numerator"> Numerator value. </param> + /// <param name="denominator"> Denominator value. </param> + internal Ratio(string id, Quantity numerator, Quantity denominator) + { + Id = id; + Numerator = numerator; + Denominator = denominator; + } + + /// <summary> Unique id for inter-element referencing. </summary> + public string Id { get; set; } + /// <summary> Numerator value. </summary> + public Quantity Numerator { get; set; } + /// <summary> Denominator value. </summary> + public Quantity Denominator { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Reference.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Reference.Serialization.cs new file mode 100644 index 0000000000000..2ea26dac3c1e9 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Reference.Serialization.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.ClinicalMatching +{ + public partial class Reference : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsDefined(ReferenceProperty)) + { + writer.WritePropertyName("reference"u8); + writer.WriteStringValue(ReferenceProperty); + } + if (Optional.IsDefined(Type)) + { + writer.WritePropertyName("type"u8); + writer.WriteStringValue(Type); + } + if (Optional.IsDefined(Identifier)) + { + writer.WritePropertyName("identifier"u8); + writer.WriteObjectValue(Identifier); + } + if (Optional.IsDefined(Display)) + { + writer.WritePropertyName("display"u8); + writer.WriteStringValue(Display); + } + writer.WriteEndObject(); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Reference.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Reference.cs new file mode 100644 index 0000000000000..a50d77e79b402 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Reference.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +namespace Azure.Health.Insights.ClinicalMatching +{ + /// <summary> + /// A reference from one resource to another + /// Based on [FHIR Reference](https://www.hl7.org/fhir/R4/references.html) + /// </summary> + public partial class Reference + { + /// <summary> Initializes a new instance of <see cref="Reference"/>. </summary> + public Reference() + { + } + + /// <summary> Initializes a new instance of <see cref="Reference"/>. </summary> + /// <param name="id"> Unique id for inter-element referencing. </param> + /// <param name="referenceProperty"> Literal reference, Relative, internal or absolute URL. </param> + /// <param name="type"> Type the reference refers to (e.g. "Patient"). </param> + /// <param name="identifier"> Logical reference, when literal reference is not known. </param> + /// <param name="display"> Text alternative for the resource. </param> + internal Reference(string id, string referenceProperty, string type, Identifier identifier, string display) + { + Id = id; + ReferenceProperty = referenceProperty; + Type = type; + Identifier = identifier; + Display = display; + } + + /// <summary> Unique id for inter-element referencing. </summary> + public string Id { get; set; } + /// <summary> Literal reference, Relative, internal or absolute URL. </summary> + public string ReferenceProperty { get; set; } + /// <summary> Type the reference refers to (e.g. "Patient"). </summary> + public string Type { get; set; } + /// <summary> Logical reference, when literal reference is not known. </summary> + public Identifier Identifier { get; set; } + /// <summary> Text alternative for the resource. </summary> + public string Display { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ResearchStudy.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ResearchStudy.Serialization.cs new file mode 100644 index 0000000000000..0dca85e557d57 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ResearchStudy.Serialization.cs @@ -0,0 +1,280 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.ClinicalMatching +{ + public partial class ResearchStudy : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(Identifier)) + { + writer.WritePropertyName("identifier"u8); + writer.WriteStartArray(); + foreach (var item in Identifier) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(Title)) + { + writer.WritePropertyName("title"u8); + writer.WriteStringValue(Title); + } + if (Optional.IsCollectionDefined(Protocol)) + { + writer.WritePropertyName("protocol"u8); + writer.WriteStartArray(); + foreach (var item in Protocol) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(PartOf)) + { + writer.WritePropertyName("partOf"u8); + writer.WriteStartArray(); + foreach (var item in PartOf) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + writer.WritePropertyName("status"u8); + writer.WriteStringValue(Status.ToString()); + if (Optional.IsDefined(PrimaryPurposeType)) + { + writer.WritePropertyName("primaryPurposeType"u8); + writer.WriteObjectValue(PrimaryPurposeType); + } + if (Optional.IsDefined(Phase)) + { + writer.WritePropertyName("phase"u8); + writer.WriteObjectValue(Phase); + } + if (Optional.IsCollectionDefined(Category)) + { + writer.WritePropertyName("category"u8); + writer.WriteStartArray(); + foreach (var item in Category) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(Focus)) + { + writer.WritePropertyName("focus"u8); + writer.WriteStartArray(); + foreach (var item in Focus) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(Condition)) + { + writer.WritePropertyName("condition"u8); + writer.WriteStartArray(); + foreach (var item in Condition) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(Contact)) + { + writer.WritePropertyName("contact"u8); + writer.WriteStartArray(); + foreach (var item in Contact) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(Keyword)) + { + writer.WritePropertyName("keyword"u8); + writer.WriteStartArray(); + foreach (var item in Keyword) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(Location)) + { + writer.WritePropertyName("location"u8); + writer.WriteStartArray(); + foreach (var item in Location) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + if (Optional.IsCollectionDefined(Enrollment)) + { + writer.WritePropertyName("enrollment"u8); + writer.WriteStartArray(); + foreach (var item in Enrollment) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(Period)) + { + writer.WritePropertyName("period"u8); + writer.WriteObjectValue(Period); + } + if (Optional.IsDefined(Sponsor)) + { + writer.WritePropertyName("sponsor"u8); + writer.WriteObjectValue(Sponsor); + } + if (Optional.IsDefined(PrincipalInvestigator)) + { + writer.WritePropertyName("principalInvestigator"u8); + writer.WriteObjectValue(PrincipalInvestigator); + } + if (Optional.IsCollectionDefined(Site)) + { + writer.WritePropertyName("site"u8); + writer.WriteStartArray(); + foreach (var item in Site) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(ReasonStopped)) + { + writer.WritePropertyName("reasonStopped"u8); + writer.WriteObjectValue(ReasonStopped); + } + if (Optional.IsCollectionDefined(Note)) + { + writer.WritePropertyName("note"u8); + writer.WriteStartArray(); + foreach (var item in Note) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(Arm)) + { + writer.WritePropertyName("arm"u8); + writer.WriteStartArray(); + foreach (var item in Arm) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(Objective)) + { + writer.WritePropertyName("objective"u8); + writer.WriteStartArray(); + foreach (var item in Objective) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + writer.WritePropertyName("resourceType"u8); + writer.WriteStringValue(ResourceType); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsDefined(Meta)) + { + writer.WritePropertyName("meta"u8); + writer.WriteObjectValue(Meta); + } + if (Optional.IsDefined(ImplicitRules)) + { + writer.WritePropertyName("implicitRules"u8); + writer.WriteStringValue(ImplicitRules); + } + if (Optional.IsDefined(Language)) + { + writer.WritePropertyName("language"u8); + writer.WriteStringValue(Language); + } + if (Optional.IsDefined(Text)) + { + writer.WritePropertyName("text"u8); + writer.WriteObjectValue(Text); + } + if (Optional.IsCollectionDefined(Contained)) + { + writer.WritePropertyName("contained"u8); + writer.WriteStartArray(); + foreach (var item in Contained) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(ModifierExtension)) + { + writer.WritePropertyName("modifierExtension"u8); + writer.WriteStartArray(); + foreach (var item in ModifierExtension) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + foreach (var item in AdditionalProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + writer.WriteEndObject(); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ResearchStudy.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ResearchStudy.cs new file mode 100644 index 0000000000000..bf28262d853c5 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ResearchStudy.cs @@ -0,0 +1,150 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.ClinicalMatching +{ + /// <summary> + /// Detailed information about Research Study + /// Based on [FHIR ResearchStudy](https://www.hl7.org/fhir/R4/researchstudy.html) + /// </summary> + public partial class ResearchStudy : DomainResource + { + /// <summary> Initializes a new instance of <see cref="ResearchStudy"/>. </summary> + /// <param name="status"> active | administratively-completed | approved | closed-to-accrual | closed-to-accrual-and-intervention | completed | disapproved | in-review | temporarily-closed-to-accrual | temporarily-closed-to-accrual-and-intervention | withdrawn. </param> + public ResearchStudy(ResearchStudyStatusCodeType status) + { + ResourceType = "ResearchStudy"; + Identifier = new ChangeTrackingList<Identifier>(); + Protocol = new ChangeTrackingList<Reference>(); + PartOf = new ChangeTrackingList<Reference>(); + Status = status; + Category = new ChangeTrackingList<CodeableConcept>(); + Focus = new ChangeTrackingList<CodeableConcept>(); + Condition = new ChangeTrackingList<CodeableConcept>(); + Contact = new ChangeTrackingList<ContactDetail>(); + Keyword = new ChangeTrackingList<CodeableConcept>(); + Location = new ChangeTrackingList<CodeableConcept>(); + Enrollment = new ChangeTrackingList<Reference>(); + Site = new ChangeTrackingList<Reference>(); + Note = new ChangeTrackingList<Annotation>(); + Arm = new ChangeTrackingList<ResearchStudyArm>(); + Objective = new ChangeTrackingList<ResearchStudyObjective>(); + } + + /// <summary> Initializes a new instance of <see cref="ResearchStudy"/>. </summary> + /// <param name="resourceType"> The type of resource. </param> + /// <param name="id"> Resource Id. </param> + /// <param name="meta"> Metadata about the resource. </param> + /// <param name="implicitRules"> A set of rules under which this content was created. </param> + /// <param name="language"> Language of the resource content. </param> + /// <param name="text"> Text summary of the resource, for human interpretation. </param> + /// <param name="contained"> Contained, inline Resources. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="modifierExtension"> Extensions that cannot be ignored. </param> + /// <param name="additionalProperties"> Additional Properties. </param> + /// <param name="identifier"> Business Identifier for study. </param> + /// <param name="title"> Name for this study. </param> + /// <param name="protocol"> Steps followed in executing study. </param> + /// <param name="partOf"> Part of larger study. </param> + /// <param name="status"> active | administratively-completed | approved | closed-to-accrual | closed-to-accrual-and-intervention | completed | disapproved | in-review | temporarily-closed-to-accrual | temporarily-closed-to-accrual-and-intervention | withdrawn. </param> + /// <param name="primaryPurposeType"> treatment | prevention | diagnostic | supportive-care | screening | health-services-research | basic-science | device-feasibility. </param> + /// <param name="phase"> n-a | early-phase-1 | phase-1 | phase-1-phase-2 | phase-2 | phase-2-phase-3 | phase-3 | phase-4. </param> + /// <param name="category"> Classifications for the study. </param> + /// <param name="focus"> Drugs, devices, etc. under study. </param> + /// <param name="condition"> Condition being studied. </param> + /// <param name="contact"> Contact details for the study. </param> + /// <param name="keyword"> Used to search for the study. </param> + /// <param name="location"> Geographic region(s) for study. </param> + /// <param name="description"> What this is study doing. </param> + /// <param name="enrollment"> Inclusion & exclusion criteria. </param> + /// <param name="period"> When the study began and ended. </param> + /// <param name="sponsor"> Organization that initiates and is legally responsible for the study. </param> + /// <param name="principalInvestigator"> Researcher who oversees multiple aspects of the study. </param> + /// <param name="site"> Facility where study activities are conducted. </param> + /// <param name="reasonStopped"> accrual-goal-met | closed-due-to-toxicity | closed-due-to-lack-of-study-progress | temporarily-closed-per-study-design. </param> + /// <param name="note"> Comments made about the study. </param> + /// <param name="arm"> Defined path through the study for a subject. </param> + /// <param name="objective"> A goal for the study. </param> + internal ResearchStudy(string resourceType, string id, Meta meta, string implicitRules, string language, Narrative text, IReadOnlyList<Resource> contained, IReadOnlyList<Extension> extension, IReadOnlyList<Extension> modifierExtension, IReadOnlyDictionary<string, BinaryData> additionalProperties, IList<Identifier> identifier, string title, IList<Reference> protocol, IList<Reference> partOf, ResearchStudyStatusCodeType status, CodeableConcept primaryPurposeType, CodeableConcept phase, IList<CodeableConcept> category, IList<CodeableConcept> focus, IList<CodeableConcept> condition, IList<ContactDetail> contact, IList<CodeableConcept> keyword, IList<CodeableConcept> location, string description, IList<Reference> enrollment, Period period, Reference sponsor, Reference principalInvestigator, IList<Reference> site, CodeableConcept reasonStopped, IList<Annotation> note, IList<ResearchStudyArm> arm, IList<ResearchStudyObjective> objective) : base(resourceType, id, meta, implicitRules, language, text, contained, extension, modifierExtension, additionalProperties) + { + Identifier = identifier; + Title = title; + Protocol = protocol; + PartOf = partOf; + Status = status; + PrimaryPurposeType = primaryPurposeType; + Phase = phase; + Category = category; + Focus = focus; + Condition = condition; + Contact = contact; + Keyword = keyword; + Location = location; + Description = description; + Enrollment = enrollment; + Period = period; + Sponsor = sponsor; + PrincipalInvestigator = principalInvestigator; + Site = site; + ReasonStopped = reasonStopped; + Note = note; + Arm = arm; + Objective = objective; + } + + /// <summary> Business Identifier for study. </summary> + public IList<Identifier> Identifier { get; } + /// <summary> Name for this study. </summary> + public string Title { get; set; } + /// <summary> Steps followed in executing study. </summary> + public IList<Reference> Protocol { get; } + /// <summary> Part of larger study. </summary> + public IList<Reference> PartOf { get; } + /// <summary> active | administratively-completed | approved | closed-to-accrual | closed-to-accrual-and-intervention | completed | disapproved | in-review | temporarily-closed-to-accrual | temporarily-closed-to-accrual-and-intervention | withdrawn. </summary> + public ResearchStudyStatusCodeType Status { get; } + /// <summary> treatment | prevention | diagnostic | supportive-care | screening | health-services-research | basic-science | device-feasibility. </summary> + public CodeableConcept PrimaryPurposeType { get; set; } + /// <summary> n-a | early-phase-1 | phase-1 | phase-1-phase-2 | phase-2 | phase-2-phase-3 | phase-3 | phase-4. </summary> + public CodeableConcept Phase { get; set; } + /// <summary> Classifications for the study. </summary> + public IList<CodeableConcept> Category { get; } + /// <summary> Drugs, devices, etc. under study. </summary> + public IList<CodeableConcept> Focus { get; } + /// <summary> Condition being studied. </summary> + public IList<CodeableConcept> Condition { get; } + /// <summary> Contact details for the study. </summary> + public IList<ContactDetail> Contact { get; } + /// <summary> Used to search for the study. </summary> + public IList<CodeableConcept> Keyword { get; } + /// <summary> Geographic region(s) for study. </summary> + public IList<CodeableConcept> Location { get; } + /// <summary> What this is study doing. </summary> + public string Description { get; set; } + /// <summary> Inclusion & exclusion criteria. </summary> + public IList<Reference> Enrollment { get; } + /// <summary> When the study began and ended. </summary> + public Period Period { get; set; } + /// <summary> Organization that initiates and is legally responsible for the study. </summary> + public Reference Sponsor { get; set; } + /// <summary> Researcher who oversees multiple aspects of the study. </summary> + public Reference PrincipalInvestigator { get; set; } + /// <summary> Facility where study activities are conducted. </summary> + public IList<Reference> Site { get; } + /// <summary> accrual-goal-met | closed-due-to-toxicity | closed-due-to-lack-of-study-progress | temporarily-closed-per-study-design. </summary> + public CodeableConcept ReasonStopped { get; set; } + /// <summary> Comments made about the study. </summary> + public IList<Annotation> Note { get; } + /// <summary> Defined path through the study for a subject. </summary> + public IList<ResearchStudyArm> Arm { get; } + /// <summary> A goal for the study. </summary> + public IList<ResearchStudyObjective> Objective { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ResearchStudyArm.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ResearchStudyArm.Serialization.cs new file mode 100644 index 0000000000000..6235e85c0129b --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ResearchStudyArm.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.ClinicalMatching +{ + public partial class ResearchStudyArm : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + if (Optional.IsDefined(Type)) + { + writer.WritePropertyName("type"u8); + writer.WriteObjectValue(Type); + } + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + writer.WriteEndObject(); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ResearchStudyArm.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ResearchStudyArm.cs new file mode 100644 index 0000000000000..2eeb4c309b5f9 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ResearchStudyArm.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.Health.Insights.ClinicalMatching +{ + /// <summary> The ResearchStudyArm. </summary> + public partial class ResearchStudyArm + { + /// <summary> Initializes a new instance of <see cref="ResearchStudyArm"/>. </summary> + /// <param name="name"> Label for study arm. </param> + /// <exception cref="ArgumentNullException"> <paramref name="name"/> is null. </exception> + public ResearchStudyArm(string name) + { + Argument.AssertNotNull(name, nameof(name)); + + Name = name; + } + + /// <summary> Initializes a new instance of <see cref="ResearchStudyArm"/>. </summary> + /// <param name="name"> Label for study arm. </param> + /// <param name="type"> Categorization of study arm. </param> + /// <param name="description"> Short explanation of study path. </param> + internal ResearchStudyArm(string name, CodeableConcept type, string description) + { + Name = name; + Type = type; + Description = description; + } + + /// <summary> Label for study arm. </summary> + public string Name { get; } + /// <summary> Categorization of study arm. </summary> + public CodeableConcept Type { get; set; } + /// <summary> Short explanation of study path. </summary> + public string Description { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ResearchStudyObjective.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ResearchStudyObjective.Serialization.cs new file mode 100644 index 0000000000000..a53cbb2d1eaf5 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ResearchStudyObjective.Serialization.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.ClinicalMatching +{ + public partial class ResearchStudyObjective : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + if (Optional.IsDefined(Type)) + { + writer.WritePropertyName("type"u8); + writer.WriteObjectValue(Type); + } + writer.WriteEndObject(); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ResearchStudyObjective.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ResearchStudyObjective.cs new file mode 100644 index 0000000000000..a0f9d31d0a742 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ResearchStudyObjective.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.Health.Insights.ClinicalMatching +{ + /// <summary> The ResearchStudyObjective. </summary> + public partial class ResearchStudyObjective + { + /// <summary> Initializes a new instance of <see cref="ResearchStudyObjective"/>. </summary> + /// <param name="name"> Label for the objective. </param> + /// <exception cref="ArgumentNullException"> <paramref name="name"/> is null. </exception> + public ResearchStudyObjective(string name) + { + Argument.AssertNotNull(name, nameof(name)); + + Name = name; + } + + /// <summary> Initializes a new instance of <see cref="ResearchStudyObjective"/>. </summary> + /// <param name="name"> Label for the objective. </param> + /// <param name="type"> primary | secondary | exploratory. </param> + internal ResearchStudyObjective(string name, CodeableConcept type) + { + Name = name; + Type = type; + } + + /// <summary> Label for the objective. </summary> + public string Name { get; } + /// <summary> primary | secondary | exploratory. </summary> + public CodeableConcept Type { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ResearchStudyStatusCodeType.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ResearchStudyStatusCodeType.cs new file mode 100644 index 0000000000000..7f81b8e845274 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ResearchStudyStatusCodeType.cs @@ -0,0 +1,78 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Health.Insights.ClinicalMatching +{ + /// <summary> https://www.hl7.org/fhir/R4/codesystem-research-study-status.html. </summary> + public readonly partial struct ResearchStudyStatusCodeType : IEquatable<ResearchStudyStatusCodeType> + { + private readonly string _value; + + /// <summary> Initializes a new instance of <see cref="ResearchStudyStatusCodeType"/>. </summary> + /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception> + public ResearchStudyStatusCodeType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ActiveValue = "active"; + private const string AdministrativelyCompletedValue = "administratively-completed"; + private const string ApprovedValue = "approved"; + private const string ClosedToAccrualValue = "closed-to-accrual"; + private const string ClosedToAccrualAndInterventionValue = "closed-to-accrual-and-intervention"; + private const string CompletedValue = "completed"; + private const string DisapprovedValue = "disapproved"; + private const string InReviewValue = "in-review"; + private const string TemporarilyClosedToAccrualValue = "temporarily-closed-to-accrual"; + private const string TemporarilyClosedToAccrualAndInterventionValue = "temporarily-closed-to-accrual-and-intervention"; + private const string WithdrawnValue = "withdrawn"; + + /// <summary> The study is open for accrual. </summary> + public static ResearchStudyStatusCodeType Active { get; } = new ResearchStudyStatusCodeType(ActiveValue); + /// <summary> Study is completed prematurely and will not resume; patients are no longer examined nor treated. </summary> + public static ResearchStudyStatusCodeType AdministrativelyCompleted { get; } = new ResearchStudyStatusCodeType(AdministrativelyCompletedValue); + /// <summary> Protocol is approved by the review board. </summary> + public static ResearchStudyStatusCodeType Approved { get; } = new ResearchStudyStatusCodeType(ApprovedValue); + /// <summary> Study is closed for accrual; patients can be examined and treated. </summary> + public static ResearchStudyStatusCodeType ClosedToAccrual { get; } = new ResearchStudyStatusCodeType(ClosedToAccrualValue); + /// <summary> The study is closed to accrual and intervention, i.e. the study is closed to enrollment, all study subjects have completed treatment or intervention but are still being followed according to the primary objective of the study. </summary> + public static ResearchStudyStatusCodeType ClosedToAccrualAndIntervention { get; } = new ResearchStudyStatusCodeType(ClosedToAccrualAndInterventionValue); + /// <summary> Study is closed to accrual and intervention, i.e. the study is closed to enrollment, all study subjects have completed treatment or intervention but are still being followed according to the primary objective of the study. </summary> + public static ResearchStudyStatusCodeType Completed { get; } = new ResearchStudyStatusCodeType(CompletedValue); + /// <summary> Protocol was disapproved by the review board. </summary> + public static ResearchStudyStatusCodeType Disapproved { get; } = new ResearchStudyStatusCodeType(DisapprovedValue); + /// <summary> Protocol is submitted to the review board for approval. </summary> + public static ResearchStudyStatusCodeType InReview { get; } = new ResearchStudyStatusCodeType(InReviewValue); + /// <summary> The study is temporarily closed to accrual; a pause in accrual while study is reviewed, but is expected to resume. </summary> + public static ResearchStudyStatusCodeType TemporarilyClosedToAccrual { get; } = new ResearchStudyStatusCodeType(TemporarilyClosedToAccrualValue); + /// <summary> Study is temporarily closed for accrual; can be potentially resumed in the future. </summary> + public static ResearchStudyStatusCodeType TemporarilyClosedToAccrualAndIntervention { get; } = new ResearchStudyStatusCodeType(TemporarilyClosedToAccrualAndInterventionValue); + /// <summary> Protocol was withdrawn by the lead organization. </summary> + public static ResearchStudyStatusCodeType Withdrawn { get; } = new ResearchStudyStatusCodeType(WithdrawnValue); + /// <summary> Determines if two <see cref="ResearchStudyStatusCodeType"/> values are the same. </summary> + public static bool operator ==(ResearchStudyStatusCodeType left, ResearchStudyStatusCodeType right) => left.Equals(right); + /// <summary> Determines if two <see cref="ResearchStudyStatusCodeType"/> values are not the same. </summary> + public static bool operator !=(ResearchStudyStatusCodeType left, ResearchStudyStatusCodeType right) => !left.Equals(right); + /// <summary> Converts a string to a <see cref="ResearchStudyStatusCodeType"/>. </summary> + public static implicit operator ResearchStudyStatusCodeType(string value) => new ResearchStudyStatusCodeType(value); + + /// <inheritdoc /> + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ResearchStudyStatusCodeType other && Equals(other); + /// <inheritdoc /> + public bool Equals(ResearchStudyStatusCodeType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// <inheritdoc /> + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// <inheritdoc /> + public override string ToString() => _value; + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Resource.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Resource.Serialization.cs new file mode 100644 index 0000000000000..89e9a677d95d3 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Resource.Serialization.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.ClinicalMatching +{ + public partial class Resource : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("resourceType"u8); + writer.WriteStringValue(ResourceType); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsDefined(Meta)) + { + writer.WritePropertyName("meta"u8); + writer.WriteObjectValue(Meta); + } + if (Optional.IsDefined(ImplicitRules)) + { + writer.WritePropertyName("implicitRules"u8); + writer.WriteStringValue(ImplicitRules); + } + if (Optional.IsDefined(Language)) + { + writer.WritePropertyName("language"u8); + writer.WriteStringValue(Language); + } + foreach (var item in AdditionalProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + writer.WriteEndObject(); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Resource.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Resource.cs new file mode 100644 index 0000000000000..98754b69e0b8c --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Resource.cs @@ -0,0 +1,90 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.ClinicalMatching +{ + /// <summary> + /// Resource is the ancestor of DomainResource from which most resources are derived. Bundle, Parameters, and Binary extend Resource directly. + /// Based on [FHIR Resource](https://www.hl7.org/fhir/r4/resource.html + /// </summary> + public partial class Resource + { + /// <summary> Initializes a new instance of <see cref="Resource"/>. </summary> + /// <param name="resourceType"> The type of resource. </param> + /// <exception cref="ArgumentNullException"> <paramref name="resourceType"/> is null. </exception> + public Resource(string resourceType) + { + Argument.AssertNotNull(resourceType, nameof(resourceType)); + + ResourceType = resourceType; + AdditionalProperties = new ChangeTrackingDictionary<string, BinaryData>(); + } + + /// <summary> Initializes a new instance of <see cref="Resource"/>. </summary> + /// <param name="resourceType"> The type of resource. </param> + /// <param name="id"> Resource Id. </param> + /// <param name="meta"> Metadata about the resource. </param> + /// <param name="implicitRules"> A set of rules under which this content was created. </param> + /// <param name="language"> Language of the resource content. </param> + /// <param name="additionalProperties"> Additional Properties. </param> + internal Resource(string resourceType, string id, Meta meta, string implicitRules, string language, IDictionary<string, BinaryData> additionalProperties) + { + ResourceType = resourceType; + Id = id; + Meta = meta; + ImplicitRules = implicitRules; + Language = language; + AdditionalProperties = additionalProperties; + } + + /// <summary> The type of resource. </summary> + public string ResourceType { get; } + /// <summary> Resource Id. </summary> + public string Id { get; set; } + /// <summary> Metadata about the resource. </summary> + public Meta Meta { get; set; } + /// <summary> A set of rules under which this content was created. </summary> + public string ImplicitRules { get; set; } + /// <summary> Language of the resource content. </summary> + public string Language { get; set; } + /// <summary> + /// Additional Properties + /// <para> + /// To assign an object to the value of this property use <see cref="BinaryData.FromObjectAsJson{T}(T, System.Text.Json.JsonSerializerOptions?)"/>. + /// </para> + /// <para> + /// To assign an already formatted json string to this property use <see cref="BinaryData.FromString(string)"/>. + /// </para> + /// <para> + /// Examples: + /// <list type="bullet"> + /// <item> + /// <term>BinaryData.FromObjectAsJson("foo")</term> + /// <description>Creates a payload of "foo".</description> + /// </item> + /// <item> + /// <term>BinaryData.FromString("\"foo\"")</term> + /// <description>Creates a payload of "foo".</description> + /// </item> + /// <item> + /// <term>BinaryData.FromObjectAsJson(new { key = "value" })</term> + /// <description>Creates a payload of { "key": "value" }.</description> + /// </item> + /// <item> + /// <term>BinaryData.FromString("{\"key\": \"value\"}")</term> + /// <description>Creates a payload of { "key": "value" }.</description> + /// </item> + /// </list> + /// </para> + /// </summary> + public IDictionary<string, BinaryData> AdditionalProperties { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/SampledData.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/SampledData.Serialization.cs new file mode 100644 index 0000000000000..71fa152635c6d --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/SampledData.Serialization.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.ClinicalMatching +{ + public partial class SampledData : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + writer.WritePropertyName("origin"u8); + writer.WriteObjectValue(Origin); + writer.WritePropertyName("period"u8); + writer.WriteNumberValue(Period); + if (Optional.IsDefined(Factor)) + { + writer.WritePropertyName("factor"u8); + writer.WriteNumberValue(Factor.Value); + } + if (Optional.IsDefined(LowerLimit)) + { + writer.WritePropertyName("lowerLimit"u8); + writer.WriteNumberValue(LowerLimit.Value); + } + if (Optional.IsDefined(UpperLimit)) + { + writer.WritePropertyName("upperLimit"u8); + writer.WriteNumberValue(UpperLimit.Value); + } + writer.WritePropertyName("dimensions"u8); + writer.WriteNumberValue(Dimensions); + if (Optional.IsDefined(Data)) + { + writer.WritePropertyName("data"u8); + writer.WriteStringValue(Data); + } + writer.WriteEndObject(); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/SampledData.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/SampledData.cs new file mode 100644 index 0000000000000..e25b0c20a7fe0 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/SampledData.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.Health.Insights.ClinicalMatching +{ + /// <summary> + /// A series of measurements taken by a device + /// Based on [FHIR SampledData](https://www.hl7.org/fhir/R4/datatypes.html#SampledData) + /// </summary> + public partial class SampledData + { + /// <summary> Initializes a new instance of <see cref="SampledData"/>. </summary> + /// <param name="origin"> Zero value and units. </param> + /// <param name="period"> Number of milliseconds between samples. </param> + /// <param name="dimensions"> Number of sample points at each time point. </param> + /// <exception cref="ArgumentNullException"> <paramref name="origin"/> is null. </exception> + public SampledData(Quantity origin, decimal period, int dimensions) + { + Argument.AssertNotNull(origin, nameof(origin)); + + Origin = origin; + Period = period; + Dimensions = dimensions; + } + + /// <summary> Initializes a new instance of <see cref="SampledData"/>. </summary> + /// <param name="id"> Unique id for inter-element referencing. </param> + /// <param name="origin"> Zero value and units. </param> + /// <param name="period"> Number of milliseconds between samples. </param> + /// <param name="factor"> Multiply data by this before adding to origin. </param> + /// <param name="lowerLimit"> Lower limit of detection. </param> + /// <param name="upperLimit"> Upper limit of detection. </param> + /// <param name="dimensions"> Number of sample points at each time point. </param> + /// <param name="data"> Decimal values with spaces, or "E" | "U" | "L". </param> + internal SampledData(string id, Quantity origin, decimal period, decimal? factor, decimal? lowerLimit, decimal? upperLimit, int dimensions, string data) + { + Id = id; + Origin = origin; + Period = period; + Factor = factor; + LowerLimit = lowerLimit; + UpperLimit = upperLimit; + Dimensions = dimensions; + Data = data; + } + + /// <summary> Unique id for inter-element referencing. </summary> + public string Id { get; set; } + /// <summary> Zero value and units. </summary> + public Quantity Origin { get; } + /// <summary> Number of milliseconds between samples. </summary> + public decimal Period { get; } + /// <summary> Multiply data by this before adding to origin. </summary> + public decimal? Factor { get; set; } + /// <summary> Lower limit of detection. </summary> + public decimal? LowerLimit { get; set; } + /// <summary> Upper limit of detection. </summary> + public decimal? UpperLimit { get; set; } + /// <summary> Number of sample points at each time point. </summary> + public int Dimensions { get; } + /// <summary> Decimal values with spaces, or "E" | "U" | "L". </summary> + public string Data { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/SpecialtyType.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/SpecialtyType.cs new file mode 100644 index 0000000000000..b0dd910e86260 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/SpecialtyType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Health.Insights.ClinicalMatching +{ + /// <summary> Known values codes that can be used to indicate the type of the Specialty. </summary> + public readonly partial struct SpecialtyType : IEquatable<SpecialtyType> + { + private readonly string _value; + + /// <summary> Initializes a new instance of <see cref="SpecialtyType"/>. </summary> + /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception> + public SpecialtyType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string PathologyValue = "pathology"; + private const string RadiologyValue = "radiology"; + + /// <summary> pathology. </summary> + public static SpecialtyType Pathology { get; } = new SpecialtyType(PathologyValue); + /// <summary> radiology. </summary> + public static SpecialtyType Radiology { get; } = new SpecialtyType(RadiologyValue); + /// <summary> Determines if two <see cref="SpecialtyType"/> values are the same. </summary> + public static bool operator ==(SpecialtyType left, SpecialtyType right) => left.Equals(right); + /// <summary> Determines if two <see cref="SpecialtyType"/> values are not the same. </summary> + public static bool operator !=(SpecialtyType left, SpecialtyType right) => !left.Equals(right); + /// <summary> Converts a string to a <see cref="SpecialtyType"/>. </summary> + public static implicit operator SpecialtyType(string value) => new SpecialtyType(value); + + /// <inheritdoc /> + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is SpecialtyType other && Equals(other); + /// <inheritdoc /> + public bool Equals(SpecialtyType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// <inheritdoc /> + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// <inheritdoc /> + public override string ToString() => _value; + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialDemographics.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TimePeriod.Serialization.cs similarity index 63% rename from sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialDemographics.Serialization.cs rename to sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TimePeriod.Serialization.cs index 11d8bbcda9dae..43dda78f491cc 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialDemographics.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TimePeriod.Serialization.cs @@ -10,20 +10,20 @@ namespace Azure.Health.Insights.ClinicalMatching { - public partial class ClinicalTrialDemographics : IUtf8JsonSerializable + public partial class TimePeriod : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (Optional.IsDefined(AcceptedSex)) + if (Optional.IsDefined(Start)) { - writer.WritePropertyName("acceptedSex"u8); - writer.WriteStringValue(AcceptedSex.Value.ToString()); + writer.WritePropertyName("start"u8); + writer.WriteStringValue(Start.Value, "O"); } - if (Optional.IsDefined(AcceptedAgeRange)) + if (Optional.IsDefined(End)) { - writer.WritePropertyName("acceptedAgeRange"u8); - writer.WriteObjectValue(AcceptedAgeRange); + writer.WritePropertyName("end"u8); + writer.WriteStringValue(End.Value, "O"); } writer.WriteEndObject(); } diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TimePeriod.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TimePeriod.cs new file mode 100644 index 0000000000000..1b9fe97b1afd4 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TimePeriod.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; + +namespace Azure.Health.Insights.ClinicalMatching +{ + /// <summary> A duration of time during which an event is happening. </summary> + public partial class TimePeriod + { + /// <summary> Initializes a new instance of <see cref="TimePeriod"/>. </summary> + public TimePeriod() + { + } + + /// <summary> Initializes a new instance of <see cref="TimePeriod"/>. </summary> + /// <param name="start"> Starting time with inclusive boundary. </param> + /// <param name="end"> End time with inclusive boundary, if not ongoing. </param> + internal TimePeriod(DateTimeOffset? start, DateTimeOffset? end) + { + Start = start; + End = end; + } + + /// <summary> Starting time with inclusive boundary. </summary> + public DateTimeOffset? Start { get; set; } + /// <summary> End time with inclusive boundary, if not ongoing. </summary> + public DateTimeOffset? End { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherInference.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherInference.Serialization.cs index ba12062c981a3..19bf9bbaea0a6 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherInference.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherInference.Serialization.cs @@ -20,19 +20,19 @@ internal static TrialMatcherInference DeserializeTrialMatcherInference(JsonEleme { return null; } - TrialMatcherInferenceType type = default; + string type = default; string value = default; Optional<string> description = default; Optional<float> confidenceScore = default; Optional<IReadOnlyList<TrialMatcherInferenceEvidence>> evidence = default; - Optional<string> id = default; + Optional<string> clinicalTrialId = default; Optional<ClinicalTrialSource> source = default; Optional<ClinicalTrialMetadata> metadata = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("type"u8)) { - type = new TrialMatcherInferenceType(property.Value.GetString()); + type = property.Value.GetString(); continue; } if (property.NameEquals("value"u8)) @@ -68,9 +68,9 @@ internal static TrialMatcherInference DeserializeTrialMatcherInference(JsonEleme evidence = array; continue; } - if (property.NameEquals("id"u8)) + if (property.NameEquals("clinicalTrialId"u8)) { - id = property.Value.GetString(); + clinicalTrialId = property.Value.GetString(); continue; } if (property.NameEquals("source"u8)) @@ -92,7 +92,7 @@ internal static TrialMatcherInference DeserializeTrialMatcherInference(JsonEleme continue; } } - return new TrialMatcherInference(type, value, description.Value, Optional.ToNullable(confidenceScore), Optional.ToList(evidence), id.Value, Optional.ToNullable(source), metadata.Value); + return new TrialMatcherInference(type, value, description.Value, Optional.ToNullable(confidenceScore), Optional.ToList(evidence), clinicalTrialId.Value, Optional.ToNullable(source), metadata.Value); } /// <summary> Deserializes the model from a raw response. </summary> diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherInference.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherInference.cs index fde918130240a..27f8c7bd52a3b 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherInference.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherInference.cs @@ -17,9 +17,10 @@ public partial class TrialMatcherInference /// <summary> Initializes a new instance of <see cref="TrialMatcherInference"/>. </summary> /// <param name="type"> The type of the Trial Matcher inference. </param> /// <param name="value"> The value of the inference, as relevant for the given inference type. </param> - /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception> - internal TrialMatcherInference(TrialMatcherInferenceType type, string value) + /// <exception cref="ArgumentNullException"> <paramref name="type"/> or <paramref name="value"/> is null. </exception> + internal TrialMatcherInference(string type, string value) { + Argument.AssertNotNull(type, nameof(type)); Argument.AssertNotNull(value, nameof(value)); Type = type; @@ -33,23 +34,23 @@ internal TrialMatcherInference(TrialMatcherInferenceType type, string value) /// <param name="description"> The description corresponding to the inference value. </param> /// <param name="confidenceScore"> Confidence score for this inference. </param> /// <param name="evidence"> The evidence corresponding to the inference value. </param> - /// <param name="id"> The identifier of the clinical trial. </param> + /// <param name="clinicalTrialId"> The identifier of the clinical trial. </param> /// <param name="source"> Possible sources of a clinical trial. </param> /// <param name="metadata"> Trial data which is of interest to the potential participant. </param> - internal TrialMatcherInference(TrialMatcherInferenceType type, string value, string description, float? confidenceScore, IReadOnlyList<TrialMatcherInferenceEvidence> evidence, string id, ClinicalTrialSource? source, ClinicalTrialMetadata metadata) + internal TrialMatcherInference(string type, string value, string description, float? confidenceScore, IReadOnlyList<TrialMatcherInferenceEvidence> evidence, string clinicalTrialId, ClinicalTrialSource? source, ClinicalTrialMetadata metadata) { Type = type; Value = value; Description = description; ConfidenceScore = confidenceScore; Evidence = evidence; - Id = id; + ClinicalTrialId = clinicalTrialId; Source = source; Metadata = metadata; } /// <summary> The type of the Trial Matcher inference. </summary> - public TrialMatcherInferenceType Type { get; } + public string Type { get; } /// <summary> The value of the inference, as relevant for the given inference type. </summary> public string Value { get; } /// <summary> The description corresponding to the inference value. </summary> @@ -59,7 +60,7 @@ internal TrialMatcherInference(TrialMatcherInferenceType type, string value, str /// <summary> The evidence corresponding to the inference value. </summary> public IReadOnlyList<TrialMatcherInferenceEvidence> Evidence { get; } /// <summary> The identifier of the clinical trial. </summary> - public string Id { get; } + public string ClinicalTrialId { get; } /// <summary> Possible sources of a clinical trial. </summary> public ClinicalTrialSource? Source { get; } /// <summary> Trial data which is of interest to the potential participant. </summary> diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherResults.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherInferenceResult.Serialization.cs similarity index 74% rename from sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherResults.Serialization.cs rename to sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherInferenceResult.Serialization.cs index df173bf771fd8..82836c8f40474 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherResults.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherInferenceResult.Serialization.cs @@ -13,27 +13,27 @@ namespace Azure.Health.Insights.ClinicalMatching { - public partial class TrialMatcherResults + public partial class TrialMatcherInferenceResult { - internal static TrialMatcherResults DeserializeTrialMatcherResults(JsonElement element) + internal static TrialMatcherInferenceResult DeserializeTrialMatcherInferenceResult(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { return null; } - IReadOnlyList<TrialMatcherPatientResult> patients = default; + IReadOnlyList<TrialMatcherPatientResult> patientResults = default; string modelVersion = default; Optional<DateTimeOffset> knowledgeGraphLastUpdateDate = default; foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("patients"u8)) + if (property.NameEquals("patientResults"u8)) { List<TrialMatcherPatientResult> array = new List<TrialMatcherPatientResult>(); foreach (var item in property.Value.EnumerateArray()) { array.Add(TrialMatcherPatientResult.DeserializeTrialMatcherPatientResult(item)); } - patients = array; + patientResults = array; continue; } if (property.NameEquals("modelVersion"u8)) @@ -51,15 +51,15 @@ internal static TrialMatcherResults DeserializeTrialMatcherResults(JsonElement e continue; } } - return new TrialMatcherResults(patients, modelVersion, Optional.ToNullable(knowledgeGraphLastUpdateDate)); + return new TrialMatcherInferenceResult(patientResults, modelVersion, Optional.ToNullable(knowledgeGraphLastUpdateDate)); } /// <summary> Deserializes the model from a raw response. </summary> /// <param name="response"> The response to deserialize the model from. </param> - internal static TrialMatcherResults FromResponse(Response response) + internal static TrialMatcherInferenceResult FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content); - return DeserializeTrialMatcherResults(document.RootElement); + return DeserializeTrialMatcherInferenceResult(document.RootElement); } } } diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherResults.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherInferenceResult.cs similarity index 62% rename from sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherResults.cs rename to sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherInferenceResult.cs index 7a9a5b9489d86..6275246334dfe 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherResults.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherInferenceResult.cs @@ -13,34 +13,34 @@ namespace Azure.Health.Insights.ClinicalMatching { /// <summary> The inference results for the Trial Matcher request. </summary> - public partial class TrialMatcherResults + public partial class TrialMatcherInferenceResult { - /// <summary> Initializes a new instance of <see cref="TrialMatcherResults"/>. </summary> - /// <param name="patients"> Results for the patients given in the request. </param> + /// <summary> Initializes a new instance of <see cref="TrialMatcherInferenceResult"/>. </summary> + /// <param name="patientResults"> Results for the patients given in the request. </param> /// <param name="modelVersion"> The version of the model used for inference, expressed as the model date. </param> - /// <exception cref="ArgumentNullException"> <paramref name="patients"/> or <paramref name="modelVersion"/> is null. </exception> - internal TrialMatcherResults(IEnumerable<TrialMatcherPatientResult> patients, string modelVersion) + /// <exception cref="ArgumentNullException"> <paramref name="patientResults"/> or <paramref name="modelVersion"/> is null. </exception> + internal TrialMatcherInferenceResult(IEnumerable<TrialMatcherPatientResult> patientResults, string modelVersion) { - Argument.AssertNotNull(patients, nameof(patients)); + Argument.AssertNotNull(patientResults, nameof(patientResults)); Argument.AssertNotNull(modelVersion, nameof(modelVersion)); - Patients = patients.ToList(); + PatientResults = patientResults.ToList(); ModelVersion = modelVersion; } - /// <summary> Initializes a new instance of <see cref="TrialMatcherResults"/>. </summary> - /// <param name="patients"> Results for the patients given in the request. </param> + /// <summary> Initializes a new instance of <see cref="TrialMatcherInferenceResult"/>. </summary> + /// <param name="patientResults"> Results for the patients given in the request. </param> /// <param name="modelVersion"> The version of the model used for inference, expressed as the model date. </param> /// <param name="knowledgeGraphLastUpdateDate"> The date when the clinical trials knowledge graph was last updated. </param> - internal TrialMatcherResults(IReadOnlyList<TrialMatcherPatientResult> patients, string modelVersion, DateTimeOffset? knowledgeGraphLastUpdateDate) + internal TrialMatcherInferenceResult(IReadOnlyList<TrialMatcherPatientResult> patientResults, string modelVersion, DateTimeOffset? knowledgeGraphLastUpdateDate) { - Patients = patients; + PatientResults = patientResults; ModelVersion = modelVersion; KnowledgeGraphLastUpdateDate = knowledgeGraphLastUpdateDate; } /// <summary> Results for the patients given in the request. </summary> - public IReadOnlyList<TrialMatcherPatientResult> Patients { get; } + public IReadOnlyList<TrialMatcherPatientResult> PatientResults { get; } /// <summary> The version of the model used for inference, expressed as the model date. </summary> public string ModelVersion { get; } /// <summary> The date when the clinical trials knowledge graph was last updated. </summary> diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherInferenceType.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherInferenceType.cs deleted file mode 100644 index dddb604377dcf..0000000000000 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherInferenceType.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// <auto-generated/> - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.Health.Insights.ClinicalMatching -{ - /// <summary> The type of the Trial Matcher inference. </summary> - public readonly partial struct TrialMatcherInferenceType : IEquatable<TrialMatcherInferenceType> - { - private readonly string _value; - - /// <summary> Initializes a new instance of <see cref="TrialMatcherInferenceType"/>. </summary> - /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception> - public TrialMatcherInferenceType(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string TrialEligibilityValue = "trialEligibility"; - - /// <summary> trialEligibility. </summary> - public static TrialMatcherInferenceType TrialEligibility { get; } = new TrialMatcherInferenceType(TrialEligibilityValue); - /// <summary> Determines if two <see cref="TrialMatcherInferenceType"/> values are the same. </summary> - public static bool operator ==(TrialMatcherInferenceType left, TrialMatcherInferenceType right) => left.Equals(right); - /// <summary> Determines if two <see cref="TrialMatcherInferenceType"/> values are not the same. </summary> - public static bool operator !=(TrialMatcherInferenceType left, TrialMatcherInferenceType right) => !left.Equals(right); - /// <summary> Converts a string to a <see cref="TrialMatcherInferenceType"/>. </summary> - public static implicit operator TrialMatcherInferenceType(string value) => new TrialMatcherInferenceType(value); - - /// <inheritdoc /> - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is TrialMatcherInferenceType other && Equals(other); - /// <inheritdoc /> - public bool Equals(TrialMatcherInferenceType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// <inheritdoc /> - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// <inheritdoc /> - public override string ToString() => _value; - } -} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherPatientResult.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherPatientResult.Serialization.cs index a69105b90890d..2ce3b1b2d1a31 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherPatientResult.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherPatientResult.Serialization.cs @@ -20,14 +20,14 @@ internal static TrialMatcherPatientResult DeserializeTrialMatcherPatientResult(J { return null; } - string id = default; + string patientId = default; IReadOnlyList<TrialMatcherInference> inferences = default; Optional<IReadOnlyList<ExtendedClinicalCodedElement>> neededClinicalInfo = default; foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("id"u8)) + if (property.NameEquals("patientId"u8)) { - id = property.Value.GetString(); + patientId = property.Value.GetString(); continue; } if (property.NameEquals("inferences"u8)) @@ -55,7 +55,7 @@ internal static TrialMatcherPatientResult DeserializeTrialMatcherPatientResult(J continue; } } - return new TrialMatcherPatientResult(id, inferences, Optional.ToList(neededClinicalInfo)); + return new TrialMatcherPatientResult(patientId, inferences, Optional.ToList(neededClinicalInfo)); } /// <summary> Deserializes the model from a raw response. </summary> diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherPatientResult.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherPatientResult.cs index da93e13f2b49e..c711b79125512 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherPatientResult.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherPatientResult.cs @@ -16,33 +16,33 @@ namespace Azure.Health.Insights.ClinicalMatching public partial class TrialMatcherPatientResult { /// <summary> Initializes a new instance of <see cref="TrialMatcherPatientResult"/>. </summary> - /// <param name="id"> The identifier given for the patient in the request. </param> - /// <param name="inferences"> The model's inferences for the given patient. </param> - /// <exception cref="ArgumentNullException"> <paramref name="id"/> or <paramref name="inferences"/> is null. </exception> - internal TrialMatcherPatientResult(string id, IEnumerable<TrialMatcherInference> inferences) + /// <param name="patientId"> The identifier given for the patient in the request. </param> + /// <param name="inferences"> The inference results for the patient. </param> + /// <exception cref="ArgumentNullException"> <paramref name="patientId"/> or <paramref name="inferences"/> is null. </exception> + internal TrialMatcherPatientResult(string patientId, IEnumerable<TrialMatcherInference> inferences) { - Argument.AssertNotNull(id, nameof(id)); + Argument.AssertNotNull(patientId, nameof(patientId)); Argument.AssertNotNull(inferences, nameof(inferences)); - Id = id; + PatientId = patientId; Inferences = inferences.ToList(); NeededClinicalInfo = new ChangeTrackingList<ExtendedClinicalCodedElement>(); } /// <summary> Initializes a new instance of <see cref="TrialMatcherPatientResult"/>. </summary> - /// <param name="id"> The identifier given for the patient in the request. </param> - /// <param name="inferences"> The model's inferences for the given patient. </param> + /// <param name="patientId"> The identifier given for the patient in the request. </param> + /// <param name="inferences"> The inference results for the patient. </param> /// <param name="neededClinicalInfo"> Clinical information which is needed to provide better trial matching results for the patient. </param> - internal TrialMatcherPatientResult(string id, IReadOnlyList<TrialMatcherInference> inferences, IReadOnlyList<ExtendedClinicalCodedElement> neededClinicalInfo) + internal TrialMatcherPatientResult(string patientId, IReadOnlyList<TrialMatcherInference> inferences, IReadOnlyList<ExtendedClinicalCodedElement> neededClinicalInfo) { - Id = id; + PatientId = patientId; Inferences = inferences; NeededClinicalInfo = neededClinicalInfo; } /// <summary> The identifier given for the patient in the request. </summary> - public string Id { get; } - /// <summary> The model's inferences for the given patient. </summary> + public string PatientId { get; } + /// <summary> The inference results for the patient. </summary> public IReadOnlyList<TrialMatcherInference> Inferences { get; } /// <summary> Clinical information which is needed to provide better trial matching results for the patient. </summary> public IReadOnlyList<ExtendedClinicalCodedElement> NeededClinicalInfo { get; } diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/tests/Generated/Samples/Samples_ClinicalMatchingClient.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/tests/Generated/Samples/Samples_ClinicalMatchingClient.cs index dd35383a47b16..8ed074bb5c6d1 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/tests/Generated/Samples/Samples_ClinicalMatchingClient.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/tests/Generated/Samples/Samples_ClinicalMatchingClient.cs @@ -6,6 +6,7 @@ #nullable disable using System; +using System.Collections.Generic; using System.Text.Json; using System.Threading.Tasks; using Azure; @@ -40,9 +41,9 @@ public void Example_ClinicalMatchingClient_MatchTrials_ShortVersion() BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("id").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("patientId").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("value").ToString()); Console.WriteLine(result.GetProperty("modelVersion").ToString()); } @@ -68,9 +69,9 @@ public async Task Example_ClinicalMatchingClient_MatchTrials_ShortVersion_Async( BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("id").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("patientId").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("value").ToString()); Console.WriteLine(result.GetProperty("modelVersion").ToString()); } @@ -86,8 +87,8 @@ public void Example_ClinicalMatchingClient_MatchTrials_ShortVersion_Convenience( { new PatientRecord("<id>") }); - Operation<TrialMatcherResults> operation = client.MatchTrials(WaitUntil.Completed, trialMatcherData); - TrialMatcherResults responseData = operation.Value; + Operation<TrialMatcherInferenceResult> operation = client.MatchTrials(WaitUntil.Completed, trialMatcherData); + TrialMatcherInferenceResult responseData = operation.Value; } [Test] @@ -102,8 +103,8 @@ public async Task Example_ClinicalMatchingClient_MatchTrials_ShortVersion_Conven { new PatientRecord("<id>") }); - Operation<TrialMatcherResults> operation = await client.MatchTrialsAsync(WaitUntil.Completed, trialMatcherData); - TrialMatcherResults responseData = operation.Value; + Operation<TrialMatcherInferenceResult> operation = await client.MatchTrialsAsync(WaitUntil.Completed, trialMatcherData); + TrialMatcherInferenceResult responseData = operation.Value; } [Test] @@ -129,14 +130,121 @@ public void Example_ClinicalMatchingClient_MatchTrials_AllParameters() { new { +resourceType = "<resourceType>", +id = "<id>", +meta = new +{ +versionId = "<versionId>", +lastUpdated = "<lastUpdated>", +source = "<source>", +profile = new object[] +{ +"<profile>" +}, +security = new object[] +{ +new +{ +id = "<id>", +extension = new object[] +{ +new +{ +id = "<id>", +url = "<url>", +valueQuantity = new +{ +id = "<id>", +value = new object(), +comparator = "<comparator>", +unit = "<unit>", system = "<system>", code = "<code>", -name = "<name>", +}, +valueCodeableConcept = new +{ +id = "<id>", +coding = new object[] +{ +null +}, +text = "<text>", +}, +valueString = "<valueString>", +valueBoolean = true, +valueInteger = 1234, +valueRange = new +{ +id = "<id>", +}, +valueRatio = new +{ +id = "<id>", +}, +valueSampledData = new +{ +id = "<id>", +period = new object(), +factor = new object(), +lowerLimit = new object(), +upperLimit = new object(), +dimensions = 1234, +data = "<data>", +}, +valueTime = "01:23:45", +valueDateTime = "<valueDateTime>", +valuePeriod = new +{ +id = "<id>", +start = "<start>", +end = "<end>", +}, +valueReference = new +{ +id = "<id>", +reference = "<reference>", +type = "<type>", +identifier = new +{ +id = "<id>", +use = "<use>", +system = "<system>", value = "<value>", +}, +display = "<display>", +}, } }, +system = "<system>", +version = "<version>", +code = "<code>", +display = "<display>", +} }, -data = new object[] +tag = new object[] +{ +null +}, +}, +implicitRules = "<implicitRules>", +language = "<language>", +} +}, +}, +encounters = new object[] +{ +new Dictionary<string, object> +{ +["id"] = "<id>", +["period"] = new +{ +start = "2022-05-10T14:57:31.2311892-04:00", +end = "2022-05-10T14:57:31.2311892-04:00", +}, +["class"] = "inpatient" +} +}, +patientDocuments = new object[] { new { @@ -145,6 +253,30 @@ public void Example_ClinicalMatchingClient_MatchTrials_AllParameters() id = "<id>", language = "<language>", createdDateTime = "2022-05-10T14:57:31.2311892-04:00", +authors = new object[] +{ +new +{ +id = "<id>", +fullName = "<fullName>", +} +}, +specialtyType = "pathology", +administrativeMetadata = new +{ +orderedProcedures = new object[] +{ +new +{ +extension = new object[] +{ +null +}, +description = "<description>", +} +}, +encounterId = "<encounterId>", +}, content = new { sourceType = "inline", @@ -164,55 +296,125 @@ public void Example_ClinicalMatchingClient_MatchTrials_AllParameters() { new { +identifier = new object[] +{ +null +}, +title = "<title>", +protocol = new object[] +{ +null +}, +partOf = new object[] +{ +null +}, +status = "active", +category = new object[] +{ +null +}, +focus = new object[] +{ +null +}, +condition = new object[] +{ +null +}, +contact = new object[] +{ +new +{ id = "<id>", -eligibilityCriteriaText = "<eligibilityCriteriaText>", -demographics = new +extension = new object[] { -acceptedSex = "all", -acceptedAgeRange = new +null +}, +name = "<name>", +telecom = new object[] { -minimumAge = new +new { -unit = "years", -value = 123.45F, +system = "phone", +value = "<value>", +use = "home", +rank = 1234, +} }, +} }, +keyword = new object[] +{ +null }, -metadata = new +location = new object[] { -phases = new object[] +null +}, +description = "<description>", +enrollment = new object[] { -"notApplicable" +null }, -studyType = "interventional", -recruitmentStatus = "unknownStatus", -conditions = new object[] +site = new object[] { -"<conditions>" +null }, -sponsors = new object[] +note = new object[] { -"<sponsors>" +new +{ +id = "<id>", +extension = new object[] +{ +null +}, +authorString = "<authorString>", +time = "<time>", +text = "<text>", +} }, -contacts = new object[] +arm = new object[] { new { name = "<name>", -email = "<email>", -phone = "<phone>", +description = "<description>", } }, -facilities = new object[] +objective = new object[] { new { name = "<name>", -city = "<city>", -state = "<state>", -countryOrRegion = "<countryOrRegion>", } }, +resourceType = "ResearchStudy", +id = "<id>", +implicitRules = "<implicitRules>", +language = "<language>", +text = new +{ +id = "<id>", +extension = new object[] +{ +null +}, +status = "<status>", +div = "<div>", +}, +contained = new object[] +{ +null +}, +extension = new object[] +{ +null +}, +modifierExtension = new object[] +{ +null }, } }, @@ -294,41 +496,41 @@ public void Example_ClinicalMatchingClient_MatchTrials_AllParameters() BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("id").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("value").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("description").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("confidenceScore").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("eligibilityCriteriaEvidence").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("id").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("text").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("offset").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("length").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("system").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("name").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("value").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("importance").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("id").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("source").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("phases")[0].ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("studyType").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("recruitmentStatus").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("conditions")[0].ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("sponsors")[0].ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("contacts")[0].GetProperty("name").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("contacts")[0].GetProperty("email").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("contacts")[0].GetProperty("phone").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("facilities")[0].GetProperty("name").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("facilities")[0].GetProperty("city").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("facilities")[0].GetProperty("state").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("facilities")[0].GetProperty("countryOrRegion").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("neededClinicalInfo")[0].GetProperty("system").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("neededClinicalInfo")[0].GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("neededClinicalInfo")[0].GetProperty("name").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("neededClinicalInfo")[0].GetProperty("value").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("neededClinicalInfo")[0].GetProperty("semanticType").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("neededClinicalInfo")[0].GetProperty("category").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("patientId").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("description").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("confidenceScore").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("eligibilityCriteriaEvidence").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("offset").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("length").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("name").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("importance").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("clinicalTrialId").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("source").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("phases")[0].ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("studyType").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("recruitmentStatus").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("conditions")[0].ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("sponsors")[0].ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("contacts")[0].GetProperty("name").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("contacts")[0].GetProperty("email").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("contacts")[0].GetProperty("phone").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("facilities")[0].GetProperty("name").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("facilities")[0].GetProperty("city").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("facilities")[0].GetProperty("state").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("facilities")[0].GetProperty("countryOrRegion").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("neededClinicalInfo")[0].GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("neededClinicalInfo")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("neededClinicalInfo")[0].GetProperty("name").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("neededClinicalInfo")[0].GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("neededClinicalInfo")[0].GetProperty("semanticType").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("neededClinicalInfo")[0].GetProperty("category").ToString()); Console.WriteLine(result.GetProperty("modelVersion").ToString()); Console.WriteLine(result.GetProperty("knowledgeGraphLastUpdateDate").ToString()); } @@ -356,14 +558,121 @@ public async Task Example_ClinicalMatchingClient_MatchTrials_AllParameters_Async { new { +resourceType = "<resourceType>", +id = "<id>", +meta = new +{ +versionId = "<versionId>", +lastUpdated = "<lastUpdated>", +source = "<source>", +profile = new object[] +{ +"<profile>" +}, +security = new object[] +{ +new +{ +id = "<id>", +extension = new object[] +{ +new +{ +id = "<id>", +url = "<url>", +valueQuantity = new +{ +id = "<id>", +value = new object(), +comparator = "<comparator>", +unit = "<unit>", system = "<system>", code = "<code>", -name = "<name>", +}, +valueCodeableConcept = new +{ +id = "<id>", +coding = new object[] +{ +null +}, +text = "<text>", +}, +valueString = "<valueString>", +valueBoolean = true, +valueInteger = 1234, +valueRange = new +{ +id = "<id>", +}, +valueRatio = new +{ +id = "<id>", +}, +valueSampledData = new +{ +id = "<id>", +period = new object(), +factor = new object(), +lowerLimit = new object(), +upperLimit = new object(), +dimensions = 1234, +data = "<data>", +}, +valueTime = "01:23:45", +valueDateTime = "<valueDateTime>", +valuePeriod = new +{ +id = "<id>", +start = "<start>", +end = "<end>", +}, +valueReference = new +{ +id = "<id>", +reference = "<reference>", +type = "<type>", +identifier = new +{ +id = "<id>", +use = "<use>", +system = "<system>", value = "<value>", +}, +display = "<display>", +}, +} +}, +system = "<system>", +version = "<version>", +code = "<code>", +display = "<display>", +} +}, +tag = new object[] +{ +null +}, +}, +implicitRules = "<implicitRules>", +language = "<language>", } }, }, -data = new object[] +encounters = new object[] +{ +new Dictionary<string, object> +{ +["id"] = "<id>", +["period"] = new +{ +start = "2022-05-10T14:57:31.2311892-04:00", +end = "2022-05-10T14:57:31.2311892-04:00", +}, +["class"] = "inpatient" +} +}, +patientDocuments = new object[] { new { @@ -372,6 +681,30 @@ public async Task Example_ClinicalMatchingClient_MatchTrials_AllParameters_Async id = "<id>", language = "<language>", createdDateTime = "2022-05-10T14:57:31.2311892-04:00", +authors = new object[] +{ +new +{ +id = "<id>", +fullName = "<fullName>", +} +}, +specialtyType = "pathology", +administrativeMetadata = new +{ +orderedProcedures = new object[] +{ +new +{ +extension = new object[] +{ +null +}, +description = "<description>", +} +}, +encounterId = "<encounterId>", +}, content = new { sourceType = "inline", @@ -391,55 +724,125 @@ public async Task Example_ClinicalMatchingClient_MatchTrials_AllParameters_Async { new { +identifier = new object[] +{ +null +}, +title = "<title>", +protocol = new object[] +{ +null +}, +partOf = new object[] +{ +null +}, +status = "active", +category = new object[] +{ +null +}, +focus = new object[] +{ +null +}, +condition = new object[] +{ +null +}, +contact = new object[] +{ +new +{ id = "<id>", -eligibilityCriteriaText = "<eligibilityCriteriaText>", -demographics = new +extension = new object[] { -acceptedSex = "all", -acceptedAgeRange = new +null +}, +name = "<name>", +telecom = new object[] { -minimumAge = new +new { -unit = "years", -value = 123.45F, +system = "phone", +value = "<value>", +use = "home", +rank = 1234, +} }, +} }, +keyword = new object[] +{ +null }, -metadata = new +location = new object[] { -phases = new object[] +null +}, +description = "<description>", +enrollment = new object[] { -"notApplicable" +null }, -studyType = "interventional", -recruitmentStatus = "unknownStatus", -conditions = new object[] +site = new object[] { -"<conditions>" +null }, -sponsors = new object[] +note = new object[] { -"<sponsors>" +new +{ +id = "<id>", +extension = new object[] +{ +null }, -contacts = new object[] +authorString = "<authorString>", +time = "<time>", +text = "<text>", +} +}, +arm = new object[] { new { name = "<name>", -email = "<email>", -phone = "<phone>", +description = "<description>", } }, -facilities = new object[] +objective = new object[] { new { name = "<name>", -city = "<city>", -state = "<state>", -countryOrRegion = "<countryOrRegion>", } }, +resourceType = "ResearchStudy", +id = "<id>", +implicitRules = "<implicitRules>", +language = "<language>", +text = new +{ +id = "<id>", +extension = new object[] +{ +null +}, +status = "<status>", +div = "<div>", +}, +contained = new object[] +{ +null +}, +extension = new object[] +{ +null +}, +modifierExtension = new object[] +{ +null }, } }, @@ -521,41 +924,41 @@ public async Task Example_ClinicalMatchingClient_MatchTrials_AllParameters_Async BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("id").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("value").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("description").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("confidenceScore").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("eligibilityCriteriaEvidence").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("id").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("text").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("offset").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("length").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("system").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("name").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("value").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("importance").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("id").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("source").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("phases")[0].ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("studyType").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("recruitmentStatus").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("conditions")[0].ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("sponsors")[0].ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("contacts")[0].GetProperty("name").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("contacts")[0].GetProperty("email").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("contacts")[0].GetProperty("phone").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("facilities")[0].GetProperty("name").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("facilities")[0].GetProperty("city").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("facilities")[0].GetProperty("state").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("facilities")[0].GetProperty("countryOrRegion").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("neededClinicalInfo")[0].GetProperty("system").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("neededClinicalInfo")[0].GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("neededClinicalInfo")[0].GetProperty("name").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("neededClinicalInfo")[0].GetProperty("value").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("neededClinicalInfo")[0].GetProperty("semanticType").ToString()); - Console.WriteLine(result.GetProperty("patients")[0].GetProperty("neededClinicalInfo")[0].GetProperty("category").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("patientId").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("description").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("confidenceScore").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("eligibilityCriteriaEvidence").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("offset").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientDataEvidence").GetProperty("length").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("name").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("patientInfoEvidence").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("importance").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("clinicalTrialId").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("source").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("phases")[0].ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("studyType").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("recruitmentStatus").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("conditions")[0].ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("sponsors")[0].ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("contacts")[0].GetProperty("name").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("contacts")[0].GetProperty("email").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("contacts")[0].GetProperty("phone").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("facilities")[0].GetProperty("name").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("facilities")[0].GetProperty("city").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("facilities")[0].GetProperty("state").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("metadata").GetProperty("facilities")[0].GetProperty("countryOrRegion").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("neededClinicalInfo")[0].GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("neededClinicalInfo")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("neededClinicalInfo")[0].GetProperty("name").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("neededClinicalInfo")[0].GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("neededClinicalInfo")[0].GetProperty("semanticType").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("neededClinicalInfo")[0].GetProperty("category").ToString()); Console.WriteLine(result.GetProperty("modelVersion").ToString()); Console.WriteLine(result.GetProperty("knowledgeGraphLastUpdateDate").ToString()); } @@ -576,52 +979,182 @@ public void Example_ClinicalMatchingClient_MatchTrials_AllParameters_Convenience { Sex = PatientInfoSex.Female, BirthDate = DateTimeOffset.Parse("2022-05-10"), -ClinicalInfo = {new ClinicalCodedElement("<system>", "<code>") +ClinicalInfo = {new Resource("<resourceType>") { -Name = "<name>", +Id = "<id>", +Meta = new Meta +{ +VersionId = "<versionId>", +LastUpdated = "<lastUpdated>", +Source = "<source>", +Profile = {"<profile>"}, +Security = {new Coding +{ +Id = "<id>", +Extension = {new Extension("<url>") +{ +Id = "<id>", +ValueQuantity = new Quantity +{ +Id = "<id>", +Value = default, +Comparator = "<comparator>", +Unit = "<unit>", +System = "<system>", +Code = "<code>", +}, +ValueCodeableConcept = new CodeableConcept +{ +Id = "<id>", +Coding = {default}, +Text = "<text>", +}, +ValueString = "<valueString>", +ValueBoolean = true, +ValueInteger = 1234, +ValueRange = new Range +{ +Id = "<id>", +Low = default, +High = default, +}, +ValueRatio = new Ratio +{ +Id = "<id>", +Numerator = default, +Denominator = default, +}, +ValueSampledData = new SampledData(default, default, 1234) +{ +Id = "<id>", +Factor = default, +LowerLimit = default, +UpperLimit = default, +Data = "<data>", +}, +ValueTime = TimeSpan.Parse("01:23:45"), +ValueDateTime = "<valueDateTime>", +ValuePeriod = new Period +{ +Id = "<id>", +Start = "<start>", +End = "<end>", +}, +ValueReference = new Reference +{ +Id = "<id>", +ReferenceProperty = "<reference>", +Type = "<type>", +Identifier = new Identifier +{ +Id = "<id>", +Use = "<use>", +Type = default, +System = "<system>", Value = "<value>", +Period = default, +Assigner = default, +}, +Display = "<display>", +}, +}}, +System = "<system>", +Version = "<version>", +Code = "<code>", +Display = "<display>", +}}, +Tag = {default}, +}, +ImplicitRules = "<implicitRules>", +Language = "<language>", }}, }, -Data = {new PatientDocument(DocumentType.Note, "<id>", new DocumentContent(DocumentContentSourceType.Inline, "<value>")) +Encounters = {new Encounter("<id>") +{ +Period = new TimePeriod +{ +Start = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), +End = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), +}, +Class = EncounterClass.InPatient, +}}, +PatientDocuments = {new PatientDocument(DocumentType.Note, "<id>", new DocumentContent(DocumentContentSourceType.Inline, "<value>")) { ClinicalType = ClinicalDocumentType.Consultation, Language = "<language>", CreatedDateTime = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), +Authors = {new DocumentAuthor +{ +Id = "<id>", +FullName = "<fullName>", +}}, +SpecialtyType = SpecialtyType.Pathology, +AdministrativeMetadata = new DocumentAdministrativeMetadata +{ +OrderedProcedures = {new OrderedProcedure +{ +Extension = {default}, +Code = default, +Description = "<description>", +}}, +EncounterId = "<encounterId>", +}, }}, } }) { Configuration = new TrialMatcherModelConfiguration(new ClinicalTrials { - CustomTrials = {new ClinicalTrialDetails("<id>", new ClinicalTrialMetadata(new string[]{"<conditions>"}) -{ -Phases = {ClinicalTrialPhase.NotApplicable}, -StudyType = ClinicalTrialStudyType.Interventional, -RecruitmentStatus = ClinicalTrialRecruitmentStatus.UnknownStatus, -Sponsors = {"<sponsors>"}, -Contacts = {new ContactDetails -{ + CustomTrials = {new ResearchStudy(ResearchStudyStatusCodeType.Active) +{ +Identifier = {default}, +Title = "<title>", +Protocol = {default}, +PartOf = {default}, +PrimaryPurposeType = default, +Phase = default, +Category = {default}, +Focus = {default}, +Condition = {default}, +Contact = {new ContactDetail +{ +Id = "<id>", +Extension = {default}, Name = "<name>", -Email = "<email>", -Phone = "<phone>", -}}, -Facilities = {new ClinicalTrialResearchFacility("<name>", "<countryOrRegion>") +Telecom = {new ContactPoint { -City = "<city>", -State = "<state>", +System = ContactPointSystem.Phone, +Value = "<value>", +Use = ContactPointUse.Home, +Rank = 1234, +Period = default, }}, -}) -{ -EligibilityCriteriaText = "<eligibilityCriteriaText>", -Demographics = new ClinicalTrialDemographics +}}, +Keyword = {default}, +Location = {default}, +Description = "<description>", +Enrollment = {default}, +Period = default, +Sponsor = default, +PrincipalInvestigator = default, +Site = {default}, +ReasonStopped = default, +Note = {new Annotation("<text>") +{ +Id = "<id>", +Extension = {default}, +AuthorString = "<authorString>", +Time = "<time>", +}}, +Arm = {new ResearchStudyArm("<name>") { -AcceptedSex = ClinicalTrialAcceptedSex.All, -AcceptedAgeRange = new AcceptedAgeRange +Type = default, +Description = "<description>", +}}, +Objective = {new ResearchStudyObjective("<name>") { -MinimumAge = new AcceptedAge(AgeUnit.Years, 123.45F), -MaximumAge = default, -}, -}, +Type = default, +}}, }}, RegistryFilters = {new ClinicalTrialRegistryFilter { @@ -647,8 +1180,8 @@ public void Example_ClinicalMatchingClient_MatchTrials_AllParameters_Convenience IncludeEvidence = true, }, }; - Operation<TrialMatcherResults> operation = client.MatchTrials(WaitUntil.Completed, trialMatcherData); - TrialMatcherResults responseData = operation.Value; + Operation<TrialMatcherInferenceResult> operation = client.MatchTrials(WaitUntil.Completed, trialMatcherData); + TrialMatcherInferenceResult responseData = operation.Value; } [Test] @@ -667,52 +1200,182 @@ public async Task Example_ClinicalMatchingClient_MatchTrials_AllParameters_Conve { Sex = PatientInfoSex.Female, BirthDate = DateTimeOffset.Parse("2022-05-10"), -ClinicalInfo = {new ClinicalCodedElement("<system>", "<code>") +ClinicalInfo = {new Resource("<resourceType>") { -Name = "<name>", +Id = "<id>", +Meta = new Meta +{ +VersionId = "<versionId>", +LastUpdated = "<lastUpdated>", +Source = "<source>", +Profile = {"<profile>"}, +Security = {new Coding +{ +Id = "<id>", +Extension = {new Extension("<url>") +{ +Id = "<id>", +ValueQuantity = new Quantity +{ +Id = "<id>", +Value = default, +Comparator = "<comparator>", +Unit = "<unit>", +System = "<system>", +Code = "<code>", +}, +ValueCodeableConcept = new CodeableConcept +{ +Id = "<id>", +Coding = {default}, +Text = "<text>", +}, +ValueString = "<valueString>", +ValueBoolean = true, +ValueInteger = 1234, +ValueRange = new Range +{ +Id = "<id>", +Low = default, +High = default, +}, +ValueRatio = new Ratio +{ +Id = "<id>", +Numerator = default, +Denominator = default, +}, +ValueSampledData = new SampledData(default, default, 1234) +{ +Id = "<id>", +Factor = default, +LowerLimit = default, +UpperLimit = default, +Data = "<data>", +}, +ValueTime = TimeSpan.Parse("01:23:45"), +ValueDateTime = "<valueDateTime>", +ValuePeriod = new Period +{ +Id = "<id>", +Start = "<start>", +End = "<end>", +}, +ValueReference = new Reference +{ +Id = "<id>", +ReferenceProperty = "<reference>", +Type = "<type>", +Identifier = new Identifier +{ +Id = "<id>", +Use = "<use>", +Type = default, +System = "<system>", Value = "<value>", +Period = default, +Assigner = default, +}, +Display = "<display>", +}, +}}, +System = "<system>", +Version = "<version>", +Code = "<code>", +Display = "<display>", +}}, +Tag = {default}, +}, +ImplicitRules = "<implicitRules>", +Language = "<language>", }}, }, -Data = {new PatientDocument(DocumentType.Note, "<id>", new DocumentContent(DocumentContentSourceType.Inline, "<value>")) +Encounters = {new Encounter("<id>") +{ +Period = new TimePeriod +{ +Start = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), +End = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), +}, +Class = EncounterClass.InPatient, +}}, +PatientDocuments = {new PatientDocument(DocumentType.Note, "<id>", new DocumentContent(DocumentContentSourceType.Inline, "<value>")) { ClinicalType = ClinicalDocumentType.Consultation, Language = "<language>", CreatedDateTime = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), +Authors = {new DocumentAuthor +{ +Id = "<id>", +FullName = "<fullName>", +}}, +SpecialtyType = SpecialtyType.Pathology, +AdministrativeMetadata = new DocumentAdministrativeMetadata +{ +OrderedProcedures = {new OrderedProcedure +{ +Extension = {default}, +Code = default, +Description = "<description>", +}}, +EncounterId = "<encounterId>", +}, }}, } }) { Configuration = new TrialMatcherModelConfiguration(new ClinicalTrials { - CustomTrials = {new ClinicalTrialDetails("<id>", new ClinicalTrialMetadata(new string[]{"<conditions>"}) -{ -Phases = {ClinicalTrialPhase.NotApplicable}, -StudyType = ClinicalTrialStudyType.Interventional, -RecruitmentStatus = ClinicalTrialRecruitmentStatus.UnknownStatus, -Sponsors = {"<sponsors>"}, -Contacts = {new ContactDetails -{ + CustomTrials = {new ResearchStudy(ResearchStudyStatusCodeType.Active) +{ +Identifier = {default}, +Title = "<title>", +Protocol = {default}, +PartOf = {default}, +PrimaryPurposeType = default, +Phase = default, +Category = {default}, +Focus = {default}, +Condition = {default}, +Contact = {new ContactDetail +{ +Id = "<id>", +Extension = {default}, Name = "<name>", -Email = "<email>", -Phone = "<phone>", -}}, -Facilities = {new ClinicalTrialResearchFacility("<name>", "<countryOrRegion>") +Telecom = {new ContactPoint { -City = "<city>", -State = "<state>", +System = ContactPointSystem.Phone, +Value = "<value>", +Use = ContactPointUse.Home, +Rank = 1234, +Period = default, }}, -}) -{ -EligibilityCriteriaText = "<eligibilityCriteriaText>", -Demographics = new ClinicalTrialDemographics +}}, +Keyword = {default}, +Location = {default}, +Description = "<description>", +Enrollment = {default}, +Period = default, +Sponsor = default, +PrincipalInvestigator = default, +Site = {default}, +ReasonStopped = default, +Note = {new Annotation("<text>") +{ +Id = "<id>", +Extension = {default}, +AuthorString = "<authorString>", +Time = "<time>", +}}, +Arm = {new ResearchStudyArm("<name>") { -AcceptedSex = ClinicalTrialAcceptedSex.All, -AcceptedAgeRange = new AcceptedAgeRange +Type = default, +Description = "<description>", +}}, +Objective = {new ResearchStudyObjective("<name>") { -MinimumAge = new AcceptedAge(AgeUnit.Years, 123.45F), -MaximumAge = default, -}, -}, +Type = default, +}}, }}, RegistryFilters = {new ClinicalTrialRegistryFilter { @@ -738,8 +1401,8 @@ public async Task Example_ClinicalMatchingClient_MatchTrials_AllParameters_Conve IncludeEvidence = true, }, }; - Operation<TrialMatcherResults> operation = await client.MatchTrialsAsync(WaitUntil.Completed, trialMatcherData); - TrialMatcherResults responseData = operation.Value; + Operation<TrialMatcherInferenceResult> operation = await client.MatchTrialsAsync(WaitUntil.Completed, trialMatcherData); + TrialMatcherInferenceResult responseData = operation.Value; } } } diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/tsp-location.yaml b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/tsp-location.yaml index 5090e5d21c9f1..b32a66a1f660c 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/tsp-location.yaml +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/tsp-location.yaml @@ -1,6 +1,7 @@ -directory: specification/ai/HealthInsights/HealthInsights.TrialMatcher/ +repo: Azure/azure-rest-api-specs +commit: 3025b3f6f47b628c17b60d5d5c553cf123845ecd +directory: specification/ai/HealthInsights/HealthInsights.TrialMatcher additionalDirectories: - - specification/ai/HealthInsights/HealthInsights.OpenAPI/ - - specification/ai/HealthInsights/HealthInsights.Common/ -commit: 5e0c86b469be528174996420da94388ac12ce127 -repo: azure/azure-rest-api-specs +- specification/ai/HealthInsights/HealthInsights.Common/ +- specification/ai/HealthInsights/HealthInsights.OpenAPI/ + diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/Azure.Health.Insights.PatientTimeline.sln b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/Azure.Health.Insights.PatientTimeline.sln new file mode 100644 index 0000000000000..4ece5bfe7b4c7 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/Azure.Health.Insights.PatientTimeline.sln @@ -0,0 +1,56 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.29709.97 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Core.TestFramework", "..\..\core\Azure.Core.TestFramework\src\Azure.Core.TestFramework.csproj", "{ECC730C1-4AEA-420C-916A-66B19B79E4DC}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.Health.Insights.PatientTimeline", "src\Azure.Health.Insights.PatientTimeline.csproj", "{28FF4005-4467-4E36-92E7-DEA27DEB1519}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.Health.Insights.PatientTimeline.Tests", "tests\Azure.Health.Insights.PatientTimeline.Tests.csproj", "{1F1CD1D4-9932-4B73-99D8-C252A67D4B46}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Release|Any CPU.Build.0 = Release|Any CPU + {8E9A77AC-792A-4432-8320-ACFD46730401}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8E9A77AC-792A-4432-8320-ACFD46730401}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8E9A77AC-792A-4432-8320-ACFD46730401}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8E9A77AC-792A-4432-8320-ACFD46730401}.Release|Any CPU.Build.0 = Release|Any CPU + {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Release|Any CPU.Build.0 = Release|Any CPU + {A4241C1F-A53D-474C-9E4E-075054407E74}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A4241C1F-A53D-474C-9E4E-075054407E74}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A4241C1F-A53D-474C-9E4E-075054407E74}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A4241C1F-A53D-474C-9E4E-075054407E74}.Release|Any CPU.Build.0 = Release|Any CPU + {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Release|Any CPU.Build.0 = Release|Any CPU + {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Release|Any CPU.Build.0 = Release|Any CPU + {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.Build.0 = Debug|Any CPU + {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.ActiveCfg = Release|Any CPU + {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.Build.0 = Release|Any CPU + {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {A97F4B90-2591-4689-B1F8-5F21FE6D6CAE} + EndGlobalSection +EndGlobal diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/CHANGELOG.md b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/CHANGELOG.md new file mode 100644 index 0000000000000..13dd08af78abe --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/CHANGELOG.md @@ -0,0 +1,11 @@ +# Release History + +## 1.0.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/Directory.Build.props b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/Directory.Build.props new file mode 100644 index 0000000000000..63bd836ad44b7 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/Directory.Build.props @@ -0,0 +1,6 @@ +<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <!-- + Add any shared properties you want for the projects under this package directory that need to be set before the auto imported Directory.Build.props + --> + <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., Directory.Build.props))\Directory.Build.props" /> +</Project> diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/README.md b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/README.md new file mode 100644 index 0000000000000..e58950b9d1568 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/README.md @@ -0,0 +1,86 @@ +# Azure.Health.Insights.PatientTimeline client library for .NET + +Azure.Health.Insights.PatientTimeline is a managed service that helps developers get secret simply and securely. + +Use the client library for to: + +* [Get secret](https://docs.microsoft.com/azure) + +[Source code][source_root] | [Package (NuGet)][package] | [API reference documentation][reference_docs] | [Product documentation][azconfig_docs] | [Samples][source_samples] + + [Source code](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src) | [Package (NuGet)](https://www.nuget.org/packages) | [API reference documentation](https://azure.github.io/azure-sdk-for-net) | [Product documentation](https://docs.microsoft.com/azure) + +## Getting started + +This section should include everything a developer needs to do to install and create their first client connection *very quickly*. + +### Install the package + +First, provide instruction for obtaining and installing the package or library. This section might include only a single line of code, like `dotnet add package package-name`, but should enable a developer to successfully install the package from NuGet, npm, or even cloning a GitHub repository. + +Install the client library for .NET with [NuGet](https://www.nuget.org/ ): + +```dotnetcli +dotnet add package Azure.Health.Insights.PatientTimeline --prerelease +``` + +### Prerequisites + +Include a section after the install command that details any requirements that must be satisfied before a developer can [authenticate](#authenticate-the-client) and test all of the snippets in the [Examples](#examples) section. For example, for Cosmos DB: + +> You must have an [Azure subscription](https://azure.microsoft.com/free/dotnet/) and [Cosmos DB account](https://docs.microsoft.com/azure/cosmos-db/account-overview) (SQL API). In order to take advantage of the C# 8.0 syntax, it is recommended that you compile using the [.NET Core SDK](https://dotnet.microsoft.com/download) 3.0 or higher with a [language version](https://docs.microsoft.com/dotnet/csharp/language-reference/configure-language-version#override-a-default) of `latest`. It is also possible to compile with the .NET Core SDK 2.1.x using a language version of `preview`. + +### Authenticate the client + +If your library requires authentication for use, such as for Azure services, include instructions and example code needed for initializing and authenticating. + +For example, include details on obtaining an account key and endpoint URI, setting environment variables for each, and initializing the client object. + +## Key concepts + +The *Key concepts* section should describe the functionality of the main classes. Point out the most important and useful classes in the package (with links to their reference pages) and explain how those classes work together. Feel free to use bulleted lists, tables, code blocks, or even diagrams for clarity. + +Include the *Thread safety* and *Additional concepts* sections below at the end of your *Key concepts* section. You may remove or add links depending on what your library makes use of: + +### Thread safety + +We guarantee that all client instance methods are thread-safe and independent of each other ([guideline](https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-service-methods-thread-safety)). This ensures that the recommendation of reusing client instances is always safe, even across threads. + +### Additional concepts +<!-- CLIENT COMMON BAR --> +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | +[Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) +<!-- CLIENT COMMON BAR --> + +## Examples + +You can familiarize yourself with different APIs using [Samples](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/samples). + +## Troubleshooting + +Describe common errors and exceptions, how to "unpack" them if necessary, and include guidance for graceful handling and recovery. + +Provide information to help developers avoid throttling or other service-enforced errors they might encounter. For example, provide guidance and examples for using retry or connection policies in the API. + +If the package or a related package supports it, include tips for logging or enabling instrumentation to help them debug their code. + +## Next steps + +* Provide a link to additional code examples, ideally to those sitting alongside the README in the package's `/samples` directory. +* If appropriate, point users to other packages that might be useful. +* If you think there's a good chance that developers might stumble across your package in error (because they're searching for specific functionality and mistakenly think the package provides that functionality), point them to the packages they might be looking for. + +## Contributing + +This is a template, but your SDK readme should include details on how to contribute code to the repo/package. + +<!-- LINKS --> +[style-guide-msft]: https://docs.microsoft.com/style-guide/capitalization +[style-guide-cloud]: https://aka.ms/azsdk/cloud-style-guide + +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/README.png) diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Azure.Health.Insights.PatientTimeline.csproj b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Azure.Health.Insights.PatientTimeline.csproj new file mode 100644 index 0000000000000..8ba698e5b509d --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Azure.Health.Insights.PatientTimeline.csproj @@ -0,0 +1,20 @@ +<Project Sdk="Microsoft.NET.Sdk"> + <PropertyGroup> + <Description>This is the Azure.Health.Insights.PatientTimeline client library for developing .NET applications with rich experience.</Description> + <AssemblyTitle>Azure SDK Code Generation Azure.Health.Insights.PatientTimeline for Azure Data Plane</AssemblyTitle> + <Version>1.0.0-beta.1</Version> + <PackageTags>Azure.Health.Insights.PatientTimeline</PackageTags> + <TargetFrameworks>$(RequiredTargetFrameworks)</TargetFrameworks> + <IncludeOperationsSharedSource>true</IncludeOperationsSharedSource> + </PropertyGroup> + + <ItemGroup> + <Compile Include="$(AzureCoreSharedSources)AzureResourceProviderNamespaceAttribute.cs" LinkBase="Shared/Core" /> + <Compile Include="$(AzureCoreSharedSources)AzureKeyCredentialPolicy.cs" LinkBase="Shared/Core" /> + </ItemGroup> + + <ItemGroup> + <PackageReference Include="Azure.Core" /> + <PackageReference Include="System.Text.Json" /> + </ItemGroup> +</Project> diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/ClinicalDocumentType.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/ClinicalDocumentType.cs new file mode 100644 index 0000000000000..da7de4d27c387 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/ClinicalDocumentType.cs @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Health.Insights.PatientTimeline +{ + /// <summary> The type of the clinical document. </summary> + public readonly partial struct ClinicalDocumentType : IEquatable<ClinicalDocumentType> + { + private readonly string _value; + + /// <summary> Initializes a new instance of <see cref="ClinicalDocumentType"/>. </summary> + /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception> + public ClinicalDocumentType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ConsultationValue = "consultation"; + private const string DischargeSummaryValue = "dischargeSummary"; + private const string HistoryAndPhysicalValue = "historyAndPhysical"; + private const string RadiologyReportValue = "radiologyReport"; + private const string ProcedureValue = "procedure"; + private const string ProgressValue = "progress"; + private const string LaboratoryValue = "laboratory"; + private const string PathologyReportValue = "pathologyReport"; + + /// <summary> consultation. </summary> + public static ClinicalDocumentType Consultation { get; } = new ClinicalDocumentType(ConsultationValue); + /// <summary> dischargeSummary. </summary> + public static ClinicalDocumentType DischargeSummary { get; } = new ClinicalDocumentType(DischargeSummaryValue); + /// <summary> historyAndPhysical. </summary> + public static ClinicalDocumentType HistoryAndPhysical { get; } = new ClinicalDocumentType(HistoryAndPhysicalValue); + /// <summary> radiologyReport. </summary> + public static ClinicalDocumentType RadiologyReport { get; } = new ClinicalDocumentType(RadiologyReportValue); + /// <summary> procedure. </summary> + public static ClinicalDocumentType Procedure { get; } = new ClinicalDocumentType(ProcedureValue); + /// <summary> progress. </summary> + public static ClinicalDocumentType Progress { get; } = new ClinicalDocumentType(ProgressValue); + /// <summary> laboratory. </summary> + public static ClinicalDocumentType Laboratory { get; } = new ClinicalDocumentType(LaboratoryValue); + /// <summary> pathologyReport. </summary> + public static ClinicalDocumentType PathologyReport { get; } = new ClinicalDocumentType(PathologyReportValue); + /// <summary> Determines if two <see cref="ClinicalDocumentType"/> values are the same. </summary> + public static bool operator ==(ClinicalDocumentType left, ClinicalDocumentType right) => left.Equals(right); + /// <summary> Determines if two <see cref="ClinicalDocumentType"/> values are not the same. </summary> + public static bool operator !=(ClinicalDocumentType left, ClinicalDocumentType right) => !left.Equals(right); + /// <summary> Converts a string to a <see cref="ClinicalDocumentType"/>. </summary> + public static implicit operator ClinicalDocumentType(string value) => new ClinicalDocumentType(value); + + /// <inheritdoc /> + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ClinicalDocumentType other && Equals(other); + /// <inheritdoc /> + public bool Equals(ClinicalDocumentType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// <inheritdoc /> + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// <inheritdoc /> + public override string ToString() => _value; + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/CodeableConcept.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/CodeableConcept.Serialization.cs new file mode 100644 index 0000000000000..72e90d73a0d85 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/CodeableConcept.Serialization.cs @@ -0,0 +1,123 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + public partial class CodeableConcept : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(Coding)) + { + writer.WritePropertyName("coding"u8); + writer.WriteStartArray(); + foreach (var item in Coding) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(Text)) + { + writer.WritePropertyName("text"u8); + writer.WriteStringValue(Text); + } + writer.WriteEndObject(); + } + + internal static CodeableConcept DeserializeCodeableConcept(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional<string> id = default; + Optional<IList<Extension>> extension = default; + Optional<IList<Coding>> coding = default; + Optional<string> text = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(PatientTimeline.Extension.DeserializeExtension(item)); + } + extension = array; + continue; + } + if (property.NameEquals("coding"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Coding> array = new List<Coding>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(PatientTimeline.Coding.DeserializeCoding(item)); + } + coding = array; + continue; + } + if (property.NameEquals("text"u8)) + { + text = property.Value.GetString(); + continue; + } + } + return new CodeableConcept(id.Value, Optional.ToList(extension), Optional.ToList(coding), text.Value); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static CodeableConcept FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCodeableConcept(document.RootElement); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/CodeableConcept.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/CodeableConcept.cs new file mode 100644 index 0000000000000..82980625d8a4d --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/CodeableConcept.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + /// <summary> + /// Concept - reference to a terminology or just text + /// Based on [FHIR CodeableConcept](https://www.hl7.org/fhir/R4/datatypes.html#CodeableConcept) + /// </summary> + public partial class CodeableConcept + { + /// <summary> Initializes a new instance of <see cref="CodeableConcept"/>. </summary> + public CodeableConcept() + { + Extension = new ChangeTrackingList<Extension>(); + Coding = new ChangeTrackingList<Coding>(); + } + + /// <summary> Initializes a new instance of <see cref="CodeableConcept"/>. </summary> + /// <param name="id"> Unique id for inter-element referencing. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="coding"> Code defined by a terminology system. </param> + /// <param name="text"> Plain text representation of the concept. </param> + internal CodeableConcept(string id, IList<Extension> extension, IList<Coding> coding, string text) + { + Id = id; + Extension = extension; + Coding = coding; + Text = text; + } + + /// <summary> Unique id for inter-element referencing. </summary> + public string Id { get; set; } + /// <summary> Additional Content defined by implementations. </summary> + public IList<Extension> Extension { get; } + /// <summary> Code defined by a terminology system. </summary> + public IList<Coding> Coding { get; } + /// <summary> Plain text representation of the concept. </summary> + public string Text { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Coding.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Coding.Serialization.cs new file mode 100644 index 0000000000000..d2f6aafbf6ecd --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Coding.Serialization.cs @@ -0,0 +1,131 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + public partial class Coding : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(System)) + { + writer.WritePropertyName("system"u8); + writer.WriteStringValue(System); + } + if (Optional.IsDefined(Version)) + { + writer.WritePropertyName("version"u8); + writer.WriteStringValue(Version); + } + if (Optional.IsDefined(Code)) + { + writer.WritePropertyName("code"u8); + writer.WriteStringValue(Code); + } + if (Optional.IsDefined(Display)) + { + writer.WritePropertyName("display"u8); + writer.WriteStringValue(Display); + } + writer.WriteEndObject(); + } + + internal static Coding DeserializeCoding(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional<string> id = default; + Optional<IList<Extension>> extension = default; + Optional<string> system = default; + Optional<string> version = default; + Optional<string> code = default; + Optional<string> display = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(PatientTimeline.Extension.DeserializeExtension(item)); + } + extension = array; + continue; + } + if (property.NameEquals("system"u8)) + { + system = property.Value.GetString(); + continue; + } + if (property.NameEquals("version"u8)) + { + version = property.Value.GetString(); + continue; + } + if (property.NameEquals("code"u8)) + { + code = property.Value.GetString(); + continue; + } + if (property.NameEquals("display"u8)) + { + display = property.Value.GetString(); + continue; + } + } + return new Coding(id.Value, Optional.ToList(extension), system.Value, version.Value, code.Value, display.Value); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static Coding FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCoding(document.RootElement); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Coding.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Coding.cs new file mode 100644 index 0000000000000..8360f941c5928 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Coding.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + /// <summary> + /// A Coding is a representation of a defined concept using a symbol from a defined "code system". + /// Based on [FHIR Coding](https://www.hl7.org/fhir/R4/datatypes.html#Coding) + /// </summary> + public partial class Coding + { + /// <summary> Initializes a new instance of <see cref="Coding"/>. </summary> + public Coding() + { + Extension = new ChangeTrackingList<Extension>(); + } + + /// <summary> Initializes a new instance of <see cref="Coding"/>. </summary> + /// <param name="id"> Unique id for inter-element referencing. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="system"> Identity of the terminology system. </param> + /// <param name="version"> Version of the system - if relevant. </param> + /// <param name="code"> Symbol in syntax defined by the system. </param> + /// <param name="display"> Representation defined by the system. </param> + internal Coding(string id, IList<Extension> extension, string system, string version, string code, string display) + { + Id = id; + Extension = extension; + System = system; + Version = version; + Code = code; + Display = display; + } + + /// <summary> Unique id for inter-element referencing. </summary> + public string Id { get; set; } + /// <summary> Additional Content defined by implementations. </summary> + public IList<Extension> Extension { get; } + /// <summary> Identity of the terminology system. </summary> + public string System { get; set; } + /// <summary> Version of the system - if relevant. </summary> + public string Version { get; set; } + /// <summary> Symbol in syntax defined by the system. </summary> + public string Code { get; set; } + /// <summary> Representation defined by the system. </summary> + public string Display { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Docs/PatientTimelineClient.xml b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Docs/PatientTimelineClient.xml new file mode 100644 index 0000000000000..5fb099ff0bac8 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Docs/PatientTimelineClient.xml @@ -0,0 +1,2139 @@ +<?xml version="1.0" encoding="utf-8"?> +<doc> + <members> + <member name="InferPatientTimelineAsync(WaitUntil,PatientTimelineData,CancellationToken)"> + <example> +This sample shows how to call InferPatientTimelineAsync. +<code><![CDATA[ +Uri endpoint = new Uri("<https://my-service.azure.com>"); +AzureKeyCredential credential = new AzureKeyCredential("<key>"); +PatientTimelineClient client = new PatientTimelineClient(endpoint, credential); + +PatientTimelineData patientTimelineData = new PatientTimelineData(new PatientRecord[] +{ + new PatientRecord("<id>") +}); +Operation<PatientTimelineInferenceResult> operation = await client.InferPatientTimelineAsync(WaitUntil.Completed, patientTimelineData); +PatientTimelineInferenceResult responseData = operation.Value; +]]></code> +This sample shows how to call InferPatientTimelineAsync with all parameters. +<code><![CDATA[ +Uri endpoint = new Uri("<https://my-service.azure.com>"); +AzureKeyCredential credential = new AzureKeyCredential("<key>"); +PatientTimelineClient client = new PatientTimelineClient(endpoint, credential); + +PatientTimelineData patientTimelineData = new PatientTimelineData(new PatientRecord[] +{ + new PatientRecord("<id>") + { + Info = new PatientInfo + { + Sex = PatientInfoSex.Female, + BirthDate = DateTimeOffset.Parse("2022-05-10"), + ClinicalInfo = {new Resource("<resourceType>") + { + Id = "<id>", + Meta = new Meta + { + VersionId = "<versionId>", + LastUpdated = "<lastUpdated>", + Source = "<source>", + Profile = {"<profile>"}, + Security = {new Coding + { + Id = "<id>", + Extension = {new Extension("<url>") + { + Id = "<id>", + ExtensionProperty = {default}, + ValueQuantity = new Quantity + { + Id = "<id>", + Extension = {default}, + Value = default, + Comparator = "<comparator>", + Unit = "<unit>", + System = "<system>", + Code = "<code>", + }, + ValueCodeableConcept = new CodeableConcept + { + Id = "<id>", + Extension = {default}, + Coding = {default}, + Text = "<text>", + }, + ValueString = "<valueString>", + ValueBoolean = true, + ValueInteger = 1234, + ValueRange = new Range + { + Id = "<id>", + Extension = {default}, + Low = default, + High = default, + }, + ValueRatio = new Ratio + { + Id = "<id>", + Extension = {default}, + Numerator = default, + Denominator = default, + }, + ValueSampledData = new SampledData(default, default, 1234) + { + Id = "<id>", + Extension = {default}, + Factor = default, + LowerLimit = default, + UpperLimit = default, + Data = "<data>", + }, + ValueTime = TimeSpan.Parse("01:23:45"), + ValueDateTime = "<valueDateTime>", + ValuePeriod = new Period + { + Id = "<id>", + Extension = {default}, + Start = "<start>", + End = "<end>", + }, + ValueReference = new Reference + { + Id = "<id>", + Extension = {default}, + ReferenceProperty = "<reference>", + Type = "<type>", + Identifier = new Identifier + { + Id = "<id>", + Extension = {default}, + Use = "<use>", + Type = default, + System = "<system>", + Value = "<value>", + Period = default, + Assigner = default, + }, + Display = "<display>", + }, + }}, + System = "<system>", + Version = "<version>", + Code = "<code>", + Display = "<display>", + }}, + Tag = {default}, + }, + ImplicitRules = "<implicitRules>", + Language = "<language>", + }}, + }, + Encounters = {new Encounter("<id>") + { + Period = new TimePeriod + { + Start = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), + End = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), + }, + Class = EncounterClass.InPatient, + }}, + PatientDocuments = {new PatientDocument(DocumentType.Note, "<id>", new DocumentContent(DocumentContentSourceType.Inline, "<value>")) + { + ClinicalType = ClinicalDocumentType.Consultation, + Language = "<language>", + CreatedDateTime = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), + Authors = {new DocumentAuthor + { + Id = "<id>", + FullName = "<fullName>", + }}, + SpecialtyType = SpecialtyType.Pathology, + AdministrativeMetadata = new DocumentAdministrativeMetadata + { + OrderedProcedures = {new OrderedProcedure + { + Extension = {default}, + Code = default, + Description = "<description>", + }}, + EncounterId = "<encounterId>", + }, + }}, + } +}) +{ + Configuration = new PatientTimelineModelConfiguration + { + Verbose = true, + IncludeEvidence = true, + }, +}; +Operation<PatientTimelineInferenceResult> operation = await client.InferPatientTimelineAsync(WaitUntil.Completed, patientTimelineData); +PatientTimelineInferenceResult responseData = operation.Value; +]]></code></example> + </member> + <member name="InferPatientTimeline(WaitUntil,PatientTimelineData,CancellationToken)"> + <example> +This sample shows how to call InferPatientTimeline. +<code><![CDATA[ +Uri endpoint = new Uri("<https://my-service.azure.com>"); +AzureKeyCredential credential = new AzureKeyCredential("<key>"); +PatientTimelineClient client = new PatientTimelineClient(endpoint, credential); + +PatientTimelineData patientTimelineData = new PatientTimelineData(new PatientRecord[] +{ + new PatientRecord("<id>") +}); +Operation<PatientTimelineInferenceResult> operation = client.InferPatientTimeline(WaitUntil.Completed, patientTimelineData); +PatientTimelineInferenceResult responseData = operation.Value; +]]></code> +This sample shows how to call InferPatientTimeline with all parameters. +<code><![CDATA[ +Uri endpoint = new Uri("<https://my-service.azure.com>"); +AzureKeyCredential credential = new AzureKeyCredential("<key>"); +PatientTimelineClient client = new PatientTimelineClient(endpoint, credential); + +PatientTimelineData patientTimelineData = new PatientTimelineData(new PatientRecord[] +{ + new PatientRecord("<id>") + { + Info = new PatientInfo + { + Sex = PatientInfoSex.Female, + BirthDate = DateTimeOffset.Parse("2022-05-10"), + ClinicalInfo = {new Resource("<resourceType>") + { + Id = "<id>", + Meta = new Meta + { + VersionId = "<versionId>", + LastUpdated = "<lastUpdated>", + Source = "<source>", + Profile = {"<profile>"}, + Security = {new Coding + { + Id = "<id>", + Extension = {new Extension("<url>") + { + Id = "<id>", + ExtensionProperty = {default}, + ValueQuantity = new Quantity + { + Id = "<id>", + Extension = {default}, + Value = default, + Comparator = "<comparator>", + Unit = "<unit>", + System = "<system>", + Code = "<code>", + }, + ValueCodeableConcept = new CodeableConcept + { + Id = "<id>", + Extension = {default}, + Coding = {default}, + Text = "<text>", + }, + ValueString = "<valueString>", + ValueBoolean = true, + ValueInteger = 1234, + ValueRange = new Range + { + Id = "<id>", + Extension = {default}, + Low = default, + High = default, + }, + ValueRatio = new Ratio + { + Id = "<id>", + Extension = {default}, + Numerator = default, + Denominator = default, + }, + ValueSampledData = new SampledData(default, default, 1234) + { + Id = "<id>", + Extension = {default}, + Factor = default, + LowerLimit = default, + UpperLimit = default, + Data = "<data>", + }, + ValueTime = TimeSpan.Parse("01:23:45"), + ValueDateTime = "<valueDateTime>", + ValuePeriod = new Period + { + Id = "<id>", + Extension = {default}, + Start = "<start>", + End = "<end>", + }, + ValueReference = new Reference + { + Id = "<id>", + Extension = {default}, + ReferenceProperty = "<reference>", + Type = "<type>", + Identifier = new Identifier + { + Id = "<id>", + Extension = {default}, + Use = "<use>", + Type = default, + System = "<system>", + Value = "<value>", + Period = default, + Assigner = default, + }, + Display = "<display>", + }, + }}, + System = "<system>", + Version = "<version>", + Code = "<code>", + Display = "<display>", + }}, + Tag = {default}, + }, + ImplicitRules = "<implicitRules>", + Language = "<language>", + }}, + }, + Encounters = {new Encounter("<id>") + { + Period = new TimePeriod + { + Start = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), + End = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), + }, + Class = EncounterClass.InPatient, + }}, + PatientDocuments = {new PatientDocument(DocumentType.Note, "<id>", new DocumentContent(DocumentContentSourceType.Inline, "<value>")) + { + ClinicalType = ClinicalDocumentType.Consultation, + Language = "<language>", + CreatedDateTime = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), + Authors = {new DocumentAuthor + { + Id = "<id>", + FullName = "<fullName>", + }}, + SpecialtyType = SpecialtyType.Pathology, + AdministrativeMetadata = new DocumentAdministrativeMetadata + { + OrderedProcedures = {new OrderedProcedure + { + Extension = {default}, + Code = default, + Description = "<description>", + }}, + EncounterId = "<encounterId>", + }, + }}, + } +}) +{ + Configuration = new PatientTimelineModelConfiguration + { + Verbose = true, + IncludeEvidence = true, + }, +}; +Operation<PatientTimelineInferenceResult> operation = client.InferPatientTimeline(WaitUntil.Completed, patientTimelineData); +PatientTimelineInferenceResult responseData = operation.Value; +]]></code></example> + </member> + <member name="InferPatientTimelineAsync(WaitUntil,RequestContent,RequestContext)"> + <example> +This sample shows how to call InferPatientTimelineAsync and parse the result. +<code><![CDATA[ +Uri endpoint = new Uri("<https://my-service.azure.com>"); +AzureKeyCredential credential = new AzureKeyCredential("<key>"); +PatientTimelineClient client = new PatientTimelineClient(endpoint, credential); + +using RequestContent content = RequestContent.Create(new +{ + patients = new object[] + { + new + { + id = "<id>", + } + }, +}); +Operation<BinaryData> operation = await client.InferPatientTimelineAsync(WaitUntil.Completed, content); +BinaryData responseData = operation.Value; + +JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("patientId").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); +Console.WriteLine(result.GetProperty("modelVersion").ToString()); +]]></code> +This sample shows how to call InferPatientTimelineAsync with all parameters and request content and parse the result. +<code><![CDATA[ +Uri endpoint = new Uri("<https://my-service.azure.com>"); +AzureKeyCredential credential = new AzureKeyCredential("<key>"); +PatientTimelineClient client = new PatientTimelineClient(endpoint, credential); + +using RequestContent content = RequestContent.Create(new +{ + patients = new object[] + { + new + { + id = "<id>", + info = new + { + sex = "female", + birthDate = "2022-05-10", + clinicalInfo = new object[] + { + new + { + resourceType = "<resourceType>", + id = "<id>", + meta = new + { + versionId = "<versionId>", + lastUpdated = "<lastUpdated>", + source = "<source>", + profile = new object[] + { + "<profile>" + }, + security = new object[] + { + new + { + id = "<id>", + extension = new object[] + { + new + { + id = "<id>", + extension = new object[] + { + null + }, + url = "<url>", + valueQuantity = new + { + id = "<id>", + extension = new object[] + { + null + }, + value = new object(), + comparator = "<comparator>", + unit = "<unit>", + system = "<system>", + code = "<code>", + }, + valueCodeableConcept = new + { + id = "<id>", + extension = new object[] + { + null + }, + coding = new object[] + { + null + }, + text = "<text>", + }, + valueString = "<valueString>", + valueBoolean = true, + valueInteger = 1234, + valueRange = new + { + id = "<id>", + extension = new object[] + { + null + }, + }, + valueRatio = new + { + id = "<id>", + extension = new object[] + { + null + }, + }, + valueSampledData = new + { + id = "<id>", + extension = new object[] + { + null + }, + period = new object(), + factor = new object(), + lowerLimit = new object(), + upperLimit = new object(), + dimensions = 1234, + data = "<data>", + }, + valueTime = "01:23:45", + valueDateTime = "<valueDateTime>", + valuePeriod = new + { + id = "<id>", + extension = new object[] + { + null + }, + start = "<start>", + end = "<end>", + }, + valueReference = new + { + id = "<id>", + extension = new object[] + { + null + }, + reference = "<reference>", + type = "<type>", + identifier = new + { + id = "<id>", + extension = new object[] + { + null + }, + use = "<use>", + system = "<system>", + value = "<value>", + }, + display = "<display>", + }, + } + }, + system = "<system>", + version = "<version>", + code = "<code>", + display = "<display>", + } + }, + tag = new object[] + { + null + }, + }, + implicitRules = "<implicitRules>", + language = "<language>", + } + }, + }, + encounters = new object[] + { + new Dictionary<string, object> + { + ["id"] = "<id>", + ["period"] = new + { + start = "2022-05-10T14:57:31.2311892-04:00", + end = "2022-05-10T14:57:31.2311892-04:00", + }, + ["class"] = "inpatient" + } + }, + patientDocuments = new object[] + { + new + { + type = "note", + clinicalType = "consultation", + id = "<id>", + language = "<language>", + createdDateTime = "2022-05-10T14:57:31.2311892-04:00", + authors = new object[] + { + new + { + id = "<id>", + fullName = "<fullName>", + } + }, + specialtyType = "pathology", + administrativeMetadata = new + { + orderedProcedures = new object[] + { + new + { + extension = new object[] + { + null + }, + description = "<description>", + } + }, + encounterId = "<encounterId>", + }, + content = new + { + sourceType = "inline", + value = "<value>", + }, + } + }, + } + }, + configuration = new + { + verbose = true, + includeEvidence = true, + }, +}); +Operation<BinaryData> operation = await client.InferPatientTimelineAsync(WaitUntil.Completed, content); +BinaryData responseData = operation.Value; + +JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("patientId").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("url").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("version").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueString").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueBoolean").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueInteger").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("period").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("factor").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("lowerLimit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("upperLimit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("dimensions").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("data").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueTime").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueDateTime").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("start").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("end").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("reference").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("type").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("use").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("version").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("start").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("end").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("resourceType").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("versionId").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("lastUpdated").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("source").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("profile")[0].ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("url").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueString").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueBoolean").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueInteger").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("period").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("factor").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("lowerLimit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("upperLimit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("dimensions").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("data").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueTime").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueDateTime").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("start").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("end").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("reference").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("type").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("use").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("start").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("end").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("version").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("url").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueString").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueBoolean").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueInteger").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("period").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("factor").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("lowerLimit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("upperLimit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("dimensions").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("data").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueTime").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueDateTime").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("start").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("end").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("reference").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("type").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("use").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("start").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("end").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("version").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("implicitRules").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("language").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("url").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("version").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueString").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueBoolean").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueInteger").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("period").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("factor").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("lowerLimit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("upperLimit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("dimensions").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("data").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueTime").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueDateTime").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("start").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("end").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("reference").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("type").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("use").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("version").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("start").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("end").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("status").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("div").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("resourceType").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("versionId").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("lastUpdated").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("source").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("profile")[0].ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("url").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueString").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueBoolean").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueInteger").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("period").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("factor").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("lowerLimit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("upperLimit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("dimensions").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("data").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueTime").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueDateTime").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("start").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("end").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("reference").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("type").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("use").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("start").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("end").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("version").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("url").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueString").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueBoolean").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueInteger").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("period").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("factor").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("lowerLimit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("upperLimit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("dimensions").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("data").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueTime").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueDateTime").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("start").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("end").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("reference").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("type").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("use").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("start").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("end").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("version").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("implicitRules").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("language").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("url").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("version").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueString").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueBoolean").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueInteger").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("period").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("factor").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("lowerLimit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("upperLimit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("dimensions").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("data").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueTime").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueDateTime").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("start").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("end").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("reference").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("type").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("use").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("version").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("start").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("end").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("url").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueQuantity").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueQuantity").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueQuantity").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueQuantity").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueQuantity").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueQuantity").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueCodeableConcept").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("version").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueCodeableConcept").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueString").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueBoolean").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueInteger").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("period").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("factor").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("lowerLimit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("upperLimit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("dimensions").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("data").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueTime").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueDateTime").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valuePeriod").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valuePeriod").GetProperty("start").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valuePeriod").GetProperty("end").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("reference").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("type").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("use").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("version").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("start").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("end").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("period").GetProperty("start").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("period").GetProperty("end").ToString()); +Console.WriteLine(result.GetProperty("modelVersion").ToString()); +]]></code></example> + </member> + <member name="InferPatientTimeline(WaitUntil,RequestContent,RequestContext)"> + <example> +This sample shows how to call InferPatientTimeline and parse the result. +<code><![CDATA[ +Uri endpoint = new Uri("<https://my-service.azure.com>"); +AzureKeyCredential credential = new AzureKeyCredential("<key>"); +PatientTimelineClient client = new PatientTimelineClient(endpoint, credential); + +using RequestContent content = RequestContent.Create(new +{ + patients = new object[] + { + new + { + id = "<id>", + } + }, +}); +Operation<BinaryData> operation = client.InferPatientTimeline(WaitUntil.Completed, content); +BinaryData responseData = operation.Value; + +JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("patientId").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); +Console.WriteLine(result.GetProperty("modelVersion").ToString()); +]]></code> +This sample shows how to call InferPatientTimeline with all parameters and request content and parse the result. +<code><![CDATA[ +Uri endpoint = new Uri("<https://my-service.azure.com>"); +AzureKeyCredential credential = new AzureKeyCredential("<key>"); +PatientTimelineClient client = new PatientTimelineClient(endpoint, credential); + +using RequestContent content = RequestContent.Create(new +{ + patients = new object[] + { + new + { + id = "<id>", + info = new + { + sex = "female", + birthDate = "2022-05-10", + clinicalInfo = new object[] + { + new + { + resourceType = "<resourceType>", + id = "<id>", + meta = new + { + versionId = "<versionId>", + lastUpdated = "<lastUpdated>", + source = "<source>", + profile = new object[] + { + "<profile>" + }, + security = new object[] + { + new + { + id = "<id>", + extension = new object[] + { + new + { + id = "<id>", + extension = new object[] + { + null + }, + url = "<url>", + valueQuantity = new + { + id = "<id>", + extension = new object[] + { + null + }, + value = new object(), + comparator = "<comparator>", + unit = "<unit>", + system = "<system>", + code = "<code>", + }, + valueCodeableConcept = new + { + id = "<id>", + extension = new object[] + { + null + }, + coding = new object[] + { + null + }, + text = "<text>", + }, + valueString = "<valueString>", + valueBoolean = true, + valueInteger = 1234, + valueRange = new + { + id = "<id>", + extension = new object[] + { + null + }, + }, + valueRatio = new + { + id = "<id>", + extension = new object[] + { + null + }, + }, + valueSampledData = new + { + id = "<id>", + extension = new object[] + { + null + }, + period = new object(), + factor = new object(), + lowerLimit = new object(), + upperLimit = new object(), + dimensions = 1234, + data = "<data>", + }, + valueTime = "01:23:45", + valueDateTime = "<valueDateTime>", + valuePeriod = new + { + id = "<id>", + extension = new object[] + { + null + }, + start = "<start>", + end = "<end>", + }, + valueReference = new + { + id = "<id>", + extension = new object[] + { + null + }, + reference = "<reference>", + type = "<type>", + identifier = new + { + id = "<id>", + extension = new object[] + { + null + }, + use = "<use>", + system = "<system>", + value = "<value>", + }, + display = "<display>", + }, + } + }, + system = "<system>", + version = "<version>", + code = "<code>", + display = "<display>", + } + }, + tag = new object[] + { + null + }, + }, + implicitRules = "<implicitRules>", + language = "<language>", + } + }, + }, + encounters = new object[] + { + new Dictionary<string, object> + { + ["id"] = "<id>", + ["period"] = new + { + start = "2022-05-10T14:57:31.2311892-04:00", + end = "2022-05-10T14:57:31.2311892-04:00", + }, + ["class"] = "inpatient" + } + }, + patientDocuments = new object[] + { + new + { + type = "note", + clinicalType = "consultation", + id = "<id>", + language = "<language>", + createdDateTime = "2022-05-10T14:57:31.2311892-04:00", + authors = new object[] + { + new + { + id = "<id>", + fullName = "<fullName>", + } + }, + specialtyType = "pathology", + administrativeMetadata = new + { + orderedProcedures = new object[] + { + new + { + extension = new object[] + { + null + }, + description = "<description>", + } + }, + encounterId = "<encounterId>", + }, + content = new + { + sourceType = "inline", + value = "<value>", + }, + } + }, + } + }, + configuration = new + { + verbose = true, + includeEvidence = true, + }, +}); +Operation<BinaryData> operation = client.InferPatientTimeline(WaitUntil.Completed, content); +BinaryData responseData = operation.Value; + +JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("patientId").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("url").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("version").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueString").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueBoolean").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueInteger").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("period").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("factor").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("lowerLimit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("upperLimit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("dimensions").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("data").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueTime").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueDateTime").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("start").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("end").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("reference").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("type").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("use").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("version").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("start").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("end").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("resourceType").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("versionId").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("lastUpdated").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("source").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("profile")[0].ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("url").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueString").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueBoolean").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueInteger").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("period").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("factor").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("lowerLimit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("upperLimit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("dimensions").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("data").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueTime").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueDateTime").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("start").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("end").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("reference").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("type").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("use").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("start").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("end").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("version").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("url").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueString").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueBoolean").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueInteger").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("period").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("factor").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("lowerLimit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("upperLimit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("dimensions").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("data").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueTime").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueDateTime").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("start").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("end").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("reference").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("type").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("use").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("start").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("end").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("version").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("implicitRules").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("language").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("url").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("version").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueString").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueBoolean").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueInteger").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("period").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("factor").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("lowerLimit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("upperLimit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("dimensions").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("data").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueTime").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueDateTime").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("start").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("end").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("reference").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("type").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("use").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("version").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("start").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("end").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("status").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("div").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("resourceType").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("versionId").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("lastUpdated").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("source").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("profile")[0].ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("url").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueString").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueBoolean").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueInteger").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("period").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("factor").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("lowerLimit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("upperLimit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("dimensions").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("data").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueTime").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueDateTime").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("start").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("end").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("reference").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("type").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("use").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("start").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("end").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("version").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("url").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueString").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueBoolean").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueInteger").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("period").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("factor").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("lowerLimit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("upperLimit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("dimensions").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("data").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueTime").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueDateTime").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("start").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("end").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("reference").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("type").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("use").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("start").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("end").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("version").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("implicitRules").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("language").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("url").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("version").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueString").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueBoolean").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueInteger").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("period").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("factor").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("lowerLimit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("upperLimit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("dimensions").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("data").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueTime").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueDateTime").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("start").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("end").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("reference").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("type").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("use").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("version").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("start").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("end").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("url").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueQuantity").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueQuantity").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueQuantity").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueQuantity").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueQuantity").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueQuantity").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueCodeableConcept").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("version").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueCodeableConcept").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueString").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueBoolean").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueInteger").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("period").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("factor").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("lowerLimit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("upperLimit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("dimensions").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("data").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueTime").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueDateTime").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valuePeriod").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valuePeriod").GetProperty("start").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valuePeriod").GetProperty("end").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("reference").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("type").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("use").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("version").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("start").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("end").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("period").GetProperty("start").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("period").GetProperty("end").ToString()); +Console.WriteLine(result.GetProperty("modelVersion").ToString()); +]]></code></example> + </member> + </members> +</doc> \ No newline at end of file diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/DocumentAdministrativeMetadata.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/DocumentAdministrativeMetadata.Serialization.cs new file mode 100644 index 0000000000000..fb4080755b726 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/DocumentAdministrativeMetadata.Serialization.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + public partial class DocumentAdministrativeMetadata : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(OrderedProcedures)) + { + writer.WritePropertyName("orderedProcedures"u8); + writer.WriteStartArray(); + foreach (var item in OrderedProcedures) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(EncounterId)) + { + writer.WritePropertyName("encounterId"u8); + writer.WriteStringValue(EncounterId); + } + writer.WriteEndObject(); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/DocumentAdministrativeMetadata.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/DocumentAdministrativeMetadata.cs new file mode 100644 index 0000000000000..af9e9370b09e8 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/DocumentAdministrativeMetadata.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + /// <summary> Document administrative metadata. </summary> + public partial class DocumentAdministrativeMetadata + { + /// <summary> Initializes a new instance of <see cref="DocumentAdministrativeMetadata"/>. </summary> + public DocumentAdministrativeMetadata() + { + OrderedProcedures = new ChangeTrackingList<OrderedProcedure>(); + } + + /// <summary> Initializes a new instance of <see cref="DocumentAdministrativeMetadata"/>. </summary> + /// <param name="orderedProcedures"> List of procedure information associated with the document. </param> + /// <param name="encounterId"> Reference to the encounter associated with the document. </param> + internal DocumentAdministrativeMetadata(IList<OrderedProcedure> orderedProcedures, string encounterId) + { + OrderedProcedures = orderedProcedures; + EncounterId = encounterId; + } + + /// <summary> List of procedure information associated with the document. </summary> + public IList<OrderedProcedure> OrderedProcedures { get; } + /// <summary> Reference to the encounter associated with the document. </summary> + public string EncounterId { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/DocumentAuthor.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/DocumentAuthor.Serialization.cs new file mode 100644 index 0000000000000..ccea84d6fa4cc --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/DocumentAuthor.Serialization.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + public partial class DocumentAuthor : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsDefined(FullName)) + { + writer.WritePropertyName("fullName"u8); + writer.WriteStringValue(FullName); + } + writer.WriteEndObject(); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/DocumentAuthor.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/DocumentAuthor.cs new file mode 100644 index 0000000000000..b3914de2d4b80 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/DocumentAuthor.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +namespace Azure.Health.Insights.PatientTimeline +{ + /// <summary> Document author. </summary> + public partial class DocumentAuthor + { + /// <summary> Initializes a new instance of <see cref="DocumentAuthor"/>. </summary> + public DocumentAuthor() + { + } + + /// <summary> Initializes a new instance of <see cref="DocumentAuthor"/>. </summary> + /// <param name="id"> author id. </param> + /// <param name="fullName"> Text representation of the full name. </param> + internal DocumentAuthor(string id, string fullName) + { + Id = id; + FullName = fullName; + } + + /// <summary> author id. </summary> + public string Id { get; set; } + /// <summary> Text representation of the full name. </summary> + public string FullName { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/AcceptedAge.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/DocumentContent.Serialization.cs similarity index 72% rename from sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/AcceptedAge.Serialization.cs rename to sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/DocumentContent.Serialization.cs index 7d0b6fb5dcba0..8184b891c2ac9 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/AcceptedAge.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/DocumentContent.Serialization.cs @@ -8,17 +8,17 @@ using System.Text.Json; using Azure.Core; -namespace Azure.Health.Insights.ClinicalMatching +namespace Azure.Health.Insights.PatientTimeline { - public partial class AcceptedAge : IUtf8JsonSerializable + public partial class DocumentContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - writer.WritePropertyName("unit"u8); - writer.WriteStringValue(Unit.ToString()); + writer.WritePropertyName("sourceType"u8); + writer.WriteStringValue(SourceType.ToString()); writer.WritePropertyName("value"u8); - writer.WriteNumberValue(Value); + writer.WriteStringValue(Value); writer.WriteEndObject(); } diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/DocumentContent.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/DocumentContent.cs new file mode 100644 index 0000000000000..5430e75a0dc3d --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/DocumentContent.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + /// <summary> The content of the patient document. </summary> + public partial class DocumentContent + { + /// <summary> Initializes a new instance of <see cref="DocumentContent"/>. </summary> + /// <param name="sourceType"> + /// The type of the content's source. + /// In case the source type is 'inline', the content is given as a string (for instance, text). + /// In case the source type is 'reference', the content is given as a URI. + /// </param> + /// <param name="value"> The content of the document, given either inline (as a string) or as a reference (URI). </param> + /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception> + public DocumentContent(DocumentContentSourceType sourceType, string value) + { + Argument.AssertNotNull(value, nameof(value)); + + SourceType = sourceType; + Value = value; + } + + /// <summary> + /// The type of the content's source. + /// In case the source type is 'inline', the content is given as a string (for instance, text). + /// In case the source type is 'reference', the content is given as a URI. + /// </summary> + public DocumentContentSourceType SourceType { get; } + /// <summary> The content of the document, given either inline (as a string) or as a reference (URI). </summary> + public string Value { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/DocumentContentSourceType.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/DocumentContentSourceType.cs new file mode 100644 index 0000000000000..672f9451c8f47 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/DocumentContentSourceType.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Health.Insights.PatientTimeline +{ + /// <summary> + /// The type of the content's source. + /// In case the source type is 'inline', the content is given as a string (for instance, text). + /// In case the source type is 'reference', the content is given as a URI. + /// </summary> + public readonly partial struct DocumentContentSourceType : IEquatable<DocumentContentSourceType> + { + private readonly string _value; + + /// <summary> Initializes a new instance of <see cref="DocumentContentSourceType"/>. </summary> + /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception> + public DocumentContentSourceType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string InlineValue = "inline"; + private const string ReferenceValue = "reference"; + + /// <summary> The content is given as a string (for instance, text). </summary> + public static DocumentContentSourceType Inline { get; } = new DocumentContentSourceType(InlineValue); + /// <summary> The content is given as a URI. </summary> + public static DocumentContentSourceType Reference { get; } = new DocumentContentSourceType(ReferenceValue); + /// <summary> Determines if two <see cref="DocumentContentSourceType"/> values are the same. </summary> + public static bool operator ==(DocumentContentSourceType left, DocumentContentSourceType right) => left.Equals(right); + /// <summary> Determines if two <see cref="DocumentContentSourceType"/> values are not the same. </summary> + public static bool operator !=(DocumentContentSourceType left, DocumentContentSourceType right) => !left.Equals(right); + /// <summary> Converts a string to a <see cref="DocumentContentSourceType"/>. </summary> + public static implicit operator DocumentContentSourceType(string value) => new DocumentContentSourceType(value); + + /// <inheritdoc /> + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is DocumentContentSourceType other && Equals(other); + /// <inheritdoc /> + public bool Equals(DocumentContentSourceType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// <inheritdoc /> + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// <inheritdoc /> + public override string ToString() => _value; + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/DocumentType.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/DocumentType.cs new file mode 100644 index 0000000000000..32b38d2c0804c --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/DocumentType.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Health.Insights.PatientTimeline +{ + /// <summary> The type of the patient document, such as 'note' (text document) or 'fhirBundle' (FHIR JSON document). </summary> + public readonly partial struct DocumentType : IEquatable<DocumentType> + { + private readonly string _value; + + /// <summary> Initializes a new instance of <see cref="DocumentType"/>. </summary> + /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception> + public DocumentType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string NoteValue = "note"; + private const string FhirBundleValue = "fhirBundle"; + private const string DicomValue = "dicom"; + private const string GenomicSequencingValue = "genomicSequencing"; + + /// <summary> note. </summary> + public static DocumentType Note { get; } = new DocumentType(NoteValue); + /// <summary> fhirBundle. </summary> + public static DocumentType FhirBundle { get; } = new DocumentType(FhirBundleValue); + /// <summary> dicom. </summary> + public static DocumentType Dicom { get; } = new DocumentType(DicomValue); + /// <summary> genomicSequencing. </summary> + public static DocumentType GenomicSequencing { get; } = new DocumentType(GenomicSequencingValue); + /// <summary> Determines if two <see cref="DocumentType"/> values are the same. </summary> + public static bool operator ==(DocumentType left, DocumentType right) => left.Equals(right); + /// <summary> Determines if two <see cref="DocumentType"/> values are not the same. </summary> + public static bool operator !=(DocumentType left, DocumentType right) => !left.Equals(right); + /// <summary> Converts a string to a <see cref="DocumentType"/>. </summary> + public static implicit operator DocumentType(string value) => new DocumentType(value); + + /// <inheritdoc /> + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is DocumentType other && Equals(other); + /// <inheritdoc /> + public bool Equals(DocumentType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// <inheritdoc /> + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// <inheritdoc /> + public override string ToString() => _value; + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/DomainResource.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/DomainResource.Serialization.cs new file mode 100644 index 0000000000000..76f4848504585 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/DomainResource.Serialization.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure; + +namespace Azure.Health.Insights.PatientTimeline +{ + public partial class DomainResource + { + internal static DomainResource DeserializeDomainResource(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + return UnknownDomainResource.DeserializeUnknownDomainResource(element); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static DomainResource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDomainResource(document.RootElement); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/DomainResource.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/DomainResource.cs new file mode 100644 index 0000000000000..38cb8eb26eee8 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/DomainResource.cs @@ -0,0 +1,104 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + /// <summary> + /// A resource with narrative, extensions, and contained resources + /// Based on [FHIR DomainResource](https://www.hl7.org/fhir/domainresource.html) + /// </summary> + public abstract partial class DomainResource + { + /// <summary> Initializes a new instance of <see cref="DomainResource"/>. </summary> + protected DomainResource() + { + Contained = new ChangeTrackingList<Resource>(); + Extension = new ChangeTrackingList<Extension>(); + ModifierExtension = new ChangeTrackingList<Extension>(); + AdditionalProperties = new ChangeTrackingDictionary<string, BinaryData>(); + } + + /// <summary> Initializes a new instance of <see cref="DomainResource"/>. </summary> + /// <param name="resourceType"> The type of resource. </param> + /// <param name="id"> Resource Id. </param> + /// <param name="meta"> Metadata about the resource. </param> + /// <param name="implicitRules"> A set of rules under which this content was created. </param> + /// <param name="language"> Language of the resource content. </param> + /// <param name="text"> Text summary of the resource, for human interpretation. </param> + /// <param name="contained"> Contained, inline Resources. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="modifierExtension"> Extensions that cannot be ignored. </param> + /// <param name="additionalProperties"> Additional Properties. </param> + internal DomainResource(string resourceType, string id, Meta meta, string implicitRules, string language, Narrative text, IReadOnlyList<Resource> contained, IReadOnlyList<Extension> extension, IReadOnlyList<Extension> modifierExtension, IReadOnlyDictionary<string, BinaryData> additionalProperties) + { + ResourceType = resourceType; + Id = id; + Meta = meta; + ImplicitRules = implicitRules; + Language = language; + Text = text; + Contained = contained; + Extension = extension; + ModifierExtension = modifierExtension; + AdditionalProperties = additionalProperties; + } + + /// <summary> The type of resource. </summary> + internal string ResourceType { get; set; } + /// <summary> Resource Id. </summary> + public string Id { get; } + /// <summary> Metadata about the resource. </summary> + public Meta Meta { get; } + /// <summary> A set of rules under which this content was created. </summary> + public string ImplicitRules { get; } + /// <summary> Language of the resource content. </summary> + public string Language { get; } + /// <summary> Text summary of the resource, for human interpretation. </summary> + public Narrative Text { get; } + /// <summary> Contained, inline Resources. </summary> + public IReadOnlyList<Resource> Contained { get; } + /// <summary> Additional Content defined by implementations. </summary> + public IReadOnlyList<Extension> Extension { get; } + /// <summary> Extensions that cannot be ignored. </summary> + public IReadOnlyList<Extension> ModifierExtension { get; } + /// <summary> + /// Additional Properties + /// <para> + /// To assign an object to the value of this property use <see cref="BinaryData.FromObjectAsJson{T}(T, System.Text.Json.JsonSerializerOptions?)"/>. + /// </para> + /// <para> + /// To assign an already formatted json string to this property use <see cref="BinaryData.FromString(string)"/>. + /// </para> + /// <para> + /// Examples: + /// <list type="bullet"> + /// <item> + /// <term>BinaryData.FromObjectAsJson("foo")</term> + /// <description>Creates a payload of "foo".</description> + /// </item> + /// <item> + /// <term>BinaryData.FromString("\"foo\"")</term> + /// <description>Creates a payload of "foo".</description> + /// </item> + /// <item> + /// <term>BinaryData.FromObjectAsJson(new { key = "value" })</term> + /// <description>Creates a payload of { "key": "value" }.</description> + /// </item> + /// <item> + /// <term>BinaryData.FromString("{\"key\": \"value\"}")</term> + /// <description>Creates a payload of { "key": "value" }.</description> + /// </item> + /// </list> + /// </para> + /// </summary> + public IReadOnlyDictionary<string, BinaryData> AdditionalProperties { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Encounter.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Encounter.Serialization.cs new file mode 100644 index 0000000000000..ff8e43fdc04dc --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Encounter.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + public partial class Encounter : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + if (Optional.IsDefined(Period)) + { + writer.WritePropertyName("period"u8); + writer.WriteObjectValue(Period); + } + if (Optional.IsDefined(Class)) + { + writer.WritePropertyName("class"u8); + writer.WriteStringValue(Class.Value.ToString()); + } + writer.WriteEndObject(); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Encounter.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Encounter.cs new file mode 100644 index 0000000000000..4ed5110e4f939 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Encounter.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + /// <summary> visit/encounter information. </summary> + public partial class Encounter + { + /// <summary> Initializes a new instance of <see cref="Encounter"/>. </summary> + /// <param name="id"> The id of the visit. </param> + /// <exception cref="ArgumentNullException"> <paramref name="id"/> is null. </exception> + public Encounter(string id) + { + Argument.AssertNotNull(id, nameof(id)); + + Id = id; + } + + /// <summary> Initializes a new instance of <see cref="Encounter"/>. </summary> + /// <param name="id"> The id of the visit. </param> + /// <param name="period"> + /// Time period of the visit. + /// In case of admission, use timePeriod.start to indicate the admission time and timePeriod.end to indicate the discharge time. + /// </param> + /// <param name="class"> The class of the encounter. </param> + internal Encounter(string id, TimePeriod period, EncounterClass? @class) + { + Id = id; + Period = period; + Class = @class; + } + + /// <summary> The id of the visit. </summary> + public string Id { get; } + /// <summary> + /// Time period of the visit. + /// In case of admission, use timePeriod.start to indicate the admission time and timePeriod.end to indicate the discharge time. + /// </summary> + public TimePeriod Period { get; set; } + /// <summary> The class of the encounter. </summary> + public EncounterClass? Class { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/EncounterClass.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/EncounterClass.cs new file mode 100644 index 0000000000000..c8e9324c8cbaf --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/EncounterClass.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Health.Insights.PatientTimeline +{ + /// <summary> Known values codes that can be used to indicate the class of encounter (TODO://Based on FHIR value set--http://....). </summary> + public readonly partial struct EncounterClass : IEquatable<EncounterClass> + { + private readonly string _value; + + /// <summary> Initializes a new instance of <see cref="EncounterClass"/>. </summary> + /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception> + public EncounterClass(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string InPatientValue = "inpatient"; + private const string AmbulatoryValue = "ambulatory"; + private const string ObservationValue = "observation"; + private const string EmergencyValue = "emergency"; + private const string VirtualValue = "virtual"; + private const string HealthHomeValue = "healthHome"; + + /// <summary> A patient encounter where a patient is admitted by a hospital or equivalent facility, assigned to a location where patients generally stay at least overnight and provided with room, board, and continuous nursing service. </summary> + public static EncounterClass InPatient { get; } = new EncounterClass(InPatientValue); + /// <summary> The term ambulatory usually implies that the patient has come to the location and is not assigned to a bed. Sometimes referred to as an outpatient encounter. </summary> + public static EncounterClass Ambulatory { get; } = new EncounterClass(AmbulatoryValue); + /// <summary> An encounter where the patient usually will start in different encounter, such as one in the emergency department but then transition to this type of encounter because they require a significant period of treatment and monitoring to determine whether or not their condition warrants an inpatient admission or discharge. </summary> + public static EncounterClass Observation { get; } = new EncounterClass(ObservationValue); + /// <summary> A patient encounter that takes place at a dedicated healthcare service delivery location where the patient receives immediate evaluation and treatment, provided until the patient can be discharged or responsibility for the patient's care is transferred elsewhere (for example, the patient could be admitted as an inpatient or transferred to another facility. </summary> + public static EncounterClass Emergency { get; } = new EncounterClass(EmergencyValue); + /// <summary> A patient encounter where the patient is not physically present for the encounter, such as in a telehealth encounter, phone call, or electronic communication. </summary> + public static EncounterClass Virtual { get; } = new EncounterClass(VirtualValue); + /// <summary> Healthcare encounter that takes place in the residence of the patient or a designee. </summary> + public static EncounterClass HealthHome { get; } = new EncounterClass(HealthHomeValue); + /// <summary> Determines if two <see cref="EncounterClass"/> values are the same. </summary> + public static bool operator ==(EncounterClass left, EncounterClass right) => left.Equals(right); + /// <summary> Determines if two <see cref="EncounterClass"/> values are not the same. </summary> + public static bool operator !=(EncounterClass left, EncounterClass right) => !left.Equals(right); + /// <summary> Converts a string to a <see cref="EncounterClass"/>. </summary> + public static implicit operator EncounterClass(string value) => new EncounterClass(value); + + /// <inheritdoc /> + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is EncounterClass other && Equals(other); + /// <inheritdoc /> + public bool Equals(EncounterClass other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// <inheritdoc /> + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// <inheritdoc /> + public override string ToString() => _value; + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Extension.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Extension.Serialization.cs new file mode 100644 index 0000000000000..5c83ad52e849f --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Extension.Serialization.cs @@ -0,0 +1,268 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + public partial class Extension : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(ExtensionProperty)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in ExtensionProperty) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + writer.WritePropertyName("url"u8); + writer.WriteStringValue(Url); + if (Optional.IsDefined(ValueQuantity)) + { + writer.WritePropertyName("valueQuantity"u8); + writer.WriteObjectValue(ValueQuantity); + } + if (Optional.IsDefined(ValueCodeableConcept)) + { + writer.WritePropertyName("valueCodeableConcept"u8); + writer.WriteObjectValue(ValueCodeableConcept); + } + if (Optional.IsDefined(ValueString)) + { + writer.WritePropertyName("valueString"u8); + writer.WriteStringValue(ValueString); + } + if (Optional.IsDefined(ValueBoolean)) + { + writer.WritePropertyName("valueBoolean"u8); + writer.WriteBooleanValue(ValueBoolean.Value); + } + if (Optional.IsDefined(ValueInteger)) + { + writer.WritePropertyName("valueInteger"u8); + writer.WriteNumberValue(ValueInteger.Value); + } + if (Optional.IsDefined(ValueRange)) + { + writer.WritePropertyName("valueRange"u8); + writer.WriteObjectValue(ValueRange); + } + if (Optional.IsDefined(ValueRatio)) + { + writer.WritePropertyName("valueRatio"u8); + writer.WriteObjectValue(ValueRatio); + } + if (Optional.IsDefined(ValueSampledData)) + { + writer.WritePropertyName("valueSampledData"u8); + writer.WriteObjectValue(ValueSampledData); + } + if (Optional.IsDefined(ValueTime)) + { + writer.WritePropertyName("valueTime"u8); + writer.WriteStringValue(ValueTime.Value, "T"); + } + if (Optional.IsDefined(ValueDateTime)) + { + writer.WritePropertyName("valueDateTime"u8); + writer.WriteStringValue(ValueDateTime); + } + if (Optional.IsDefined(ValuePeriod)) + { + writer.WritePropertyName("valuePeriod"u8); + writer.WriteObjectValue(ValuePeriod); + } + if (Optional.IsDefined(ValueReference)) + { + writer.WritePropertyName("valueReference"u8); + writer.WriteObjectValue(ValueReference); + } + writer.WriteEndObject(); + } + + internal static Extension DeserializeExtension(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional<string> id = default; + Optional<IList<Extension>> extension = default; + string url = default; + Optional<Quantity> valueQuantity = default; + Optional<CodeableConcept> valueCodeableConcept = default; + Optional<string> valueString = default; + Optional<bool> valueBoolean = default; + Optional<int> valueInteger = default; + Optional<Range> valueRange = default; + Optional<Ratio> valueRatio = default; + Optional<SampledData> valueSampledData = default; + Optional<TimeSpan> valueTime = default; + Optional<string> valueDateTime = default; + Optional<Period> valuePeriod = default; + Optional<Reference> valueReference = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(DeserializeExtension(item)); + } + extension = array; + continue; + } + if (property.NameEquals("url"u8)) + { + url = property.Value.GetString(); + continue; + } + if (property.NameEquals("valueQuantity"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valueQuantity = Quantity.DeserializeQuantity(property.Value); + continue; + } + if (property.NameEquals("valueCodeableConcept"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valueCodeableConcept = CodeableConcept.DeserializeCodeableConcept(property.Value); + continue; + } + if (property.NameEquals("valueString"u8)) + { + valueString = property.Value.GetString(); + continue; + } + if (property.NameEquals("valueBoolean"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valueBoolean = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("valueInteger"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valueInteger = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("valueRange"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valueRange = Range.DeserializeRange(property.Value); + continue; + } + if (property.NameEquals("valueRatio"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valueRatio = Ratio.DeserializeRatio(property.Value); + continue; + } + if (property.NameEquals("valueSampledData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valueSampledData = SampledData.DeserializeSampledData(property.Value); + continue; + } + if (property.NameEquals("valueTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valueTime = property.Value.GetTimeSpan("T"); + continue; + } + if (property.NameEquals("valueDateTime"u8)) + { + valueDateTime = property.Value.GetString(); + continue; + } + if (property.NameEquals("valuePeriod"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valuePeriod = Period.DeserializePeriod(property.Value); + continue; + } + if (property.NameEquals("valueReference"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valueReference = Reference.DeserializeReference(property.Value); + continue; + } + } + return new Extension(id.Value, Optional.ToList(extension), url, valueQuantity.Value, valueCodeableConcept.Value, valueString.Value, Optional.ToNullable(valueBoolean), Optional.ToNullable(valueInteger), valueRange.Value, valueRatio.Value, valueSampledData.Value, Optional.ToNullable(valueTime), valueDateTime.Value, valuePeriod.Value, valueReference.Value); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static Extension FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeExtension(document.RootElement); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Extension.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Extension.cs new file mode 100644 index 0000000000000..1eec3a878105f --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Extension.cs @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + /// <summary> + /// Base for all elements + /// Based on [FHIR Element](https://www.hl7.org/fhir/datatypes.html#Element) + /// </summary> + public partial class Extension + { + /// <summary> Initializes a new instance of <see cref="Extension"/>. </summary> + /// <param name="url"> Source of the definition for the extension code - a logical name or a URL. </param> + /// <exception cref="ArgumentNullException"> <paramref name="url"/> is null. </exception> + public Extension(string url) + { + Argument.AssertNotNull(url, nameof(url)); + + ExtensionProperty = new ChangeTrackingList<Extension>(); + Url = url; + } + + /// <summary> Initializes a new instance of <see cref="Extension"/>. </summary> + /// <param name="id"> Unique id for inter-element referencing. </param> + /// <param name="extensionProperty"> Additional Content defined by implementations. </param> + /// <param name="url"> Source of the definition for the extension code - a logical name or a URL. </param> + /// <param name="valueQuantity"> Value as Quantity. </param> + /// <param name="valueCodeableConcept"> Value as CodeableConcept. </param> + /// <param name="valueString"> Value as string. </param> + /// <param name="valueBoolean"> Value as boolean. </param> + /// <param name="valueInteger"> Value as integer. </param> + /// <param name="valueRange"> Value as Range. </param> + /// <param name="valueRatio"> Value as Ratio. </param> + /// <param name="valueSampledData"> Value as SampledData. </param> + /// <param name="valueTime"> Value as time (hh:mm:ss). </param> + /// <param name="valueDateTime"> Value as dateTime. </param> + /// <param name="valuePeriod"> Value as Period. </param> + /// <param name="valueReference"> Value as reference. </param> + internal Extension(string id, IList<Extension> extensionProperty, string url, Quantity valueQuantity, CodeableConcept valueCodeableConcept, string valueString, bool? valueBoolean, int? valueInteger, Range valueRange, Ratio valueRatio, SampledData valueSampledData, TimeSpan? valueTime, string valueDateTime, Period valuePeriod, Reference valueReference) + { + Id = id; + ExtensionProperty = extensionProperty; + Url = url; + ValueQuantity = valueQuantity; + ValueCodeableConcept = valueCodeableConcept; + ValueString = valueString; + ValueBoolean = valueBoolean; + ValueInteger = valueInteger; + ValueRange = valueRange; + ValueRatio = valueRatio; + ValueSampledData = valueSampledData; + ValueTime = valueTime; + ValueDateTime = valueDateTime; + ValuePeriod = valuePeriod; + ValueReference = valueReference; + } + + /// <summary> Unique id for inter-element referencing. </summary> + public string Id { get; set; } + /// <summary> Additional Content defined by implementations. </summary> + public IList<Extension> ExtensionProperty { get; } + /// <summary> Source of the definition for the extension code - a logical name or a URL. </summary> + public string Url { get; set; } + /// <summary> Value as Quantity. </summary> + public Quantity ValueQuantity { get; set; } + /// <summary> Value as CodeableConcept. </summary> + public CodeableConcept ValueCodeableConcept { get; set; } + /// <summary> Value as string. </summary> + public string ValueString { get; set; } + /// <summary> Value as boolean. </summary> + public bool? ValueBoolean { get; set; } + /// <summary> Value as integer. </summary> + public int? ValueInteger { get; set; } + /// <summary> Value as Range. </summary> + public Range ValueRange { get; set; } + /// <summary> Value as Ratio. </summary> + public Ratio ValueRatio { get; set; } + /// <summary> Value as SampledData. </summary> + public SampledData ValueSampledData { get; set; } + /// <summary> Value as time (hh:mm:ss). </summary> + public TimeSpan? ValueTime { get; set; } + /// <summary> Value as dateTime. </summary> + public string ValueDateTime { get; set; } + /// <summary> Value as Period. </summary> + public Period ValuePeriod { get; set; } + /// <summary> Value as reference. </summary> + public Reference ValueReference { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/HealthInsightsPatientTimelineClientBuilderExtensions.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/HealthInsightsPatientTimelineClientBuilderExtensions.cs new file mode 100644 index 0000000000000..c2219ae42cf7e --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/HealthInsightsPatientTimelineClientBuilderExtensions.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using Azure; +using Azure.Core.Extensions; +using Azure.Health.Insights.PatientTimeline; + +namespace Microsoft.Extensions.Azure +{ + /// <summary> Extension methods to add <see cref="PatientTimelineClient"/> to client builder. </summary> + public static partial class HealthInsightsPatientTimelineClientBuilderExtensions + { + /// <summary> Registers a <see cref="PatientTimelineClient"/> instance. </summary> + /// <param name="builder"> The builder to register with. </param> + /// <param name="endpoint"> Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus2.api.cognitive.microsoft.com). </param> + /// <param name="credential"> A credential used to authenticate to an Azure Service. </param> + public static IAzureClientBuilder<PatientTimelineClient, PatientTimelineClientOptions> AddPatientTimelineClient<TBuilder>(this TBuilder builder, Uri endpoint, AzureKeyCredential credential) + where TBuilder : IAzureClientFactoryBuilder + { + return builder.RegisterClientFactory<PatientTimelineClient, PatientTimelineClientOptions>((options) => new PatientTimelineClient(endpoint, credential, options)); + } + + /// <summary> Registers a <see cref="PatientTimelineClient"/> instance. </summary> + /// <param name="builder"> The builder to register with. </param> + /// <param name="configuration"> The configuration values. </param> + public static IAzureClientBuilder<PatientTimelineClient, PatientTimelineClientOptions> AddPatientTimelineClient<TBuilder, TConfiguration>(this TBuilder builder, TConfiguration configuration) + where TBuilder : IAzureClientFactoryBuilderWithConfiguration<TConfiguration> + { + return builder.RegisterClientFactory<PatientTimelineClient, PatientTimelineClientOptions>(configuration); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/HealthInsightsPatientTimelineModelFactory.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/HealthInsightsPatientTimelineModelFactory.cs new file mode 100644 index 0000000000000..9765646ea72ce --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/HealthInsightsPatientTimelineModelFactory.cs @@ -0,0 +1,92 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure; + +namespace Azure.Health.Insights.PatientTimeline +{ + /// <summary> Model factory for models. </summary> + public static partial class HealthInsightsPatientTimelineModelFactory + { + /// <summary> Initializes a new instance of <see cref="PatientTimeline.PatientTimelineInferenceResult"/>. </summary> + /// <param name="patientResults"> Results for the patients given in the request. </param> + /// <param name="modelVersion"> The version of the model used for inference, expressed as the model date. </param> + /// <returns> A new <see cref="PatientTimeline.PatientTimelineInferenceResult"/> instance for mocking. </returns> + public static PatientTimelineInferenceResult PatientTimelineInferenceResult(IEnumerable<PatientTimelinePatientResult> patientResults = null, string modelVersion = null) + { + patientResults ??= new List<PatientTimelinePatientResult>(); + + return new PatientTimelineInferenceResult(patientResults?.ToList(), modelVersion); + } + + /// <summary> Initializes a new instance of <see cref="PatientTimeline.PatientTimelinePatientResult"/>. </summary> + /// <param name="patientId"> The identifier given for the patient in the request. </param> + /// <param name="inferences"> The model's inferences for the given patient. </param> + /// <returns> A new <see cref="PatientTimeline.PatientTimelinePatientResult"/> instance for mocking. </returns> + public static PatientTimelinePatientResult PatientTimelinePatientResult(string patientId = null, IEnumerable<PatientTimelineInference> inferences = null) + { + inferences ??= new List<PatientTimelineInference>(); + + return new PatientTimelinePatientResult(patientId, inferences?.ToList()); + } + + /// <summary> Initializes a new instance of <see cref="PatientTimeline.PatientTimelineInference"/>. </summary> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="type"> The type of the Patient Timeline inference. </param> + /// <param name="resource"> + /// FHIR 4.0 representation of the piece of clinical info. + /// additional dependent resources maybe contained (e.g. MedicationStatement may contain Medication) + /// -- In the SDK we will have custom mapping to map this type to JsonObject + /// </param> + /// <param name="period"> Time range relevant to this Timeline inference. </param> + /// <returns> A new <see cref="PatientTimeline.PatientTimelineInference"/> instance for mocking. </returns> + public static PatientTimelineInference PatientTimelineInference(IEnumerable<Extension> extension = null, string type = null, DomainResource resource = null, TimePeriod period = null) + { + extension ??= new List<Extension>(); + + return new PatientTimelineInference(extension?.ToList(), type, resource, period); + } + + /// <summary> Initializes a new instance of <see cref="PatientTimeline.DomainResource"/>. </summary> + /// <param name="resourceType"> The type of resource. </param> + /// <param name="id"> Resource Id. </param> + /// <param name="meta"> Metadata about the resource. </param> + /// <param name="implicitRules"> A set of rules under which this content was created. </param> + /// <param name="language"> Language of the resource content. </param> + /// <param name="text"> Text summary of the resource, for human interpretation. </param> + /// <param name="contained"> Contained, inline Resources. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="modifierExtension"> Extensions that cannot be ignored. </param> + /// <param name="additionalProperties"> Additional Properties. </param> + /// <returns> A new <see cref="PatientTimeline.DomainResource"/> instance for mocking. </returns> + public static DomainResource DomainResource(string resourceType = null, string id = null, Meta meta = null, string implicitRules = null, string language = null, Narrative text = null, IEnumerable<Resource> contained = null, IEnumerable<Extension> extension = null, IEnumerable<Extension> modifierExtension = null, IReadOnlyDictionary<string, BinaryData> additionalProperties = null) + { + contained ??= new List<Resource>(); + extension ??= new List<Extension>(); + modifierExtension ??= new List<Extension>(); + additionalProperties ??= new Dictionary<string, BinaryData>(); + + return new UnknownDomainResource(resourceType, id, meta, implicitRules, language, text, contained?.ToList(), extension?.ToList(), modifierExtension?.ToList(), additionalProperties); + } + + /// <summary> Initializes a new instance of <see cref="PatientTimeline.Narrative"/>. </summary> + /// <param name="id"> Unique id for inter-element referencing. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="status"> generated, extensions, additional, empty. </param> + /// <param name="div"> xhtml. </param> + /// <returns> A new <see cref="PatientTimeline.Narrative"/> instance for mocking. </returns> + public static Narrative Narrative(string id = null, IEnumerable<Extension> extension = null, string status = null, string div = null) + { + extension ??= new List<Extension>(); + + return new Narrative(id, extension?.ToList(), status, div); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Identifier.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Identifier.Serialization.cs new file mode 100644 index 0000000000000..5fcc8b36fbb65 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Identifier.Serialization.cs @@ -0,0 +1,165 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + public partial class Identifier : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(Use)) + { + writer.WritePropertyName("use"u8); + writer.WriteStringValue(Use); + } + if (Optional.IsDefined(Type)) + { + writer.WritePropertyName("type"u8); + writer.WriteObjectValue(Type); + } + if (Optional.IsDefined(System)) + { + writer.WritePropertyName("system"u8); + writer.WriteStringValue(System); + } + if (Optional.IsDefined(Value)) + { + writer.WritePropertyName("value"u8); + writer.WriteStringValue(Value); + } + if (Optional.IsDefined(Period)) + { + writer.WritePropertyName("period"u8); + writer.WriteObjectValue(Period); + } + if (Optional.IsDefined(Assigner)) + { + writer.WritePropertyName("assigner"u8); + writer.WriteObjectValue(Assigner); + } + writer.WriteEndObject(); + } + + internal static Identifier DeserializeIdentifier(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional<string> id = default; + Optional<IList<Extension>> extension = default; + Optional<string> use = default; + Optional<CodeableConcept> type = default; + Optional<string> system = default; + Optional<string> value = default; + Optional<Period> period = default; + Optional<Reference> assigner = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(PatientTimeline.Extension.DeserializeExtension(item)); + } + extension = array; + continue; + } + if (property.NameEquals("use"u8)) + { + use = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + type = CodeableConcept.DeserializeCodeableConcept(property.Value); + continue; + } + if (property.NameEquals("system"u8)) + { + system = property.Value.GetString(); + continue; + } + if (property.NameEquals("value"u8)) + { + value = property.Value.GetString(); + continue; + } + if (property.NameEquals("period"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + period = Period.DeserializePeriod(property.Value); + continue; + } + if (property.NameEquals("assigner"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + assigner = Reference.DeserializeReference(property.Value); + continue; + } + } + return new Identifier(id.Value, Optional.ToList(extension), use.Value, type.Value, system.Value, value.Value, period.Value, assigner.Value); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static Identifier FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeIdentifier(document.RootElement); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Identifier.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Identifier.cs new file mode 100644 index 0000000000000..3c780699f2cab --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Identifier.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + /// <summary> + /// An identifier intended for computation + /// Based on [FHIR Identifier](https://www.hl7.org/fhir/R4/identifier.html) + /// </summary> + public partial class Identifier + { + /// <summary> Initializes a new instance of <see cref="Identifier"/>. </summary> + public Identifier() + { + Extension = new ChangeTrackingList<Extension>(); + } + + /// <summary> Initializes a new instance of <see cref="Identifier"/>. </summary> + /// <param name="id"> Unique id for inter-element referencing. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="use"> usual | official | temp | secondary | old (If known). </param> + /// <param name="type"> Description of identifier. </param> + /// <param name="system"> The namespace for the identifier value. </param> + /// <param name="value"> The value that is unique. </param> + /// <param name="period"> Time period when id is/was valid for use. </param> + /// <param name="assigner"> Organization that issued id (may be just text). </param> + internal Identifier(string id, IList<Extension> extension, string use, CodeableConcept type, string system, string value, Period period, Reference assigner) + { + Id = id; + Extension = extension; + Use = use; + Type = type; + System = system; + Value = value; + Period = period; + Assigner = assigner; + } + + /// <summary> Unique id for inter-element referencing. </summary> + public string Id { get; set; } + /// <summary> Additional Content defined by implementations. </summary> + public IList<Extension> Extension { get; } + /// <summary> usual | official | temp | secondary | old (If known). </summary> + public string Use { get; set; } + /// <summary> Description of identifier. </summary> + public CodeableConcept Type { get; set; } + /// <summary> The namespace for the identifier value. </summary> + public string System { get; set; } + /// <summary> The value that is unique. </summary> + public string Value { get; set; } + /// <summary> Time period when id is/was valid for use. </summary> + public Period Period { get; set; } + /// <summary> Organization that issued id (may be just text). </summary> + public Reference Assigner { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Meta.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Meta.Serialization.cs new file mode 100644 index 0000000000000..c5a10a9fcedb9 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Meta.Serialization.cs @@ -0,0 +1,159 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + public partial class Meta : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(VersionId)) + { + writer.WritePropertyName("versionId"u8); + writer.WriteStringValue(VersionId); + } + if (Optional.IsDefined(LastUpdated)) + { + writer.WritePropertyName("lastUpdated"u8); + writer.WriteStringValue(LastUpdated); + } + if (Optional.IsDefined(Source)) + { + writer.WritePropertyName("source"u8); + writer.WriteStringValue(Source); + } + if (Optional.IsCollectionDefined(Profile)) + { + writer.WritePropertyName("profile"u8); + writer.WriteStartArray(); + foreach (var item in Profile) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(Security)) + { + writer.WritePropertyName("security"u8); + writer.WriteStartArray(); + foreach (var item in Security) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(Tag)) + { + writer.WritePropertyName("tag"u8); + writer.WriteStartArray(); + foreach (var item in Tag) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + + internal static Meta DeserializeMeta(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional<string> versionId = default; + Optional<string> lastUpdated = default; + Optional<string> source = default; + Optional<IList<string>> profile = default; + Optional<IList<Coding>> security = default; + Optional<IList<Coding>> tag = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("versionId"u8)) + { + versionId = property.Value.GetString(); + continue; + } + if (property.NameEquals("lastUpdated"u8)) + { + lastUpdated = property.Value.GetString(); + continue; + } + if (property.NameEquals("source"u8)) + { + source = property.Value.GetString(); + continue; + } + if (property.NameEquals("profile"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<string> array = new List<string>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + profile = array; + continue; + } + if (property.NameEquals("security"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Coding> array = new List<Coding>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(Coding.DeserializeCoding(item)); + } + security = array; + continue; + } + if (property.NameEquals("tag"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Coding> array = new List<Coding>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(Coding.DeserializeCoding(item)); + } + tag = array; + continue; + } + } + return new Meta(versionId.Value, lastUpdated.Value, source.Value, Optional.ToList(profile), Optional.ToList(security), Optional.ToList(tag)); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static Meta FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMeta(document.RootElement); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Meta.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Meta.cs new file mode 100644 index 0000000000000..7420404d98d8d --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Meta.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + /// <summary> + /// Metadata about a resource + /// Based on [FHIR Meta](https://www.hl7.org/fhir/R4/resource.html#Meta) + /// </summary> + public partial class Meta + { + /// <summary> Initializes a new instance of <see cref="Meta"/>. </summary> + public Meta() + { + Profile = new ChangeTrackingList<string>(); + Security = new ChangeTrackingList<Coding>(); + Tag = new ChangeTrackingList<Coding>(); + } + + /// <summary> Initializes a new instance of <see cref="Meta"/>. </summary> + /// <param name="versionId"> The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted. </param> + /// <param name="lastUpdated"> When the resource last changed - e.g. when the version changed. </param> + /// <param name="source"> A uri that identifies the source system of the resource. This provides a minimal amount of Provenance information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc. </param> + /// <param name="profile"> A list of profiles (references to [StructureDefinition](https://www.hl7.org/fhir/structuredefinition.html) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](https://www.hl7.org/fhir/structuredefinition-definitions.html#StructureDefinition.url). </param> + /// <param name="security"> Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure. </param> + /// <param name="tag"> Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource. </param> + internal Meta(string versionId, string lastUpdated, string source, IList<string> profile, IList<Coding> security, IList<Coding> tag) + { + VersionId = versionId; + LastUpdated = lastUpdated; + Source = source; + Profile = profile; + Security = security; + Tag = tag; + } + + /// <summary> The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted. </summary> + public string VersionId { get; set; } + /// <summary> When the resource last changed - e.g. when the version changed. </summary> + public string LastUpdated { get; set; } + /// <summary> A uri that identifies the source system of the resource. This provides a minimal amount of Provenance information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc. </summary> + public string Source { get; set; } + /// <summary> A list of profiles (references to [StructureDefinition](https://www.hl7.org/fhir/structuredefinition.html) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](https://www.hl7.org/fhir/structuredefinition-definitions.html#StructureDefinition.url). </summary> + public IList<string> Profile { get; } + /// <summary> Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure. </summary> + public IList<Coding> Security { get; } + /// <summary> Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource. </summary> + public IList<Coding> Tag { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Narrative.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Narrative.Serialization.cs new file mode 100644 index 0000000000000..894870a759eae --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Narrative.Serialization.cs @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + public partial class Narrative + { + internal static Narrative DeserializeNarrative(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional<string> id = default; + Optional<IReadOnlyList<Extension>> extension = default; + string status = default; + string div = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(PatientTimeline.Extension.DeserializeExtension(item)); + } + extension = array; + continue; + } + if (property.NameEquals("status"u8)) + { + status = property.Value.GetString(); + continue; + } + if (property.NameEquals("div"u8)) + { + div = property.Value.GetString(); + continue; + } + } + return new Narrative(id.Value, Optional.ToList(extension), status, div); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static Narrative FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeNarrative(document.RootElement); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Narrative.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Narrative.cs new file mode 100644 index 0000000000000..dd70d5c8e8904 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Narrative.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + /// <summary> + /// Any resource that is a [DomainResource](https://www.hl7.org/fhir/domainresource.html) may include a human-readable narrative that contains a summary of the resource and may be used to represent the content of the resource to a human. + /// Based on [FHIR Narrative](https://www.hl7.org/fhir/R4/narrative.html#Narrative) + /// </summary> + public partial class Narrative + { + /// <summary> Initializes a new instance of <see cref="Narrative"/>. </summary> + /// <param name="status"> generated, extensions, additional, empty. </param> + /// <param name="div"> xhtml. </param> + /// <exception cref="ArgumentNullException"> <paramref name="status"/> or <paramref name="div"/> is null. </exception> + internal Narrative(string status, string div) + { + Argument.AssertNotNull(status, nameof(status)); + Argument.AssertNotNull(div, nameof(div)); + + Extension = new ChangeTrackingList<Extension>(); + Status = status; + Div = div; + } + + /// <summary> Initializes a new instance of <see cref="Narrative"/>. </summary> + /// <param name="id"> Unique id for inter-element referencing. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="status"> generated, extensions, additional, empty. </param> + /// <param name="div"> xhtml. </param> + internal Narrative(string id, IReadOnlyList<Extension> extension, string status, string div) + { + Id = id; + Extension = extension; + Status = status; + Div = div; + } + + /// <summary> Unique id for inter-element referencing. </summary> + public string Id { get; } + /// <summary> Additional Content defined by implementations. </summary> + public IReadOnlyList<Extension> Extension { get; } + /// <summary> generated, extensions, additional, empty. </summary> + public string Status { get; } + /// <summary> xhtml. </summary> + public string Div { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/OrderedProcedure.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/OrderedProcedure.Serialization.cs new file mode 100644 index 0000000000000..fd0dfca7f13ab --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/OrderedProcedure.Serialization.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + public partial class OrderedProcedure : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(Code)) + { + writer.WritePropertyName("code"u8); + writer.WriteObjectValue(Code); + } + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + writer.WriteEndObject(); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/OrderedProcedure.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/OrderedProcedure.cs new file mode 100644 index 0000000000000..4d0428be79c8f --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/OrderedProcedure.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + /// <summary> Procedure information. </summary> + public partial class OrderedProcedure + { + /// <summary> Initializes a new instance of <see cref="OrderedProcedure"/>. </summary> + public OrderedProcedure() + { + Extension = new ChangeTrackingList<Extension>(); + } + + /// <summary> Initializes a new instance of <see cref="OrderedProcedure"/>. </summary> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="code"> Procedure code. </param> + /// <param name="description"> Procedure description. </param> + internal OrderedProcedure(IList<Extension> extension, CodeableConcept code, string description) + { + Extension = extension; + Code = code; + Description = description; + } + + /// <summary> Additional Content defined by implementations. </summary> + public IList<Extension> Extension { get; } + /// <summary> Procedure code. </summary> + public CodeableConcept Code { get; set; } + /// <summary> Procedure description. </summary> + public string Description { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientDocument.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientDocument.Serialization.cs new file mode 100644 index 0000000000000..625a6847d0cdc --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientDocument.Serialization.cs @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + public partial class PatientDocument : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("type"u8); + writer.WriteStringValue(Type.ToString()); + if (Optional.IsDefined(ClinicalType)) + { + writer.WritePropertyName("clinicalType"u8); + writer.WriteStringValue(ClinicalType.Value.ToString()); + } + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + if (Optional.IsDefined(Language)) + { + writer.WritePropertyName("language"u8); + writer.WriteStringValue(Language); + } + if (Optional.IsDefined(CreatedDateTime)) + { + writer.WritePropertyName("createdDateTime"u8); + writer.WriteStringValue(CreatedDateTime.Value, "O"); + } + if (Optional.IsCollectionDefined(Authors)) + { + writer.WritePropertyName("authors"u8); + writer.WriteStartArray(); + foreach (var item in Authors) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(SpecialtyType)) + { + writer.WritePropertyName("specialtyType"u8); + writer.WriteStringValue(SpecialtyType.Value.ToString()); + } + if (Optional.IsDefined(AdministrativeMetadata)) + { + writer.WritePropertyName("administrativeMetadata"u8); + writer.WriteObjectValue(AdministrativeMetadata); + } + writer.WritePropertyName("content"u8); + writer.WriteObjectValue(Content); + writer.WriteEndObject(); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientDocument.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientDocument.cs new file mode 100644 index 0000000000000..1070277267056 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientDocument.cs @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + /// <summary> A clinical document related to a patient. Document here is in the wide sense - not just a text document (note). </summary> + public partial class PatientDocument + { + /// <summary> Initializes a new instance of <see cref="PatientDocument"/>. </summary> + /// <param name="type"> The type of the patient document, such as 'note' (text document) or 'fhirBundle' (FHIR JSON document). </param> + /// <param name="id"> A given identifier for the document. Has to be unique across all documents for a single patient. </param> + /// <param name="content"> The content of the patient document. </param> + /// <exception cref="ArgumentNullException"> <paramref name="id"/> or <paramref name="content"/> is null. </exception> + public PatientDocument(DocumentType type, string id, DocumentContent content) + { + Argument.AssertNotNull(id, nameof(id)); + Argument.AssertNotNull(content, nameof(content)); + + Type = type; + Id = id; + Authors = new ChangeTrackingList<DocumentAuthor>(); + Content = content; + } + + /// <summary> Initializes a new instance of <see cref="PatientDocument"/>. </summary> + /// <param name="type"> The type of the patient document, such as 'note' (text document) or 'fhirBundle' (FHIR JSON document). </param> + /// <param name="clinicalType"> The type of the clinical document. </param> + /// <param name="id"> A given identifier for the document. Has to be unique across all documents for a single patient. </param> + /// <param name="language"> A 2 letter ISO 639-1 representation of the language of the document. </param> + /// <param name="createdDateTime"> The date and time when the document was created. </param> + /// <param name="authors"> Document author(s). </param> + /// <param name="specialtyType"> specialty type the document. </param> + /// <param name="administrativeMetadata"> Administrative metadata for the document. </param> + /// <param name="content"> The content of the patient document. </param> + internal PatientDocument(DocumentType type, ClinicalDocumentType? clinicalType, string id, string language, DateTimeOffset? createdDateTime, IList<DocumentAuthor> authors, SpecialtyType? specialtyType, DocumentAdministrativeMetadata administrativeMetadata, DocumentContent content) + { + Type = type; + ClinicalType = clinicalType; + Id = id; + Language = language; + CreatedDateTime = createdDateTime; + Authors = authors; + SpecialtyType = specialtyType; + AdministrativeMetadata = administrativeMetadata; + Content = content; + } + + /// <summary> The type of the patient document, such as 'note' (text document) or 'fhirBundle' (FHIR JSON document). </summary> + public DocumentType Type { get; } + /// <summary> The type of the clinical document. </summary> + public ClinicalDocumentType? ClinicalType { get; set; } + /// <summary> A given identifier for the document. Has to be unique across all documents for a single patient. </summary> + public string Id { get; } + /// <summary> A 2 letter ISO 639-1 representation of the language of the document. </summary> + public string Language { get; set; } + /// <summary> The date and time when the document was created. </summary> + public DateTimeOffset? CreatedDateTime { get; set; } + /// <summary> Document author(s). </summary> + public IList<DocumentAuthor> Authors { get; } + /// <summary> specialty type the document. </summary> + public SpecialtyType? SpecialtyType { get; set; } + /// <summary> Administrative metadata for the document. </summary> + public DocumentAdministrativeMetadata AdministrativeMetadata { get; set; } + /// <summary> The content of the patient document. </summary> + public DocumentContent Content { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientInfo.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientInfo.Serialization.cs new file mode 100644 index 0000000000000..8948e65204a4d --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientInfo.Serialization.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + public partial class PatientInfo : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Sex)) + { + writer.WritePropertyName("sex"u8); + writer.WriteStringValue(Sex.Value.ToString()); + } + if (Optional.IsDefined(BirthDate)) + { + writer.WritePropertyName("birthDate"u8); + writer.WriteStringValue(BirthDate.Value, "D"); + } + if (Optional.IsCollectionDefined(ClinicalInfo)) + { + writer.WritePropertyName("clinicalInfo"u8); + writer.WriteStartArray(); + foreach (var item in ClinicalInfo) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientInfo.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientInfo.cs new file mode 100644 index 0000000000000..70e8fee8b90a8 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientInfo.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + /// <summary> Patient structured information, including demographics and known structured clinical information. </summary> + public partial class PatientInfo + { + /// <summary> Initializes a new instance of <see cref="PatientInfo"/>. </summary> + public PatientInfo() + { + ClinicalInfo = new ChangeTrackingList<Resource>(); + } + + /// <summary> Initializes a new instance of <see cref="PatientInfo"/>. </summary> + /// <param name="sex"> The patient's sex. </param> + /// <param name="birthDate"> The patient's date of birth. </param> + /// <param name="clinicalInfo"> Known clinical information for the patient, structured. </param> + internal PatientInfo(PatientInfoSex? sex, DateTimeOffset? birthDate, IList<Resource> clinicalInfo) + { + Sex = sex; + BirthDate = birthDate; + ClinicalInfo = clinicalInfo; + } + + /// <summary> The patient's sex. </summary> + public PatientInfoSex? Sex { get; set; } + /// <summary> The patient's date of birth. </summary> + public DateTimeOffset? BirthDate { get; set; } + /// <summary> Known clinical information for the patient, structured. </summary> + public IList<Resource> ClinicalInfo { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientInfoSex.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientInfoSex.cs new file mode 100644 index 0000000000000..8ec6798fc96d2 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientInfoSex.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Health.Insights.PatientTimeline +{ + /// <summary> The patient's sex. </summary> + public readonly partial struct PatientInfoSex : IEquatable<PatientInfoSex> + { + private readonly string _value; + + /// <summary> Initializes a new instance of <see cref="PatientInfoSex"/>. </summary> + /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception> + public PatientInfoSex(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string FemaleValue = "female"; + private const string MaleValue = "male"; + private const string UnspecifiedValue = "unspecified"; + + /// <summary> female. </summary> + public static PatientInfoSex Female { get; } = new PatientInfoSex(FemaleValue); + /// <summary> male. </summary> + public static PatientInfoSex Male { get; } = new PatientInfoSex(MaleValue); + /// <summary> unspecified. </summary> + public static PatientInfoSex Unspecified { get; } = new PatientInfoSex(UnspecifiedValue); + /// <summary> Determines if two <see cref="PatientInfoSex"/> values are the same. </summary> + public static bool operator ==(PatientInfoSex left, PatientInfoSex right) => left.Equals(right); + /// <summary> Determines if two <see cref="PatientInfoSex"/> values are not the same. </summary> + public static bool operator !=(PatientInfoSex left, PatientInfoSex right) => !left.Equals(right); + /// <summary> Converts a string to a <see cref="PatientInfoSex"/>. </summary> + public static implicit operator PatientInfoSex(string value) => new PatientInfoSex(value); + + /// <inheritdoc /> + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is PatientInfoSex other && Equals(other); + /// <inheritdoc /> + public bool Equals(PatientInfoSex other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// <inheritdoc /> + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// <inheritdoc /> + public override string ToString() => _value; + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientRecord.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientRecord.Serialization.cs new file mode 100644 index 0000000000000..989b852d488fb --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientRecord.Serialization.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + public partial class PatientRecord : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + if (Optional.IsDefined(Info)) + { + writer.WritePropertyName("info"u8); + writer.WriteObjectValue(Info); + } + if (Optional.IsCollectionDefined(Encounters)) + { + writer.WritePropertyName("encounters"u8); + writer.WriteStartArray(); + foreach (var item in Encounters) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(PatientDocuments)) + { + writer.WritePropertyName("patientDocuments"u8); + writer.WriteStartArray(); + foreach (var item in PatientDocuments) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientRecord.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientRecord.cs new file mode 100644 index 0000000000000..3e096e0362b80 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientRecord.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + /// <summary> A patient record, including their clinical information and data. </summary> + public partial class PatientRecord + { + /// <summary> Initializes a new instance of <see cref="PatientRecord"/>. </summary> + /// <param name="id"> A given identifier for the patient. Has to be unique across all patients in a single request. </param> + /// <exception cref="ArgumentNullException"> <paramref name="id"/> is null. </exception> + public PatientRecord(string id) + { + Argument.AssertNotNull(id, nameof(id)); + + Id = id; + Encounters = new ChangeTrackingList<Encounter>(); + PatientDocuments = new ChangeTrackingList<PatientDocument>(); + } + + /// <summary> Initializes a new instance of <see cref="PatientRecord"/>. </summary> + /// <param name="id"> A given identifier for the patient. Has to be unique across all patients in a single request. </param> + /// <param name="info"> Patient structured information, including demographics and known structured clinical information. </param> + /// <param name="encounters"> Patient encounters/visits. </param> + /// <param name="patientDocuments"> Patient unstructured clinical data, given as documents. </param> + internal PatientRecord(string id, PatientInfo info, IList<Encounter> encounters, IList<PatientDocument> patientDocuments) + { + Id = id; + Info = info; + Encounters = encounters; + PatientDocuments = patientDocuments; + } + + /// <summary> A given identifier for the patient. Has to be unique across all patients in a single request. </summary> + public string Id { get; } + /// <summary> Patient structured information, including demographics and known structured clinical information. </summary> + public PatientInfo Info { get; set; } + /// <summary> Patient encounters/visits. </summary> + public IList<Encounter> Encounters { get; } + /// <summary> Patient unstructured clinical data, given as documents. </summary> + public IList<PatientDocument> PatientDocuments { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientTimelineClient.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientTimelineClient.cs new file mode 100644 index 0000000000000..3007fcf765135 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientTimelineClient.cs @@ -0,0 +1,218 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.Health.Insights.PatientTimeline +{ + // Data plane generated client. + /// <summary> The PatientTimeline service client. </summary> + public partial class PatientTimelineClient + { + private const string AuthorizationHeader = "Ocp-Apim-Subscription-Key"; + private readonly AzureKeyCredential _keyCredential; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// <summary> The ClientDiagnostics is used to provide tracing support for the client library. </summary> + internal ClientDiagnostics ClientDiagnostics { get; } + + /// <summary> The HTTP pipeline for sending and receiving REST requests and responses. </summary> + public virtual HttpPipeline Pipeline => _pipeline; + + /// <summary> Initializes a new instance of PatientTimelineClient for mocking. </summary> + protected PatientTimelineClient() + { + } + + /// <summary> Initializes a new instance of PatientTimelineClient. </summary> + /// <param name="endpoint"> Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus2.api.cognitive.microsoft.com). </param> + /// <param name="credential"> A credential used to authenticate to an Azure Service. </param> + /// <exception cref="ArgumentNullException"> <paramref name="endpoint"/> or <paramref name="credential"/> is null. </exception> + public PatientTimelineClient(Uri endpoint, AzureKeyCredential credential) : this(endpoint, credential, new PatientTimelineClientOptions()) + { + } + + /// <summary> Initializes a new instance of PatientTimelineClient. </summary> + /// <param name="endpoint"> Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus2.api.cognitive.microsoft.com). </param> + /// <param name="credential"> A credential used to authenticate to an Azure Service. </param> + /// <param name="options"> The options for configuring the client. </param> + /// <exception cref="ArgumentNullException"> <paramref name="endpoint"/> or <paramref name="credential"/> is null. </exception> + public PatientTimelineClient(Uri endpoint, AzureKeyCredential credential, PatientTimelineClientOptions options) + { + Argument.AssertNotNull(endpoint, nameof(endpoint)); + Argument.AssertNotNull(credential, nameof(credential)); + options ??= new PatientTimelineClientOptions(); + + ClientDiagnostics = new ClientDiagnostics(options, true); + _keyCredential = credential; + _pipeline = HttpPipelineBuilder.Build(options, Array.Empty<HttpPipelinePolicy>(), new HttpPipelinePolicy[] { new AzureKeyCredentialPolicy(_keyCredential, AuthorizationHeader) }, new ResponseClassifier()); + _endpoint = endpoint; + _apiVersion = options.Version; + } + + /// <summary> Create Patient Timeline job. </summary> + /// <param name="waitUntil"> <see cref="WaitUntil.Completed"/> if the method should wait to return until the long-running operation has completed on the service; <see cref="WaitUntil.Started"/> if it should return after starting the operation. For more information on long-running operations, please see <see href="https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/LongRunningOperations.md"> Azure.Core Long-Running Operation samples</see>. </param> + /// <param name="patientTimelineData"> The body of the Patient Timeline request. </param> + /// <param name="cancellationToken"> The cancellation token to use. </param> + /// <exception cref="ArgumentNullException"> <paramref name="patientTimelineData"/> is null. </exception> + /// <remarks> Creates a Patient Timeline job with the given request body. </remarks> + /// <include file="Docs/PatientTimelineClient.xml" path="doc/members/member[@name='InferPatientTimelineAsync(WaitUntil,PatientTimelineData,CancellationToken)']/*" /> + public virtual async Task<Operation<PatientTimelineInferenceResult>> InferPatientTimelineAsync(WaitUntil waitUntil, PatientTimelineData patientTimelineData, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patientTimelineData, nameof(patientTimelineData)); + + RequestContext context = FromCancellationToken(cancellationToken); + using RequestContent content = patientTimelineData.ToRequestContent(); + Operation<BinaryData> response = await InferPatientTimelineAsync(waitUntil, content, context).ConfigureAwait(false); + return ProtocolOperationHelpers.Convert(response, FetchPatientTimelineInferenceResultFromPatientTimelineResult, ClientDiagnostics, "PatientTimelineClient.InferPatientTimeline"); + } + + /// <summary> Create Patient Timeline job. </summary> + /// <param name="waitUntil"> <see cref="WaitUntil.Completed"/> if the method should wait to return until the long-running operation has completed on the service; <see cref="WaitUntil.Started"/> if it should return after starting the operation. For more information on long-running operations, please see <see href="https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/LongRunningOperations.md"> Azure.Core Long-Running Operation samples</see>. </param> + /// <param name="patientTimelineData"> The body of the Patient Timeline request. </param> + /// <param name="cancellationToken"> The cancellation token to use. </param> + /// <exception cref="ArgumentNullException"> <paramref name="patientTimelineData"/> is null. </exception> + /// <remarks> Creates a Patient Timeline job with the given request body. </remarks> + /// <include file="Docs/PatientTimelineClient.xml" path="doc/members/member[@name='InferPatientTimeline(WaitUntil,PatientTimelineData,CancellationToken)']/*" /> + public virtual Operation<PatientTimelineInferenceResult> InferPatientTimeline(WaitUntil waitUntil, PatientTimelineData patientTimelineData, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patientTimelineData, nameof(patientTimelineData)); + + RequestContext context = FromCancellationToken(cancellationToken); + using RequestContent content = patientTimelineData.ToRequestContent(); + Operation<BinaryData> response = InferPatientTimeline(waitUntil, content, context); + return ProtocolOperationHelpers.Convert(response, FetchPatientTimelineInferenceResultFromPatientTimelineResult, ClientDiagnostics, "PatientTimelineClient.InferPatientTimeline"); + } + + /// <summary> + /// [Protocol Method] Create Patient Timeline job + /// <list type="bullet"> + /// <item> + /// <description> + /// This <see href="https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/ProtocolMethods.md">protocol method</see> allows explicit creation of the request and processing of the response for advanced scenarios. + /// </description> + /// </item> + /// <item> + /// <description> + /// Please try the simpler <see cref="InferPatientTimelineAsync(WaitUntil,PatientTimelineData,CancellationToken)"/> convenience overload with strongly typed models first. + /// </description> + /// </item> + /// </list> + /// </summary> + /// <param name="waitUntil"> <see cref="WaitUntil.Completed"/> if the method should wait to return until the long-running operation has completed on the service; <see cref="WaitUntil.Started"/> if it should return after starting the operation. For more information on long-running operations, please see <see href="https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/LongRunningOperations.md"> Azure.Core Long-Running Operation samples</see>. </param> + /// <param name="content"> The content to send as the body of the request. </param> + /// <param name="context"> The request context, which can override default behaviors of the client pipeline on a per-call basis. </param> + /// <exception cref="ArgumentNullException"> <paramref name="content"/> is null. </exception> + /// <exception cref="RequestFailedException"> Service returned a non-success status code. </exception> + /// <returns> The <see cref="Operation"/> representing an asynchronous operation on the service. </returns> + /// <include file="Docs/PatientTimelineClient.xml" path="doc/members/member[@name='InferPatientTimelineAsync(WaitUntil,RequestContent,RequestContext)']/*" /> + public virtual async Task<Operation<BinaryData>> InferPatientTimelineAsync(WaitUntil waitUntil, RequestContent content, RequestContext context = null) + { + Argument.AssertNotNull(content, nameof(content)); + + using var scope = ClientDiagnostics.CreateScope("PatientTimelineClient.InferPatientTimeline"); + scope.Start(); + try + { + using HttpMessage message = CreateInferPatientTimelineRequest(content, context); + return await ProtocolOperationHelpers.ProcessMessageAsync(_pipeline, message, ClientDiagnostics, "PatientTimelineClient.InferPatientTimeline", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// <summary> + /// [Protocol Method] Create Patient Timeline job + /// <list type="bullet"> + /// <item> + /// <description> + /// This <see href="https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/ProtocolMethods.md">protocol method</see> allows explicit creation of the request and processing of the response for advanced scenarios. + /// </description> + /// </item> + /// <item> + /// <description> + /// Please try the simpler <see cref="InferPatientTimeline(WaitUntil,PatientTimelineData,CancellationToken)"/> convenience overload with strongly typed models first. + /// </description> + /// </item> + /// </list> + /// </summary> + /// <param name="waitUntil"> <see cref="WaitUntil.Completed"/> if the method should wait to return until the long-running operation has completed on the service; <see cref="WaitUntil.Started"/> if it should return after starting the operation. For more information on long-running operations, please see <see href="https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/LongRunningOperations.md"> Azure.Core Long-Running Operation samples</see>. </param> + /// <param name="content"> The content to send as the body of the request. </param> + /// <param name="context"> The request context, which can override default behaviors of the client pipeline on a per-call basis. </param> + /// <exception cref="ArgumentNullException"> <paramref name="content"/> is null. </exception> + /// <exception cref="RequestFailedException"> Service returned a non-success status code. </exception> + /// <returns> The <see cref="Operation"/> representing an asynchronous operation on the service. </returns> + /// <include file="Docs/PatientTimelineClient.xml" path="doc/members/member[@name='InferPatientTimeline(WaitUntil,RequestContent,RequestContext)']/*" /> + public virtual Operation<BinaryData> InferPatientTimeline(WaitUntil waitUntil, RequestContent content, RequestContext context = null) + { + Argument.AssertNotNull(content, nameof(content)); + + using var scope = ClientDiagnostics.CreateScope("PatientTimelineClient.InferPatientTimeline"); + scope.Start(); + try + { + using HttpMessage message = CreateInferPatientTimelineRequest(content, context); + return ProtocolOperationHelpers.ProcessMessage(_pipeline, message, ClientDiagnostics, "PatientTimelineClient.InferPatientTimeline", OperationFinalStateVia.OperationLocation, context, waitUntil); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + internal HttpMessage CreateInferPatientTimelineRequest(RequestContent content, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier202); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/health-insights", false); + uri.AppendPath("/patient-timeline/jobs", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Repeatability-Request-ID", Guid.NewGuid()); + request.Headers.Add("Repeatability-First-Sent", DateTimeOffset.Now, "R"); + request.Headers.Add("Content-Type", "application/json"); + request.Content = content; + return message; + } + + private static RequestContext DefaultRequestContext = new RequestContext(); + internal static RequestContext FromCancellationToken(CancellationToken cancellationToken = default) + { + if (!cancellationToken.CanBeCanceled) + { + return DefaultRequestContext; + } + + return new RequestContext() { CancellationToken = cancellationToken }; + } + + private static ResponseClassifier _responseClassifier202; + private static ResponseClassifier ResponseClassifier202 => _responseClassifier202 ??= new StatusCodeClassifier(stackalloc ushort[] { 202 }); + + private PatientTimelineInferenceResult FetchPatientTimelineInferenceResultFromPatientTimelineResult(Response response) + { + var resultJsonElement = JsonDocument.Parse(response.Content).RootElement.GetProperty("result"); + return PatientTimelineInferenceResult.DeserializePatientTimelineInferenceResult(resultJsonElement); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientTimelineClientOptions.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientTimelineClientOptions.cs new file mode 100644 index 0000000000000..428767e226869 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientTimelineClientOptions.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + /// <summary> Client options for PatientTimelineClient. </summary> + public partial class PatientTimelineClientOptions : ClientOptions + { + private const ServiceVersion LatestVersion = ServiceVersion.V2023_09_01_Preview; + + /// <summary> The version of the service to use. </summary> + public enum ServiceVersion + { + /// <summary> Service version "2023-09-01-preview". </summary> + V2023_09_01_Preview = 1, + } + + internal string Version { get; } + + /// <summary> Initializes new instance of PatientTimelineClientOptions. </summary> + public PatientTimelineClientOptions(ServiceVersion version = LatestVersion) + { + Version = version switch + { + ServiceVersion.V2023_09_01_Preview => "2023-09-01-preview", + _ => throw new NotSupportedException() + }; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientTimelineData.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientTimelineData.Serialization.cs new file mode 100644 index 0000000000000..c2f9ff04b09bc --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientTimelineData.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + public partial class PatientTimelineData : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("patients"u8); + writer.WriteStartArray(); + foreach (var item in Patients) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + if (Optional.IsDefined(Configuration)) + { + writer.WritePropertyName("configuration"u8); + writer.WriteObjectValue(Configuration); + } + writer.WriteEndObject(); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientTimelineData.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientTimelineData.cs new file mode 100644 index 0000000000000..d71eb6a8abc65 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientTimelineData.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + /// <summary> The body of the Patient Timeline request. </summary> + public partial class PatientTimelineData + { + /// <summary> Initializes a new instance of <see cref="PatientTimelineData"/>. </summary> + /// <param name="patients"> The list of patients, including their clinical information and data. </param> + /// <exception cref="ArgumentNullException"> <paramref name="patients"/> is null. </exception> + public PatientTimelineData(IEnumerable<PatientRecord> patients) + { + Argument.AssertNotNull(patients, nameof(patients)); + + Patients = patients.ToList(); + } + + /// <summary> Initializes a new instance of <see cref="PatientTimelineData"/>. </summary> + /// <param name="patients"> The list of patients, including their clinical information and data. </param> + /// <param name="configuration"> Configuration affecting the Patient Timeline model's inference. </param> + internal PatientTimelineData(IList<PatientRecord> patients, PatientTimelineModelConfiguration configuration) + { + Patients = patients; + Configuration = configuration; + } + + /// <summary> The list of patients, including their clinical information and data. </summary> + public IList<PatientRecord> Patients { get; } + /// <summary> Configuration affecting the Patient Timeline model's inference. </summary> + public PatientTimelineModelConfiguration Configuration { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientTimelineInference.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientTimelineInference.Serialization.cs new file mode 100644 index 0000000000000..c6fe875544eec --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientTimelineInference.Serialization.cs @@ -0,0 +1,78 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + public partial class PatientTimelineInference + { + internal static PatientTimelineInference DeserializePatientTimelineInference(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional<IReadOnlyList<Extension>> extension = default; + string type = default; + Optional<DomainResource> resource = default; + Optional<TimePeriod> period = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(PatientTimeline.Extension.DeserializeExtension(item)); + } + extension = array; + continue; + } + if (property.NameEquals("type"u8)) + { + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("resource"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + resource = DomainResource.DeserializeDomainResource(property.Value); + continue; + } + if (property.NameEquals("period"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + period = TimePeriod.DeserializeTimePeriod(property.Value); + continue; + } + } + return new PatientTimelineInference(Optional.ToList(extension), type, resource.Value, period.Value); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static PatientTimelineInference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePatientTimelineInference(document.RootElement); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientTimelineInference.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientTimelineInference.cs new file mode 100644 index 0000000000000..4d193bb7c1b92 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientTimelineInference.cs @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + /// <summary> An inference made by the Patient Timeline model regarding a patient. </summary> + public partial class PatientTimelineInference + { + /// <summary> Initializes a new instance of <see cref="PatientTimelineInference"/>. </summary> + /// <param name="type"> The type of the Patient Timeline inference. </param> + /// <exception cref="ArgumentNullException"> <paramref name="type"/> is null. </exception> + internal PatientTimelineInference(string type) + { + Argument.AssertNotNull(type, nameof(type)); + + Extension = new ChangeTrackingList<Extension>(); + Type = type; + } + + /// <summary> Initializes a new instance of <see cref="PatientTimelineInference"/>. </summary> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="type"> The type of the Patient Timeline inference. </param> + /// <param name="resource"> + /// FHIR 4.0 representation of the piece of clinical info. + /// additional dependent resources maybe contained (e.g. MedicationStatement may contain Medication) + /// -- In the SDK we will have custom mapping to map this type to JsonObject + /// </param> + /// <param name="period"> Time range relevant to this Timeline inference. </param> + internal PatientTimelineInference(IReadOnlyList<Extension> extension, string type, DomainResource resource, TimePeriod period) + { + Extension = extension; + Type = type; + Resource = resource; + Period = period; + } + + /// <summary> Additional Content defined by implementations. </summary> + public IReadOnlyList<Extension> Extension { get; } + /// <summary> The type of the Patient Timeline inference. </summary> + public string Type { get; } + /// <summary> + /// FHIR 4.0 representation of the piece of clinical info. + /// additional dependent resources maybe contained (e.g. MedicationStatement may contain Medication) + /// -- In the SDK we will have custom mapping to map this type to JsonObject + /// </summary> + public DomainResource Resource { get; } + /// <summary> Time range relevant to this Timeline inference. </summary> + public TimePeriod Period { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientTimelineInferenceResult.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientTimelineInferenceResult.Serialization.cs new file mode 100644 index 0000000000000..b85e25aef42f6 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientTimelineInferenceResult.Serialization.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; + +namespace Azure.Health.Insights.PatientTimeline +{ + public partial class PatientTimelineInferenceResult + { + internal static PatientTimelineInferenceResult DeserializePatientTimelineInferenceResult(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IReadOnlyList<PatientTimelinePatientResult> patientResults = default; + string modelVersion = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("patientResults"u8)) + { + List<PatientTimelinePatientResult> array = new List<PatientTimelinePatientResult>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(PatientTimelinePatientResult.DeserializePatientTimelinePatientResult(item)); + } + patientResults = array; + continue; + } + if (property.NameEquals("modelVersion"u8)) + { + modelVersion = property.Value.GetString(); + continue; + } + } + return new PatientTimelineInferenceResult(patientResults, modelVersion); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static PatientTimelineInferenceResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePatientTimelineInferenceResult(document.RootElement); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientTimelineInferenceResult.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientTimelineInferenceResult.cs new file mode 100644 index 0000000000000..0eeaaa93f44b2 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientTimelineInferenceResult.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + /// <summary> The inference results for the Patient Timeline request. </summary> + public partial class PatientTimelineInferenceResult + { + /// <summary> Initializes a new instance of <see cref="PatientTimelineInferenceResult"/>. </summary> + /// <param name="patientResults"> Results for the patients given in the request. </param> + /// <param name="modelVersion"> The version of the model used for inference, expressed as the model date. </param> + /// <exception cref="ArgumentNullException"> <paramref name="patientResults"/> or <paramref name="modelVersion"/> is null. </exception> + internal PatientTimelineInferenceResult(IEnumerable<PatientTimelinePatientResult> patientResults, string modelVersion) + { + Argument.AssertNotNull(patientResults, nameof(patientResults)); + Argument.AssertNotNull(modelVersion, nameof(modelVersion)); + + PatientResults = patientResults.ToList(); + ModelVersion = modelVersion; + } + + /// <summary> Initializes a new instance of <see cref="PatientTimelineInferenceResult"/>. </summary> + /// <param name="patientResults"> Results for the patients given in the request. </param> + /// <param name="modelVersion"> The version of the model used for inference, expressed as the model date. </param> + internal PatientTimelineInferenceResult(IReadOnlyList<PatientTimelinePatientResult> patientResults, string modelVersion) + { + PatientResults = patientResults; + ModelVersion = modelVersion; + } + + /// <summary> Results for the patients given in the request. </summary> + public IReadOnlyList<PatientTimelinePatientResult> PatientResults { get; } + /// <summary> The version of the model used for inference, expressed as the model date. </summary> + public string ModelVersion { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientTimelineModelConfiguration.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientTimelineModelConfiguration.Serialization.cs new file mode 100644 index 0000000000000..8ed1d201fb150 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientTimelineModelConfiguration.Serialization.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + public partial class PatientTimelineModelConfiguration : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Verbose)) + { + writer.WritePropertyName("verbose"u8); + writer.WriteBooleanValue(Verbose.Value); + } + if (Optional.IsDefined(IncludeEvidence)) + { + writer.WritePropertyName("includeEvidence"u8); + writer.WriteBooleanValue(IncludeEvidence.Value); + } + writer.WriteEndObject(); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientTimelineModelConfiguration.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientTimelineModelConfiguration.cs new file mode 100644 index 0000000000000..89dd7cfe93a1a --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientTimelineModelConfiguration.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +namespace Azure.Health.Insights.PatientTimeline +{ + /// <summary> Configuration affecting the Patient Timeline model's inference. </summary> + public partial class PatientTimelineModelConfiguration + { + /// <summary> Initializes a new instance of <see cref="PatientTimelineModelConfiguration"/>. </summary> + public PatientTimelineModelConfiguration() + { + } + + /// <summary> Initializes a new instance of <see cref="PatientTimelineModelConfiguration"/>. </summary> + /// <param name="verbose"> An indication whether the model should produce verbose output. </param> + /// <param name="includeEvidence"> An indication whether the model's output should include evidence for the inferences. </param> + internal PatientTimelineModelConfiguration(bool? verbose, bool? includeEvidence) + { + Verbose = verbose; + IncludeEvidence = includeEvidence; + } + + /// <summary> An indication whether the model should produce verbose output. </summary> + public bool? Verbose { get; set; } + /// <summary> An indication whether the model's output should include evidence for the inferences. </summary> + public bool? IncludeEvidence { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientTimelinePatientResult.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientTimelinePatientResult.Serialization.cs new file mode 100644 index 0000000000000..1717ca73a5e38 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientTimelinePatientResult.Serialization.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; + +namespace Azure.Health.Insights.PatientTimeline +{ + public partial class PatientTimelinePatientResult + { + internal static PatientTimelinePatientResult DeserializePatientTimelinePatientResult(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string patientId = default; + IReadOnlyList<PatientTimelineInference> inferences = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("patientId"u8)) + { + patientId = property.Value.GetString(); + continue; + } + if (property.NameEquals("inferences"u8)) + { + List<PatientTimelineInference> array = new List<PatientTimelineInference>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(PatientTimelineInference.DeserializePatientTimelineInference(item)); + } + inferences = array; + continue; + } + } + return new PatientTimelinePatientResult(patientId, inferences); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static PatientTimelinePatientResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePatientTimelinePatientResult(document.RootElement); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientTimelinePatientResult.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientTimelinePatientResult.cs new file mode 100644 index 0000000000000..18c38d193c1b1 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/PatientTimelinePatientResult.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + /// <summary> The results of the model's work for a single patient. </summary> + public partial class PatientTimelinePatientResult + { + /// <summary> Initializes a new instance of <see cref="PatientTimelinePatientResult"/>. </summary> + /// <param name="patientId"> The identifier given for the patient in the request. </param> + /// <param name="inferences"> The model's inferences for the given patient. </param> + /// <exception cref="ArgumentNullException"> <paramref name="patientId"/> or <paramref name="inferences"/> is null. </exception> + internal PatientTimelinePatientResult(string patientId, IEnumerable<PatientTimelineInference> inferences) + { + Argument.AssertNotNull(patientId, nameof(patientId)); + Argument.AssertNotNull(inferences, nameof(inferences)); + + PatientId = patientId; + Inferences = inferences.ToList(); + } + + /// <summary> Initializes a new instance of <see cref="PatientTimelinePatientResult"/>. </summary> + /// <param name="patientId"> The identifier given for the patient in the request. </param> + /// <param name="inferences"> The model's inferences for the given patient. </param> + internal PatientTimelinePatientResult(string patientId, IReadOnlyList<PatientTimelineInference> inferences) + { + PatientId = patientId; + Inferences = inferences; + } + + /// <summary> The identifier given for the patient in the request. </summary> + public string PatientId { get; } + /// <summary> The model's inferences for the given patient. </summary> + public IReadOnlyList<PatientTimelineInference> Inferences { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Period.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Period.Serialization.cs new file mode 100644 index 0000000000000..f2580e7ddb0ce --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Period.Serialization.cs @@ -0,0 +1,109 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + public partial class Period : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(Start)) + { + writer.WritePropertyName("start"u8); + writer.WriteStringValue(Start); + } + if (Optional.IsDefined(End)) + { + writer.WritePropertyName("end"u8); + writer.WriteStringValue(End); + } + writer.WriteEndObject(); + } + + internal static Period DeserializePeriod(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional<string> id = default; + Optional<IList<Extension>> extension = default; + Optional<string> start = default; + Optional<string> end = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(PatientTimeline.Extension.DeserializeExtension(item)); + } + extension = array; + continue; + } + if (property.NameEquals("start"u8)) + { + start = property.Value.GetString(); + continue; + } + if (property.NameEquals("end"u8)) + { + end = property.Value.GetString(); + continue; + } + } + return new Period(id.Value, Optional.ToList(extension), start.Value, end.Value); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static Period FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePeriod(document.RootElement); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Period.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Period.cs new file mode 100644 index 0000000000000..708831ee523d0 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Period.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + /// <summary> + /// A time period defined by a start and end date and optionally time + /// Based on [FHIR Period](https://www.hl7.org/fhir/R4/datatypes.html#Period) + /// </summary> + public partial class Period + { + /// <summary> Initializes a new instance of <see cref="Period"/>. </summary> + public Period() + { + Extension = new ChangeTrackingList<Extension>(); + } + + /// <summary> Initializes a new instance of <see cref="Period"/>. </summary> + /// <param name="id"> Unique id for inter-element referencing. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="start"> Starting time with inclusive boundary. </param> + /// <param name="end"> End time with inclusive boundary, if not ongoing. </param> + internal Period(string id, IList<Extension> extension, string start, string end) + { + Id = id; + Extension = extension; + Start = start; + End = end; + } + + /// <summary> Unique id for inter-element referencing. </summary> + public string Id { get; set; } + /// <summary> Additional Content defined by implementations. </summary> + public IList<Extension> Extension { get; } + /// <summary> Starting time with inclusive boundary. </summary> + public string Start { get; set; } + /// <summary> End time with inclusive boundary, if not ongoing. </summary> + public string End { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Quantity.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Quantity.Serialization.cs new file mode 100644 index 0000000000000..f7f120f5078fb --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Quantity.Serialization.cs @@ -0,0 +1,146 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + public partial class Quantity : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(Value)) + { + writer.WritePropertyName("value"u8); + writer.WriteNumberValue(Value.Value); + } + if (Optional.IsDefined(Comparator)) + { + writer.WritePropertyName("comparator"u8); + writer.WriteStringValue(Comparator); + } + if (Optional.IsDefined(Unit)) + { + writer.WritePropertyName("unit"u8); + writer.WriteStringValue(Unit); + } + if (Optional.IsDefined(System)) + { + writer.WritePropertyName("system"u8); + writer.WriteStringValue(System); + } + if (Optional.IsDefined(Code)) + { + writer.WritePropertyName("code"u8); + writer.WriteStringValue(Code); + } + writer.WriteEndObject(); + } + + internal static Quantity DeserializeQuantity(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional<string> id = default; + Optional<IList<Extension>> extension = default; + Optional<decimal> value = default; + Optional<string> comparator = default; + Optional<string> unit = default; + Optional<string> system = default; + Optional<string> code = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(PatientTimeline.Extension.DeserializeExtension(item)); + } + extension = array; + continue; + } + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + value = property.Value.GetDecimal(); + continue; + } + if (property.NameEquals("comparator"u8)) + { + comparator = property.Value.GetString(); + continue; + } + if (property.NameEquals("unit"u8)) + { + unit = property.Value.GetString(); + continue; + } + if (property.NameEquals("system"u8)) + { + system = property.Value.GetString(); + continue; + } + if (property.NameEquals("code"u8)) + { + code = property.Value.GetString(); + continue; + } + } + return new Quantity(id.Value, Optional.ToList(extension), Optional.ToNullable(value), comparator.Value, unit.Value, system.Value, code.Value); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static Quantity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeQuantity(document.RootElement); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Quantity.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Quantity.cs new file mode 100644 index 0000000000000..ba20aee7040e5 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Quantity.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + /// <summary> + /// A measured or measurable amount + /// Based on [FHIR Quantity](https://www.hl7.org/fhir/R4/datatypes.html#Quantity) + /// </summary> + public partial class Quantity + { + /// <summary> Initializes a new instance of <see cref="Quantity"/>. </summary> + public Quantity() + { + Extension = new ChangeTrackingList<Extension>(); + } + + /// <summary> Initializes a new instance of <see cref="Quantity"/>. </summary> + /// <param name="id"> Unique id for inter-element referencing. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="value"> Numerical value (with implicit precision). </param> + /// <param name="comparator"> < | <= | >= | > - how to understand the value. </param> + /// <param name="unit"> Unit representation. </param> + /// <param name="system"> System that defines coded unit form. </param> + /// <param name="code"> Coded form of the unit. </param> + internal Quantity(string id, IList<Extension> extension, decimal? value, string comparator, string unit, string system, string code) + { + Id = id; + Extension = extension; + Value = value; + Comparator = comparator; + Unit = unit; + System = system; + Code = code; + } + + /// <summary> Unique id for inter-element referencing. </summary> + public string Id { get; set; } + /// <summary> Additional Content defined by implementations. </summary> + public IList<Extension> Extension { get; } + /// <summary> Numerical value (with implicit precision). </summary> + public decimal? Value { get; set; } + /// <summary> < | <= | >= | > - how to understand the value. </summary> + public string Comparator { get; set; } + /// <summary> Unit representation. </summary> + public string Unit { get; set; } + /// <summary> System that defines coded unit form. </summary> + public string System { get; set; } + /// <summary> Coded form of the unit. </summary> + public string Code { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Range.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Range.Serialization.cs new file mode 100644 index 0000000000000..6e9d6685c34df --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Range.Serialization.cs @@ -0,0 +1,117 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + public partial class Range : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(Low)) + { + writer.WritePropertyName("low"u8); + writer.WriteObjectValue(Low); + } + if (Optional.IsDefined(High)) + { + writer.WritePropertyName("high"u8); + writer.WriteObjectValue(High); + } + writer.WriteEndObject(); + } + + internal static Range DeserializeRange(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional<string> id = default; + Optional<IList<Extension>> extension = default; + Optional<Quantity> low = default; + Optional<Quantity> high = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(PatientTimeline.Extension.DeserializeExtension(item)); + } + extension = array; + continue; + } + if (property.NameEquals("low"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + low = Quantity.DeserializeQuantity(property.Value); + continue; + } + if (property.NameEquals("high"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + high = Quantity.DeserializeQuantity(property.Value); + continue; + } + } + return new Range(id.Value, Optional.ToList(extension), low.Value, high.Value); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static Range FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRange(document.RootElement); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Range.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Range.cs new file mode 100644 index 0000000000000..fd2017c04890e --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Range.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + /// <summary> + /// A set of ordered Quantities defined by a low and high limit + /// Based on [FHIR Range](https://www.hl7.org/fhir/R4/datatypes.html#Range) + /// </summary> + public partial class Range + { + /// <summary> Initializes a new instance of <see cref="Range"/>. </summary> + public Range() + { + Extension = new ChangeTrackingList<Extension>(); + } + + /// <summary> Initializes a new instance of <see cref="Range"/>. </summary> + /// <param name="id"> Unique id for inter-element referencing. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="low"> Low limit. </param> + /// <param name="high"> High limit. </param> + internal Range(string id, IList<Extension> extension, Quantity low, Quantity high) + { + Id = id; + Extension = extension; + Low = low; + High = high; + } + + /// <summary> Unique id for inter-element referencing. </summary> + public string Id { get; set; } + /// <summary> Additional Content defined by implementations. </summary> + public IList<Extension> Extension { get; } + /// <summary> Low limit. </summary> + public Quantity Low { get; set; } + /// <summary> High limit. </summary> + public Quantity High { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Ratio.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Ratio.Serialization.cs new file mode 100644 index 0000000000000..4c1c3c2a27ceb --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Ratio.Serialization.cs @@ -0,0 +1,117 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + public partial class Ratio : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(Numerator)) + { + writer.WritePropertyName("numerator"u8); + writer.WriteObjectValue(Numerator); + } + if (Optional.IsDefined(Denominator)) + { + writer.WritePropertyName("denominator"u8); + writer.WriteObjectValue(Denominator); + } + writer.WriteEndObject(); + } + + internal static Ratio DeserializeRatio(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional<string> id = default; + Optional<IList<Extension>> extension = default; + Optional<Quantity> numerator = default; + Optional<Quantity> denominator = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(PatientTimeline.Extension.DeserializeExtension(item)); + } + extension = array; + continue; + } + if (property.NameEquals("numerator"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + numerator = Quantity.DeserializeQuantity(property.Value); + continue; + } + if (property.NameEquals("denominator"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + denominator = Quantity.DeserializeQuantity(property.Value); + continue; + } + } + return new Ratio(id.Value, Optional.ToList(extension), numerator.Value, denominator.Value); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static Ratio FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRatio(document.RootElement); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Ratio.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Ratio.cs new file mode 100644 index 0000000000000..eecdabd032016 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Ratio.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + /// <summary> + /// A ratio of two Quantity values - a numerator and a denominator + /// Based on [FHIR Ratio](https://www.hl7.org/fhir/R4/datatypes.html#Ratio) + /// </summary> + public partial class Ratio + { + /// <summary> Initializes a new instance of <see cref="Ratio"/>. </summary> + public Ratio() + { + Extension = new ChangeTrackingList<Extension>(); + } + + /// <summary> Initializes a new instance of <see cref="Ratio"/>. </summary> + /// <param name="id"> Unique id for inter-element referencing. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="numerator"> Numerator value. </param> + /// <param name="denominator"> Denominator value. </param> + internal Ratio(string id, IList<Extension> extension, Quantity numerator, Quantity denominator) + { + Id = id; + Extension = extension; + Numerator = numerator; + Denominator = denominator; + } + + /// <summary> Unique id for inter-element referencing. </summary> + public string Id { get; set; } + /// <summary> Additional Content defined by implementations. </summary> + public IList<Extension> Extension { get; } + /// <summary> Numerator value. </summary> + public Quantity Numerator { get; set; } + /// <summary> Denominator value. </summary> + public Quantity Denominator { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Reference.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Reference.Serialization.cs new file mode 100644 index 0000000000000..585b0681f3300 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Reference.Serialization.cs @@ -0,0 +1,135 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + public partial class Reference : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(ReferenceProperty)) + { + writer.WritePropertyName("reference"u8); + writer.WriteStringValue(ReferenceProperty); + } + if (Optional.IsDefined(Type)) + { + writer.WritePropertyName("type"u8); + writer.WriteStringValue(Type); + } + if (Optional.IsDefined(Identifier)) + { + writer.WritePropertyName("identifier"u8); + writer.WriteObjectValue(Identifier); + } + if (Optional.IsDefined(Display)) + { + writer.WritePropertyName("display"u8); + writer.WriteStringValue(Display); + } + writer.WriteEndObject(); + } + + internal static Reference DeserializeReference(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional<string> id = default; + Optional<IList<Extension>> extension = default; + Optional<string> reference = default; + Optional<string> type = default; + Optional<Identifier> identifier = default; + Optional<string> display = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(PatientTimeline.Extension.DeserializeExtension(item)); + } + extension = array; + continue; + } + if (property.NameEquals("reference"u8)) + { + reference = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("identifier"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + identifier = Identifier.DeserializeIdentifier(property.Value); + continue; + } + if (property.NameEquals("display"u8)) + { + display = property.Value.GetString(); + continue; + } + } + return new Reference(id.Value, Optional.ToList(extension), reference.Value, type.Value, identifier.Value, display.Value); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static Reference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeReference(document.RootElement); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Reference.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Reference.cs new file mode 100644 index 0000000000000..d10388a0f233f --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Reference.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + /// <summary> + /// A reference from one resource to another + /// Based on [FHIR Reference](https://www.hl7.org/fhir/R4/references.html) + /// </summary> + public partial class Reference + { + /// <summary> Initializes a new instance of <see cref="Reference"/>. </summary> + public Reference() + { + Extension = new ChangeTrackingList<Extension>(); + } + + /// <summary> Initializes a new instance of <see cref="Reference"/>. </summary> + /// <param name="id"> Unique id for inter-element referencing. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="referenceProperty"> Literal reference, Relative, internal or absolute URL. </param> + /// <param name="type"> Type the reference refers to (e.g. "Patient"). </param> + /// <param name="identifier"> Logical reference, when literal reference is not known. </param> + /// <param name="display"> Text alternative for the resource. </param> + internal Reference(string id, IList<Extension> extension, string referenceProperty, string type, Identifier identifier, string display) + { + Id = id; + Extension = extension; + ReferenceProperty = referenceProperty; + Type = type; + Identifier = identifier; + Display = display; + } + + /// <summary> Unique id for inter-element referencing. </summary> + public string Id { get; set; } + /// <summary> Additional Content defined by implementations. </summary> + public IList<Extension> Extension { get; } + /// <summary> Literal reference, Relative, internal or absolute URL. </summary> + public string ReferenceProperty { get; set; } + /// <summary> Type the reference refers to (e.g. "Patient"). </summary> + public string Type { get; set; } + /// <summary> Logical reference, when literal reference is not known. </summary> + public Identifier Identifier { get; set; } + /// <summary> Text alternative for the resource. </summary> + public string Display { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Resource.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Resource.Serialization.cs new file mode 100644 index 0000000000000..dbb26ccdd0ac3 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Resource.Serialization.cs @@ -0,0 +1,124 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + public partial class Resource : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("resourceType"u8); + writer.WriteStringValue(ResourceType); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsDefined(Meta)) + { + writer.WritePropertyName("meta"u8); + writer.WriteObjectValue(Meta); + } + if (Optional.IsDefined(ImplicitRules)) + { + writer.WritePropertyName("implicitRules"u8); + writer.WriteStringValue(ImplicitRules); + } + if (Optional.IsDefined(Language)) + { + writer.WritePropertyName("language"u8); + writer.WriteStringValue(Language); + } + foreach (var item in AdditionalProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + writer.WriteEndObject(); + } + + internal static Resource DeserializeResource(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string resourceType = default; + Optional<string> id = default; + Optional<Meta> meta = default; + Optional<string> implicitRules = default; + Optional<string> language = default; + IDictionary<string, BinaryData> additionalProperties = default; + Dictionary<string, BinaryData> additionalPropertiesDictionary = new Dictionary<string, BinaryData>(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("resourceType"u8)) + { + resourceType = property.Value.GetString(); + continue; + } + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("meta"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + meta = Meta.DeserializeMeta(property.Value); + continue; + } + if (property.NameEquals("implicitRules"u8)) + { + implicitRules = property.Value.GetString(); + continue; + } + if (property.NameEquals("language"u8)) + { + language = property.Value.GetString(); + continue; + } + additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + additionalProperties = additionalPropertiesDictionary; + return new Resource(resourceType, id.Value, meta.Value, implicitRules.Value, language.Value, additionalProperties); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static Resource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeResource(document.RootElement); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Resource.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Resource.cs new file mode 100644 index 0000000000000..6c6f57f84731b --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/Resource.cs @@ -0,0 +1,90 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + /// <summary> + /// Resource is the ancestor of DomainResource from which most resources are derived. Bundle, Parameters, and Binary extend Resource directly. + /// Based on [FHIR Resource](https://www.hl7.org/fhir/r4/resource.html + /// </summary> + public partial class Resource + { + /// <summary> Initializes a new instance of <see cref="Resource"/>. </summary> + /// <param name="resourceType"> The type of resource. </param> + /// <exception cref="ArgumentNullException"> <paramref name="resourceType"/> is null. </exception> + public Resource(string resourceType) + { + Argument.AssertNotNull(resourceType, nameof(resourceType)); + + ResourceType = resourceType; + AdditionalProperties = new ChangeTrackingDictionary<string, BinaryData>(); + } + + /// <summary> Initializes a new instance of <see cref="Resource"/>. </summary> + /// <param name="resourceType"> The type of resource. </param> + /// <param name="id"> Resource Id. </param> + /// <param name="meta"> Metadata about the resource. </param> + /// <param name="implicitRules"> A set of rules under which this content was created. </param> + /// <param name="language"> Language of the resource content. </param> + /// <param name="additionalProperties"> Additional Properties. </param> + internal Resource(string resourceType, string id, Meta meta, string implicitRules, string language, IDictionary<string, BinaryData> additionalProperties) + { + ResourceType = resourceType; + Id = id; + Meta = meta; + ImplicitRules = implicitRules; + Language = language; + AdditionalProperties = additionalProperties; + } + + /// <summary> The type of resource. </summary> + public string ResourceType { get; set; } + /// <summary> Resource Id. </summary> + public string Id { get; set; } + /// <summary> Metadata about the resource. </summary> + public Meta Meta { get; set; } + /// <summary> A set of rules under which this content was created. </summary> + public string ImplicitRules { get; set; } + /// <summary> Language of the resource content. </summary> + public string Language { get; set; } + /// <summary> + /// Additional Properties + /// <para> + /// To assign an object to the value of this property use <see cref="BinaryData.FromObjectAsJson{T}(T, System.Text.Json.JsonSerializerOptions?)"/>. + /// </para> + /// <para> + /// To assign an already formatted json string to this property use <see cref="BinaryData.FromString(string)"/>. + /// </para> + /// <para> + /// Examples: + /// <list type="bullet"> + /// <item> + /// <term>BinaryData.FromObjectAsJson("foo")</term> + /// <description>Creates a payload of "foo".</description> + /// </item> + /// <item> + /// <term>BinaryData.FromString("\"foo\"")</term> + /// <description>Creates a payload of "foo".</description> + /// </item> + /// <item> + /// <term>BinaryData.FromObjectAsJson(new { key = "value" })</term> + /// <description>Creates a payload of { "key": "value" }.</description> + /// </item> + /// <item> + /// <term>BinaryData.FromString("{\"key\": \"value\"}")</term> + /// <description>Creates a payload of { "key": "value" }.</description> + /// </item> + /// </list> + /// </para> + /// </summary> + public IDictionary<string, BinaryData> AdditionalProperties { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/SampledData.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/SampledData.Serialization.cs new file mode 100644 index 0000000000000..dc2e7d033175f --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/SampledData.Serialization.cs @@ -0,0 +1,167 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + public partial class SampledData : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + writer.WritePropertyName("origin"u8); + writer.WriteObjectValue(Origin); + writer.WritePropertyName("period"u8); + writer.WriteNumberValue(Period); + if (Optional.IsDefined(Factor)) + { + writer.WritePropertyName("factor"u8); + writer.WriteNumberValue(Factor.Value); + } + if (Optional.IsDefined(LowerLimit)) + { + writer.WritePropertyName("lowerLimit"u8); + writer.WriteNumberValue(LowerLimit.Value); + } + if (Optional.IsDefined(UpperLimit)) + { + writer.WritePropertyName("upperLimit"u8); + writer.WriteNumberValue(UpperLimit.Value); + } + writer.WritePropertyName("dimensions"u8); + writer.WriteNumberValue(Dimensions); + if (Optional.IsDefined(Data)) + { + writer.WritePropertyName("data"u8); + writer.WriteStringValue(Data); + } + writer.WriteEndObject(); + } + + internal static SampledData DeserializeSampledData(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional<string> id = default; + Optional<IList<Extension>> extension = default; + Quantity origin = default; + decimal period = default; + Optional<decimal> factor = default; + Optional<decimal> lowerLimit = default; + Optional<decimal> upperLimit = default; + int dimensions = default; + Optional<string> data = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(PatientTimeline.Extension.DeserializeExtension(item)); + } + extension = array; + continue; + } + if (property.NameEquals("origin"u8)) + { + origin = Quantity.DeserializeQuantity(property.Value); + continue; + } + if (property.NameEquals("period"u8)) + { + period = property.Value.GetDecimal(); + continue; + } + if (property.NameEquals("factor"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + factor = property.Value.GetDecimal(); + continue; + } + if (property.NameEquals("lowerLimit"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + lowerLimit = property.Value.GetDecimal(); + continue; + } + if (property.NameEquals("upperLimit"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + upperLimit = property.Value.GetDecimal(); + continue; + } + if (property.NameEquals("dimensions"u8)) + { + dimensions = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("data"u8)) + { + data = property.Value.GetString(); + continue; + } + } + return new SampledData(id.Value, Optional.ToList(extension), origin, period, Optional.ToNullable(factor), Optional.ToNullable(lowerLimit), Optional.ToNullable(upperLimit), dimensions, data.Value); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static SampledData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSampledData(document.RootElement); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/SampledData.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/SampledData.cs new file mode 100644 index 0000000000000..3215a81ed0b31 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/SampledData.cs @@ -0,0 +1,77 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + /// <summary> + /// A series of measurements taken by a device + /// Based on [FHIR SampledData](https://www.hl7.org/fhir/R4/datatypes.html#SampledData) + /// </summary> + public partial class SampledData + { + /// <summary> Initializes a new instance of <see cref="SampledData"/>. </summary> + /// <param name="origin"> Zero value and units. </param> + /// <param name="period"> Number of milliseconds between samples. </param> + /// <param name="dimensions"> Number of sample points at each time point. </param> + /// <exception cref="ArgumentNullException"> <paramref name="origin"/> is null. </exception> + public SampledData(Quantity origin, decimal period, int dimensions) + { + Argument.AssertNotNull(origin, nameof(origin)); + + Extension = new ChangeTrackingList<Extension>(); + Origin = origin; + Period = period; + Dimensions = dimensions; + } + + /// <summary> Initializes a new instance of <see cref="SampledData"/>. </summary> + /// <param name="id"> Unique id for inter-element referencing. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="origin"> Zero value and units. </param> + /// <param name="period"> Number of milliseconds between samples. </param> + /// <param name="factor"> Multiply data by this before adding to origin. </param> + /// <param name="lowerLimit"> Lower limit of detection. </param> + /// <param name="upperLimit"> Upper limit of detection. </param> + /// <param name="dimensions"> Number of sample points at each time point. </param> + /// <param name="data"> Decimal values with spaces, or "E" | "U" | "L". </param> + internal SampledData(string id, IList<Extension> extension, Quantity origin, decimal period, decimal? factor, decimal? lowerLimit, decimal? upperLimit, int dimensions, string data) + { + Id = id; + Extension = extension; + Origin = origin; + Period = period; + Factor = factor; + LowerLimit = lowerLimit; + UpperLimit = upperLimit; + Dimensions = dimensions; + Data = data; + } + + /// <summary> Unique id for inter-element referencing. </summary> + public string Id { get; set; } + /// <summary> Additional Content defined by implementations. </summary> + public IList<Extension> Extension { get; } + /// <summary> Zero value and units. </summary> + public Quantity Origin { get; set; } + /// <summary> Number of milliseconds between samples. </summary> + public decimal Period { get; set; } + /// <summary> Multiply data by this before adding to origin. </summary> + public decimal? Factor { get; set; } + /// <summary> Lower limit of detection. </summary> + public decimal? LowerLimit { get; set; } + /// <summary> Upper limit of detection. </summary> + public decimal? UpperLimit { get; set; } + /// <summary> Number of sample points at each time point. </summary> + public int Dimensions { get; set; } + /// <summary> Decimal values with spaces, or "E" | "U" | "L". </summary> + public string Data { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/SpecialtyType.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/SpecialtyType.cs new file mode 100644 index 0000000000000..4ad60b141160d --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/SpecialtyType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Health.Insights.PatientTimeline +{ + /// <summary> Known values codes that can be used to indicate the type of the Specialty. </summary> + public readonly partial struct SpecialtyType : IEquatable<SpecialtyType> + { + private readonly string _value; + + /// <summary> Initializes a new instance of <see cref="SpecialtyType"/>. </summary> + /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception> + public SpecialtyType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string PathologyValue = "pathology"; + private const string RadiologyValue = "radiology"; + + /// <summary> pathology. </summary> + public static SpecialtyType Pathology { get; } = new SpecialtyType(PathologyValue); + /// <summary> radiology. </summary> + public static SpecialtyType Radiology { get; } = new SpecialtyType(RadiologyValue); + /// <summary> Determines if two <see cref="SpecialtyType"/> values are the same. </summary> + public static bool operator ==(SpecialtyType left, SpecialtyType right) => left.Equals(right); + /// <summary> Determines if two <see cref="SpecialtyType"/> values are not the same. </summary> + public static bool operator !=(SpecialtyType left, SpecialtyType right) => !left.Equals(right); + /// <summary> Converts a string to a <see cref="SpecialtyType"/>. </summary> + public static implicit operator SpecialtyType(string value) => new SpecialtyType(value); + + /// <inheritdoc /> + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is SpecialtyType other && Equals(other); + /// <inheritdoc /> + public bool Equals(SpecialtyType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// <inheritdoc /> + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// <inheritdoc /> + public override string ToString() => _value; + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/TimePeriod.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/TimePeriod.Serialization.cs new file mode 100644 index 0000000000000..24a84ac82a7b1 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/TimePeriod.Serialization.cs @@ -0,0 +1,81 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + public partial class TimePeriod : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Start)) + { + writer.WritePropertyName("start"u8); + writer.WriteStringValue(Start.Value, "O"); + } + if (Optional.IsDefined(End)) + { + writer.WritePropertyName("end"u8); + writer.WriteStringValue(End.Value, "O"); + } + writer.WriteEndObject(); + } + + internal static TimePeriod DeserializeTimePeriod(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional<DateTimeOffset> start = default; + Optional<DateTimeOffset> end = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("start"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + start = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("end"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + end = property.Value.GetDateTimeOffset("O"); + continue; + } + } + return new TimePeriod(Optional.ToNullable(start), Optional.ToNullable(end)); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static TimePeriod FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTimePeriod(document.RootElement); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/TimePeriod.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/TimePeriod.cs new file mode 100644 index 0000000000000..fc9d7271c3135 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/TimePeriod.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; + +namespace Azure.Health.Insights.PatientTimeline +{ + /// <summary> A duration of time during which an event is happening. </summary> + public partial class TimePeriod + { + /// <summary> Initializes a new instance of <see cref="TimePeriod"/>. </summary> + public TimePeriod() + { + } + + /// <summary> Initializes a new instance of <see cref="TimePeriod"/>. </summary> + /// <param name="start"> Starting time with inclusive boundary. </param> + /// <param name="end"> End time with inclusive boundary, if not ongoing. </param> + internal TimePeriod(DateTimeOffset? start, DateTimeOffset? end) + { + Start = start; + End = end; + } + + /// <summary> Starting time with inclusive boundary. </summary> + public DateTimeOffset? Start { get; set; } + /// <summary> End time with inclusive boundary, if not ongoing. </summary> + public DateTimeOffset? End { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/UnknownDomainResource.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/UnknownDomainResource.Serialization.cs new file mode 100644 index 0000000000000..480fc0ca7cd6d --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/UnknownDomainResource.Serialization.cs @@ -0,0 +1,131 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.PatientTimeline +{ + internal partial class UnknownDomainResource + { + internal static UnknownDomainResource DeserializeUnknownDomainResource(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string resourceType = "Unknown"; + Optional<string> id = default; + Optional<Meta> meta = default; + Optional<string> implicitRules = default; + Optional<string> language = default; + Optional<Narrative> text = default; + Optional<IReadOnlyList<Resource>> contained = default; + Optional<IReadOnlyList<Extension>> extension = default; + Optional<IReadOnlyList<Extension>> modifierExtension = default; + IReadOnlyDictionary<string, BinaryData> additionalProperties = default; + Dictionary<string, BinaryData> additionalPropertiesDictionary = new Dictionary<string, BinaryData>(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("resourceType"u8)) + { + resourceType = property.Value.GetString(); + continue; + } + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("meta"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + meta = Meta.DeserializeMeta(property.Value); + continue; + } + if (property.NameEquals("implicitRules"u8)) + { + implicitRules = property.Value.GetString(); + continue; + } + if (property.NameEquals("language"u8)) + { + language = property.Value.GetString(); + continue; + } + if (property.NameEquals("text"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + text = Narrative.DeserializeNarrative(property.Value); + continue; + } + if (property.NameEquals("contained"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Resource> array = new List<Resource>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(Resource.DeserializeResource(item)); + } + contained = array; + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(PatientTimeline.Extension.DeserializeExtension(item)); + } + extension = array; + continue; + } + if (property.NameEquals("modifierExtension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(PatientTimeline.Extension.DeserializeExtension(item)); + } + modifierExtension = array; + continue; + } + additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + additionalProperties = additionalPropertiesDictionary; + return new UnknownDomainResource(resourceType, id.Value, meta.Value, implicitRules.Value, language.Value, text.Value, Optional.ToList(contained), Optional.ToList(extension), Optional.ToList(modifierExtension), additionalProperties); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static new UnknownDomainResource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownDomainResource(document.RootElement); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/UnknownDomainResource.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/UnknownDomainResource.cs new file mode 100644 index 0000000000000..17b171b10bf5e --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Generated/UnknownDomainResource.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Health.Insights.PatientTimeline +{ + /// <summary> Unknown version of DomainResource. </summary> + internal partial class UnknownDomainResource : DomainResource + { + /// <summary> Initializes a new instance of <see cref="UnknownDomainResource"/>. </summary> + /// <param name="resourceType"> The type of resource. </param> + /// <param name="id"> Resource Id. </param> + /// <param name="meta"> Metadata about the resource. </param> + /// <param name="implicitRules"> A set of rules under which this content was created. </param> + /// <param name="language"> Language of the resource content. </param> + /// <param name="text"> Text summary of the resource, for human interpretation. </param> + /// <param name="contained"> Contained, inline Resources. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="modifierExtension"> Extensions that cannot be ignored. </param> + /// <param name="additionalProperties"> Additional Properties. </param> + internal UnknownDomainResource(string resourceType, string id, Meta meta, string implicitRules, string language, Narrative text, IReadOnlyList<Resource> contained, IReadOnlyList<Extension> extension, IReadOnlyList<Extension> modifierExtension, IReadOnlyDictionary<string, BinaryData> additionalProperties) : base(resourceType, id, meta, implicitRules, language, text, contained, extension, modifierExtension, additionalProperties) + { + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Properties/AssemblyInfo.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Properties/AssemblyInfo.cs new file mode 100644 index 0000000000000..43028f87cdd22 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/src/Properties/AssemblyInfo.cs @@ -0,0 +1,11 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Runtime.CompilerServices; + +[assembly: InternalsVisibleTo("Azure.Health.Insights.PatientTimeline.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100d15ddcb29688295338af4b7686603fe614abd555e09efba8fb88ee09e1f7b1ccaeed2e8f823fa9eef3fdd60217fc012ea67d2479751a0b8c087a4185541b851bd8b16f8d91b840e51b1cb0ba6fe647997e57429265e85ef62d565db50a69ae1647d54d7bd855e4db3d8a91510e5bcbd0edfbbecaa20a7bd9ae74593daa7b11b4")] + +// Replace Microsoft.Test with the correct resource provider namepace for your service and uncomment. +// See https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-services-resource-providers +// for the list of possible values. +[assembly: Azure.Core.AzureResourceProviderNamespace("Microsoft.Template")] diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/tests/Azure.Health.Insights.PatientTimeline.Tests.csproj b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/tests/Azure.Health.Insights.PatientTimeline.Tests.csproj new file mode 100644 index 0000000000000..ccb5c8c973019 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/tests/Azure.Health.Insights.PatientTimeline.Tests.csproj @@ -0,0 +1,20 @@ +<Project Sdk="Microsoft.NET.Sdk"> + <PropertyGroup> + <TargetFrameworks>$(RequiredTargetFrameworks)</TargetFrameworks> + <!--We don't care about XML doc comments on test types and members--> + <NoWarn>$(NoWarn);CS1591</NoWarn> + </PropertyGroup> + + <ItemGroup> + <ProjectReference Include="$(AzureCoreTestFramework)" /> + <ProjectReference Include="..\src\Azure.Health.Insights.PatientTimeline.csproj" /> + </ItemGroup> + + <ItemGroup> + <PackageReference Include="Azure.Identity" /> + <PackageReference Include="NUnit" /> + <PackageReference Include="NUnit3TestAdapter" /> + <PackageReference Include="Microsoft.NET.Test.Sdk" /> + <PackageReference Include="Moq" /> + </ItemGroup> +</Project> diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/tests/Generated/Samples/Samples_PatientTimelineClient.cs b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/tests/Generated/Samples/Samples_PatientTimelineClient.cs new file mode 100644 index 0000000000000..9adbaaedd11f0 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/tests/Generated/Samples/Samples_PatientTimelineClient.cs @@ -0,0 +1,2168 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Health.Insights.PatientTimeline; +using Azure.Identity; +using NUnit.Framework; + +namespace Azure.Health.Insights.PatientTimeline.Samples +{ + public partial class Samples_PatientTimelineClient + { + [Test] + [Ignore("Only validating compilation of examples")] + public void Example_PatientTimelineClient_InferPatientTimeline_ShortVersion() + { + Uri endpoint = new Uri("<https://my-service.azure.com>"); + AzureKeyCredential credential = new AzureKeyCredential("<key>"); + PatientTimelineClient client = new PatientTimelineClient(endpoint, credential); + + using RequestContent content = RequestContent.Create(new + { + patients = new object[] + { +new +{ +id = "<id>", +} + }, + }); + Operation<BinaryData> operation = client.InferPatientTimeline(WaitUntil.Completed, content); + BinaryData responseData = operation.Value; + + JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("patientId").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); + Console.WriteLine(result.GetProperty("modelVersion").ToString()); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Example_PatientTimelineClient_InferPatientTimeline_ShortVersion_Async() + { + Uri endpoint = new Uri("<https://my-service.azure.com>"); + AzureKeyCredential credential = new AzureKeyCredential("<key>"); + PatientTimelineClient client = new PatientTimelineClient(endpoint, credential); + + using RequestContent content = RequestContent.Create(new + { + patients = new object[] + { +new +{ +id = "<id>", +} + }, + }); + Operation<BinaryData> operation = await client.InferPatientTimelineAsync(WaitUntil.Completed, content); + BinaryData responseData = operation.Value; + + JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("patientId").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); + Console.WriteLine(result.GetProperty("modelVersion").ToString()); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public void Example_PatientTimelineClient_InferPatientTimeline_ShortVersion_Convenience() + { + Uri endpoint = new Uri("<https://my-service.azure.com>"); + AzureKeyCredential credential = new AzureKeyCredential("<key>"); + PatientTimelineClient client = new PatientTimelineClient(endpoint, credential); + + PatientTimelineData patientTimelineData = new PatientTimelineData(new PatientRecord[] + { +new PatientRecord("<id>") + }); + Operation<PatientTimelineInferenceResult> operation = client.InferPatientTimeline(WaitUntil.Completed, patientTimelineData); + PatientTimelineInferenceResult responseData = operation.Value; + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Example_PatientTimelineClient_InferPatientTimeline_ShortVersion_Convenience_Async() + { + Uri endpoint = new Uri("<https://my-service.azure.com>"); + AzureKeyCredential credential = new AzureKeyCredential("<key>"); + PatientTimelineClient client = new PatientTimelineClient(endpoint, credential); + + PatientTimelineData patientTimelineData = new PatientTimelineData(new PatientRecord[] + { +new PatientRecord("<id>") + }); + Operation<PatientTimelineInferenceResult> operation = await client.InferPatientTimelineAsync(WaitUntil.Completed, patientTimelineData); + PatientTimelineInferenceResult responseData = operation.Value; + } + + [Test] + [Ignore("Only validating compilation of examples")] + public void Example_PatientTimelineClient_InferPatientTimeline_AllParameters() + { + Uri endpoint = new Uri("<https://my-service.azure.com>"); + AzureKeyCredential credential = new AzureKeyCredential("<key>"); + PatientTimelineClient client = new PatientTimelineClient(endpoint, credential); + + using RequestContent content = RequestContent.Create(new + { + patients = new object[] + { +new +{ +id = "<id>", +info = new +{ +sex = "female", +birthDate = "2022-05-10", +clinicalInfo = new object[] +{ +new +{ +resourceType = "<resourceType>", +id = "<id>", +meta = new +{ +versionId = "<versionId>", +lastUpdated = "<lastUpdated>", +source = "<source>", +profile = new object[] +{ +"<profile>" +}, +security = new object[] +{ +new +{ +id = "<id>", +extension = new object[] +{ +new +{ +id = "<id>", +extension = new object[] +{ +null +}, +url = "<url>", +valueQuantity = new +{ +id = "<id>", +extension = new object[] +{ +null +}, +value = new object(), +comparator = "<comparator>", +unit = "<unit>", +system = "<system>", +code = "<code>", +}, +valueCodeableConcept = new +{ +id = "<id>", +extension = new object[] +{ +null +}, +coding = new object[] +{ +null +}, +text = "<text>", +}, +valueString = "<valueString>", +valueBoolean = true, +valueInteger = 1234, +valueRange = new +{ +id = "<id>", +extension = new object[] +{ +null +}, +}, +valueRatio = new +{ +id = "<id>", +extension = new object[] +{ +null +}, +}, +valueSampledData = new +{ +id = "<id>", +extension = new object[] +{ +null +}, +period = new object(), +factor = new object(), +lowerLimit = new object(), +upperLimit = new object(), +dimensions = 1234, +data = "<data>", +}, +valueTime = "01:23:45", +valueDateTime = "<valueDateTime>", +valuePeriod = new +{ +id = "<id>", +extension = new object[] +{ +null +}, +start = "<start>", +end = "<end>", +}, +valueReference = new +{ +id = "<id>", +extension = new object[] +{ +null +}, +reference = "<reference>", +type = "<type>", +identifier = new +{ +id = "<id>", +extension = new object[] +{ +null +}, +use = "<use>", +system = "<system>", +value = "<value>", +}, +display = "<display>", +}, +} +}, +system = "<system>", +version = "<version>", +code = "<code>", +display = "<display>", +} +}, +tag = new object[] +{ +null +}, +}, +implicitRules = "<implicitRules>", +language = "<language>", +} +}, +}, +encounters = new object[] +{ +new Dictionary<string, object> +{ +["id"] = "<id>", +["period"] = new +{ +start = "2022-05-10T14:57:31.2311892-04:00", +end = "2022-05-10T14:57:31.2311892-04:00", +}, +["class"] = "inpatient" +} +}, +patientDocuments = new object[] +{ +new +{ +type = "note", +clinicalType = "consultation", +id = "<id>", +language = "<language>", +createdDateTime = "2022-05-10T14:57:31.2311892-04:00", +authors = new object[] +{ +new +{ +id = "<id>", +fullName = "<fullName>", +} +}, +specialtyType = "pathology", +administrativeMetadata = new +{ +orderedProcedures = new object[] +{ +new +{ +extension = new object[] +{ +null +}, +description = "<description>", +} +}, +encounterId = "<encounterId>", +}, +content = new +{ +sourceType = "inline", +value = "<value>", +}, +} +}, +} + }, + configuration = new + { + verbose = true, + includeEvidence = true, + }, + }); + Operation<BinaryData> operation = client.InferPatientTimeline(WaitUntil.Completed, content); + BinaryData responseData = operation.Value; + + JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("patientId").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("url").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("version").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueString").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueBoolean").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueInteger").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("period").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("factor").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("lowerLimit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("upperLimit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("dimensions").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("data").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueTime").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueDateTime").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("start").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("end").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("reference").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("type").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("use").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("version").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("start").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("end").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("resourceType").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("versionId").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("lastUpdated").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("source").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("profile")[0].ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("url").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueString").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueBoolean").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueInteger").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("period").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("factor").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("lowerLimit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("upperLimit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("dimensions").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("data").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueTime").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueDateTime").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("start").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("end").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("reference").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("type").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("use").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("start").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("end").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("version").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("url").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueString").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueBoolean").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueInteger").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("period").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("factor").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("lowerLimit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("upperLimit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("dimensions").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("data").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueTime").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueDateTime").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("start").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("end").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("reference").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("type").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("use").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("start").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("end").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("version").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("implicitRules").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("language").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("url").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("version").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueString").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueBoolean").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueInteger").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("period").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("factor").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("lowerLimit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("upperLimit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("dimensions").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("data").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueTime").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueDateTime").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("start").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("end").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("reference").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("type").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("use").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("version").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("start").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("end").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("status").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("div").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("resourceType").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("versionId").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("lastUpdated").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("source").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("profile")[0].ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("url").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueString").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueBoolean").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueInteger").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("period").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("factor").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("lowerLimit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("upperLimit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("dimensions").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("data").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueTime").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueDateTime").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("start").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("end").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("reference").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("type").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("use").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("start").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("end").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("version").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("url").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueString").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueBoolean").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueInteger").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("period").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("factor").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("lowerLimit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("upperLimit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("dimensions").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("data").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueTime").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueDateTime").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("start").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("end").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("reference").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("type").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("use").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("start").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("end").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("version").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("implicitRules").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("language").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("url").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("version").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueString").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueBoolean").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueInteger").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("period").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("factor").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("lowerLimit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("upperLimit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("dimensions").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("data").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueTime").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueDateTime").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("start").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("end").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("reference").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("type").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("use").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("version").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("start").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("end").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("url").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueQuantity").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueQuantity").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueQuantity").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueQuantity").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueQuantity").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueQuantity").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueCodeableConcept").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("version").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueCodeableConcept").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueString").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueBoolean").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueInteger").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("period").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("factor").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("lowerLimit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("upperLimit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("dimensions").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("data").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueTime").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueDateTime").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valuePeriod").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valuePeriod").GetProperty("start").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valuePeriod").GetProperty("end").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("reference").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("type").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("use").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("version").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("start").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("end").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("period").GetProperty("start").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("period").GetProperty("end").ToString()); + Console.WriteLine(result.GetProperty("modelVersion").ToString()); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Example_PatientTimelineClient_InferPatientTimeline_AllParameters_Async() + { + Uri endpoint = new Uri("<https://my-service.azure.com>"); + AzureKeyCredential credential = new AzureKeyCredential("<key>"); + PatientTimelineClient client = new PatientTimelineClient(endpoint, credential); + + using RequestContent content = RequestContent.Create(new + { + patients = new object[] + { +new +{ +id = "<id>", +info = new +{ +sex = "female", +birthDate = "2022-05-10", +clinicalInfo = new object[] +{ +new +{ +resourceType = "<resourceType>", +id = "<id>", +meta = new +{ +versionId = "<versionId>", +lastUpdated = "<lastUpdated>", +source = "<source>", +profile = new object[] +{ +"<profile>" +}, +security = new object[] +{ +new +{ +id = "<id>", +extension = new object[] +{ +new +{ +id = "<id>", +extension = new object[] +{ +null +}, +url = "<url>", +valueQuantity = new +{ +id = "<id>", +extension = new object[] +{ +null +}, +value = new object(), +comparator = "<comparator>", +unit = "<unit>", +system = "<system>", +code = "<code>", +}, +valueCodeableConcept = new +{ +id = "<id>", +extension = new object[] +{ +null +}, +coding = new object[] +{ +null +}, +text = "<text>", +}, +valueString = "<valueString>", +valueBoolean = true, +valueInteger = 1234, +valueRange = new +{ +id = "<id>", +extension = new object[] +{ +null +}, +}, +valueRatio = new +{ +id = "<id>", +extension = new object[] +{ +null +}, +}, +valueSampledData = new +{ +id = "<id>", +extension = new object[] +{ +null +}, +period = new object(), +factor = new object(), +lowerLimit = new object(), +upperLimit = new object(), +dimensions = 1234, +data = "<data>", +}, +valueTime = "01:23:45", +valueDateTime = "<valueDateTime>", +valuePeriod = new +{ +id = "<id>", +extension = new object[] +{ +null +}, +start = "<start>", +end = "<end>", +}, +valueReference = new +{ +id = "<id>", +extension = new object[] +{ +null +}, +reference = "<reference>", +type = "<type>", +identifier = new +{ +id = "<id>", +extension = new object[] +{ +null +}, +use = "<use>", +system = "<system>", +value = "<value>", +}, +display = "<display>", +}, +} +}, +system = "<system>", +version = "<version>", +code = "<code>", +display = "<display>", +} +}, +tag = new object[] +{ +null +}, +}, +implicitRules = "<implicitRules>", +language = "<language>", +} +}, +}, +encounters = new object[] +{ +new Dictionary<string, object> +{ +["id"] = "<id>", +["period"] = new +{ +start = "2022-05-10T14:57:31.2311892-04:00", +end = "2022-05-10T14:57:31.2311892-04:00", +}, +["class"] = "inpatient" +} +}, +patientDocuments = new object[] +{ +new +{ +type = "note", +clinicalType = "consultation", +id = "<id>", +language = "<language>", +createdDateTime = "2022-05-10T14:57:31.2311892-04:00", +authors = new object[] +{ +new +{ +id = "<id>", +fullName = "<fullName>", +} +}, +specialtyType = "pathology", +administrativeMetadata = new +{ +orderedProcedures = new object[] +{ +new +{ +extension = new object[] +{ +null +}, +description = "<description>", +} +}, +encounterId = "<encounterId>", +}, +content = new +{ +sourceType = "inline", +value = "<value>", +}, +} +}, +} + }, + configuration = new + { + verbose = true, + includeEvidence = true, + }, + }); + Operation<BinaryData> operation = await client.InferPatientTimelineAsync(WaitUntil.Completed, content); + BinaryData responseData = operation.Value; + + JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("patientId").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("url").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("version").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueString").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueBoolean").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueInteger").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("period").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("factor").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("lowerLimit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("upperLimit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("dimensions").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("data").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueTime").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueDateTime").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("start").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("end").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("reference").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("type").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("use").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("version").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("start").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("end").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("type").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("resourceType").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("versionId").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("lastUpdated").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("source").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("profile")[0].ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("url").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueString").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueBoolean").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueInteger").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("period").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("factor").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("lowerLimit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("upperLimit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("dimensions").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("data").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueTime").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueDateTime").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("start").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("end").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("reference").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("type").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("use").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("start").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("end").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("version").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("security")[0].GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("url").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueString").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueBoolean").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueInteger").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("period").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("factor").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("lowerLimit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("upperLimit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("dimensions").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("data").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueTime").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueDateTime").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("start").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("end").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("reference").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("type").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("use").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("start").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("end").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("version").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("meta").GetProperty("tag")[0].GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("implicitRules").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("language").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("url").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("version").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueString").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueBoolean").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueInteger").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("period").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("factor").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("lowerLimit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("upperLimit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("dimensions").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("data").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueTime").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueDateTime").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("start").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("end").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("reference").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("type").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("use").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("version").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("start").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("end").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("status").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("text").GetProperty("div").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("resourceType").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("versionId").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("lastUpdated").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("source").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("profile")[0].ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("url").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueString").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueBoolean").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueInteger").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("period").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("factor").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("lowerLimit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("upperLimit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("dimensions").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("data").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueTime").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueDateTime").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("start").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("end").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("reference").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("type").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("use").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("start").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("end").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("version").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("security")[0].GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("url").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueString").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueBoolean").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueInteger").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("period").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("factor").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("lowerLimit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("upperLimit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("dimensions").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("data").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueTime").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueDateTime").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("start").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("end").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("reference").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("type").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("use").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("start").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("end").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("version").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("meta").GetProperty("tag")[0].GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("implicitRules").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("contained")[0].GetProperty("language").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("url").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("version").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueString").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueBoolean").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueInteger").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("period").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("factor").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("lowerLimit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("upperLimit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("dimensions").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("data").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueTime").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueDateTime").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("start").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("end").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("reference").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("type").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("use").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("version").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("start").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("end").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("extension")[0].GetProperty("valueReference").GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("url").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueQuantity").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueQuantity").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueQuantity").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueQuantity").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueQuantity").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueQuantity").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueCodeableConcept").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("version").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueCodeableConcept").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueString").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueBoolean").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueInteger").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("period").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("factor").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("lowerLimit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("upperLimit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("dimensions").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueSampledData").GetProperty("data").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueTime").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueDateTime").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valuePeriod").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valuePeriod").GetProperty("start").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valuePeriod").GetProperty("end").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("reference").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("type").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("use").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("version").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("start").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("end").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("resource").GetProperty("modifierExtension")[0].GetProperty("valueReference").GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("period").GetProperty("start").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("period").GetProperty("end").ToString()); + Console.WriteLine(result.GetProperty("modelVersion").ToString()); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public void Example_PatientTimelineClient_InferPatientTimeline_AllParameters_Convenience() + { + Uri endpoint = new Uri("<https://my-service.azure.com>"); + AzureKeyCredential credential = new AzureKeyCredential("<key>"); + PatientTimelineClient client = new PatientTimelineClient(endpoint, credential); + + PatientTimelineData patientTimelineData = new PatientTimelineData(new PatientRecord[] + { +new PatientRecord("<id>") +{ +Info = new PatientInfo +{ +Sex = PatientInfoSex.Female, +BirthDate = DateTimeOffset.Parse("2022-05-10"), +ClinicalInfo = {new Resource("<resourceType>") +{ +Id = "<id>", +Meta = new Meta +{ +VersionId = "<versionId>", +LastUpdated = "<lastUpdated>", +Source = "<source>", +Profile = {"<profile>"}, +Security = {new Coding +{ +Id = "<id>", +Extension = {new Extension("<url>") +{ +Id = "<id>", +ExtensionProperty = {default}, +ValueQuantity = new Quantity +{ +Id = "<id>", +Extension = {default}, +Value = default, +Comparator = "<comparator>", +Unit = "<unit>", +System = "<system>", +Code = "<code>", +}, +ValueCodeableConcept = new CodeableConcept +{ +Id = "<id>", +Extension = {default}, +Coding = {default}, +Text = "<text>", +}, +ValueString = "<valueString>", +ValueBoolean = true, +ValueInteger = 1234, +ValueRange = new Range +{ +Id = "<id>", +Extension = {default}, +Low = default, +High = default, +}, +ValueRatio = new Ratio +{ +Id = "<id>", +Extension = {default}, +Numerator = default, +Denominator = default, +}, +ValueSampledData = new SampledData(default, default, 1234) +{ +Id = "<id>", +Extension = {default}, +Factor = default, +LowerLimit = default, +UpperLimit = default, +Data = "<data>", +}, +ValueTime = TimeSpan.Parse("01:23:45"), +ValueDateTime = "<valueDateTime>", +ValuePeriod = new Period +{ +Id = "<id>", +Extension = {default}, +Start = "<start>", +End = "<end>", +}, +ValueReference = new Reference +{ +Id = "<id>", +Extension = {default}, +ReferenceProperty = "<reference>", +Type = "<type>", +Identifier = new Identifier +{ +Id = "<id>", +Extension = {default}, +Use = "<use>", +Type = default, +System = "<system>", +Value = "<value>", +Period = default, +Assigner = default, +}, +Display = "<display>", +}, +}}, +System = "<system>", +Version = "<version>", +Code = "<code>", +Display = "<display>", +}}, +Tag = {default}, +}, +ImplicitRules = "<implicitRules>", +Language = "<language>", +}}, +}, +Encounters = {new Encounter("<id>") +{ +Period = new TimePeriod +{ +Start = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), +End = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), +}, +Class = EncounterClass.InPatient, +}}, +PatientDocuments = {new PatientDocument(DocumentType.Note, "<id>", new DocumentContent(DocumentContentSourceType.Inline, "<value>")) +{ +ClinicalType = ClinicalDocumentType.Consultation, +Language = "<language>", +CreatedDateTime = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), +Authors = {new DocumentAuthor +{ +Id = "<id>", +FullName = "<fullName>", +}}, +SpecialtyType = SpecialtyType.Pathology, +AdministrativeMetadata = new DocumentAdministrativeMetadata +{ +OrderedProcedures = {new OrderedProcedure +{ +Extension = {default}, +Code = default, +Description = "<description>", +}}, +EncounterId = "<encounterId>", +}, +}}, +} + }) + { + Configuration = new PatientTimelineModelConfiguration + { + Verbose = true, + IncludeEvidence = true, + }, + }; + Operation<PatientTimelineInferenceResult> operation = client.InferPatientTimeline(WaitUntil.Completed, patientTimelineData); + PatientTimelineInferenceResult responseData = operation.Value; + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Example_PatientTimelineClient_InferPatientTimeline_AllParameters_Convenience_Async() + { + Uri endpoint = new Uri("<https://my-service.azure.com>"); + AzureKeyCredential credential = new AzureKeyCredential("<key>"); + PatientTimelineClient client = new PatientTimelineClient(endpoint, credential); + + PatientTimelineData patientTimelineData = new PatientTimelineData(new PatientRecord[] + { +new PatientRecord("<id>") +{ +Info = new PatientInfo +{ +Sex = PatientInfoSex.Female, +BirthDate = DateTimeOffset.Parse("2022-05-10"), +ClinicalInfo = {new Resource("<resourceType>") +{ +Id = "<id>", +Meta = new Meta +{ +VersionId = "<versionId>", +LastUpdated = "<lastUpdated>", +Source = "<source>", +Profile = {"<profile>"}, +Security = {new Coding +{ +Id = "<id>", +Extension = {new Extension("<url>") +{ +Id = "<id>", +ExtensionProperty = {default}, +ValueQuantity = new Quantity +{ +Id = "<id>", +Extension = {default}, +Value = default, +Comparator = "<comparator>", +Unit = "<unit>", +System = "<system>", +Code = "<code>", +}, +ValueCodeableConcept = new CodeableConcept +{ +Id = "<id>", +Extension = {default}, +Coding = {default}, +Text = "<text>", +}, +ValueString = "<valueString>", +ValueBoolean = true, +ValueInteger = 1234, +ValueRange = new Range +{ +Id = "<id>", +Extension = {default}, +Low = default, +High = default, +}, +ValueRatio = new Ratio +{ +Id = "<id>", +Extension = {default}, +Numerator = default, +Denominator = default, +}, +ValueSampledData = new SampledData(default, default, 1234) +{ +Id = "<id>", +Extension = {default}, +Factor = default, +LowerLimit = default, +UpperLimit = default, +Data = "<data>", +}, +ValueTime = TimeSpan.Parse("01:23:45"), +ValueDateTime = "<valueDateTime>", +ValuePeriod = new Period +{ +Id = "<id>", +Extension = {default}, +Start = "<start>", +End = "<end>", +}, +ValueReference = new Reference +{ +Id = "<id>", +Extension = {default}, +ReferenceProperty = "<reference>", +Type = "<type>", +Identifier = new Identifier +{ +Id = "<id>", +Extension = {default}, +Use = "<use>", +Type = default, +System = "<system>", +Value = "<value>", +Period = default, +Assigner = default, +}, +Display = "<display>", +}, +}}, +System = "<system>", +Version = "<version>", +Code = "<code>", +Display = "<display>", +}}, +Tag = {default}, +}, +ImplicitRules = "<implicitRules>", +Language = "<language>", +}}, +}, +Encounters = {new Encounter("<id>") +{ +Period = new TimePeriod +{ +Start = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), +End = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), +}, +Class = EncounterClass.InPatient, +}}, +PatientDocuments = {new PatientDocument(DocumentType.Note, "<id>", new DocumentContent(DocumentContentSourceType.Inline, "<value>")) +{ +ClinicalType = ClinicalDocumentType.Consultation, +Language = "<language>", +CreatedDateTime = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), +Authors = {new DocumentAuthor +{ +Id = "<id>", +FullName = "<fullName>", +}}, +SpecialtyType = SpecialtyType.Pathology, +AdministrativeMetadata = new DocumentAdministrativeMetadata +{ +OrderedProcedures = {new OrderedProcedure +{ +Extension = {default}, +Code = default, +Description = "<description>", +}}, +EncounterId = "<encounterId>", +}, +}}, +} + }) + { + Configuration = new PatientTimelineModelConfiguration + { + Verbose = true, + IncludeEvidence = true, + }, + }; + Operation<PatientTimelineInferenceResult> operation = await client.InferPatientTimelineAsync(WaitUntil.Completed, patientTimelineData); + PatientTimelineInferenceResult responseData = operation.Value; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/tsp-location.yaml b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/tsp-location.yaml new file mode 100644 index 0000000000000..0678ed8c4532c --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.PatientTimeline/tsp-location.yaml @@ -0,0 +1,7 @@ +repo: Azure/azure-rest-api-specs +commit: 3025b3f6f47b628c17b60d5d5c553cf123845ecd +directory: specification/ai/HealthInsights/HealthInsights.PatientTimeline +additionalDirectories: +- specification/ai/HealthInsights/HealthInsights.Common/ +- specification/ai/HealthInsights/HealthInsights.OpenAPI/ + diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/Azure.Health.Insights.RadiologyInsights.sln b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/Azure.Health.Insights.RadiologyInsights.sln new file mode 100644 index 0000000000000..5d8a2df889772 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/Azure.Health.Insights.RadiologyInsights.sln @@ -0,0 +1,56 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.29709.97 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Core.TestFramework", "..\..\core\Azure.Core.TestFramework\src\Azure.Core.TestFramework.csproj", "{ECC730C1-4AEA-420C-916A-66B19B79E4DC}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.Health.Insights.RadiologyInsights", "src\Azure.Health.Insights.RadiologyInsights.csproj", "{28FF4005-4467-4E36-92E7-DEA27DEB1519}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.Health.Insights.RadiologyInsights.Tests", "tests\Azure.Health.Insights.RadiologyInsights.Tests.csproj", "{1F1CD1D4-9932-4B73-99D8-C252A67D4B46}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Release|Any CPU.Build.0 = Release|Any CPU + {8E9A77AC-792A-4432-8320-ACFD46730401}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8E9A77AC-792A-4432-8320-ACFD46730401}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8E9A77AC-792A-4432-8320-ACFD46730401}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8E9A77AC-792A-4432-8320-ACFD46730401}.Release|Any CPU.Build.0 = Release|Any CPU + {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Release|Any CPU.Build.0 = Release|Any CPU + {A4241C1F-A53D-474C-9E4E-075054407E74}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A4241C1F-A53D-474C-9E4E-075054407E74}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A4241C1F-A53D-474C-9E4E-075054407E74}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A4241C1F-A53D-474C-9E4E-075054407E74}.Release|Any CPU.Build.0 = Release|Any CPU + {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Release|Any CPU.Build.0 = Release|Any CPU + {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Release|Any CPU.Build.0 = Release|Any CPU + {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.Build.0 = Debug|Any CPU + {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.ActiveCfg = Release|Any CPU + {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.Build.0 = Release|Any CPU + {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {A97F4B90-2591-4689-B1F8-5F21FE6D6CAE} + EndGlobalSection +EndGlobal diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/CHANGELOG.md b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/CHANGELOG.md new file mode 100644 index 0000000000000..13dd08af78abe --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/CHANGELOG.md @@ -0,0 +1,11 @@ +# Release History + +## 1.0.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/Directory.Build.props b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/Directory.Build.props new file mode 100644 index 0000000000000..63bd836ad44b7 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/Directory.Build.props @@ -0,0 +1,6 @@ +<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <!-- + Add any shared properties you want for the projects under this package directory that need to be set before the auto imported Directory.Build.props + --> + <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., Directory.Build.props))\Directory.Build.props" /> +</Project> diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/README.md b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/README.md new file mode 100644 index 0000000000000..3b37f81bbcc92 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/README.md @@ -0,0 +1,86 @@ +# Azure.Health.Insights.RadiologyInsights client library for .NET + +Azure.Health.Insights.RadiologyInsights is a managed service that helps developers get secret simply and securely. + +Use the client library for to: + +* [Get secret](https://docs.microsoft.com/azure) + +[Source code][source_root] | [Package (NuGet)][package] | [API reference documentation][reference_docs] | [Product documentation][azconfig_docs] | [Samples][source_samples] + + [Source code](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src) | [Package (NuGet)](https://www.nuget.org/packages) | [API reference documentation](https://azure.github.io/azure-sdk-for-net) | [Product documentation](https://docs.microsoft.com/azure) + +## Getting started + +This section should include everything a developer needs to do to install and create their first client connection *very quickly*. + +### Install the package + +First, provide instruction for obtaining and installing the package or library. This section might include only a single line of code, like `dotnet add package package-name`, but should enable a developer to successfully install the package from NuGet, npm, or even cloning a GitHub repository. + +Install the client library for .NET with [NuGet](https://www.nuget.org/ ): + +```dotnetcli +dotnet add package Azure.Health.Insights.RadiologyInsights --prerelease +``` + +### Prerequisites + +Include a section after the install command that details any requirements that must be satisfied before a developer can [authenticate](#authenticate-the-client) and test all of the snippets in the [Examples](#examples) section. For example, for Cosmos DB: + +> You must have an [Azure subscription](https://azure.microsoft.com/free/dotnet/) and [Cosmos DB account](https://docs.microsoft.com/azure/cosmos-db/account-overview) (SQL API). In order to take advantage of the C# 8.0 syntax, it is recommended that you compile using the [.NET Core SDK](https://dotnet.microsoft.com/download) 3.0 or higher with a [language version](https://docs.microsoft.com/dotnet/csharp/language-reference/configure-language-version#override-a-default) of `latest`. It is also possible to compile with the .NET Core SDK 2.1.x using a language version of `preview`. + +### Authenticate the client + +If your library requires authentication for use, such as for Azure services, include instructions and example code needed for initializing and authenticating. + +For example, include details on obtaining an account key and endpoint URI, setting environment variables for each, and initializing the client object. + +## Key concepts + +The *Key concepts* section should describe the functionality of the main classes. Point out the most important and useful classes in the package (with links to their reference pages) and explain how those classes work together. Feel free to use bulleted lists, tables, code blocks, or even diagrams for clarity. + +Include the *Thread safety* and *Additional concepts* sections below at the end of your *Key concepts* section. You may remove or add links depending on what your library makes use of: + +### Thread safety + +We guarantee that all client instance methods are thread-safe and independent of each other ([guideline](https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-service-methods-thread-safety)). This ensures that the recommendation of reusing client instances is always safe, even across threads. + +### Additional concepts +<!-- CLIENT COMMON BAR --> +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | +[Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) +<!-- CLIENT COMMON BAR --> + +## Examples + +You can familiarize yourself with different APIs using [Samples](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/samples). + +## Troubleshooting + +Describe common errors and exceptions, how to "unpack" them if necessary, and include guidance for graceful handling and recovery. + +Provide information to help developers avoid throttling or other service-enforced errors they might encounter. For example, provide guidance and examples for using retry or connection policies in the API. + +If the package or a related package supports it, include tips for logging or enabling instrumentation to help them debug their code. + +## Next steps + +* Provide a link to additional code examples, ideally to those sitting alongside the README in the package's `/samples` directory. +* If appropriate, point users to other packages that might be useful. +* If you think there's a good chance that developers might stumble across your package in error (because they're searching for specific functionality and mistakenly think the package provides that functionality), point them to the packages they might be looking for. + +## Contributing + +This is a template, but your SDK readme should include details on how to contribute code to the repo/package. + +<!-- LINKS --> +[style-guide-msft]: https://docs.microsoft.com/style-guide/capitalization +[style-guide-cloud]: https://aka.ms/azsdk/cloud-style-guide + +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/README.png) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Azure.Health.Insights.RadiologyInsights.csproj b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Azure.Health.Insights.RadiologyInsights.csproj new file mode 100644 index 0000000000000..62f75ec6efbaf --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Azure.Health.Insights.RadiologyInsights.csproj @@ -0,0 +1,20 @@ +<Project Sdk="Microsoft.NET.Sdk"> + <PropertyGroup> + <Description>This is the Azure.Health.Insights.RadiologyInsights client library for developing .NET applications with rich experience.</Description> + <AssemblyTitle>Azure SDK Code Generation Azure.Health.Insights.RadiologyInsights for Azure Data Plane</AssemblyTitle> + <Version>1.0.0-beta.1</Version> + <PackageTags>Azure.Health.Insights.RadiologyInsights</PackageTags> + <TargetFrameworks>$(RequiredTargetFrameworks)</TargetFrameworks> + <IncludeOperationsSharedSource>true</IncludeOperationsSharedSource> + </PropertyGroup> + + <ItemGroup> + <Compile Include="$(AzureCoreSharedSources)AzureResourceProviderNamespaceAttribute.cs" LinkBase="Shared/Core" /> + <Compile Include="$(AzureCoreSharedSources)AzureKeyCredentialPolicy.cs" LinkBase="Shared/Core" /> + </ItemGroup> + + <ItemGroup> + <PackageReference Include="Azure.Core" /> + <PackageReference Include="System.Text.Json" /> + </ItemGroup> +</Project> diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/AgeMismatchInference.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/AgeMismatchInference.Serialization.cs new file mode 100644 index 0000000000000..398846d5b39c1 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/AgeMismatchInference.Serialization.cs @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class AgeMismatchInference + { + internal static AgeMismatchInference DeserializeAgeMismatchInference(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string kind = default; + Optional<IReadOnlyList<Extension>> extension = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("kind"u8)) + { + kind = property.Value.GetString(); + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RadiologyInsights.Extension.DeserializeExtension(item)); + } + extension = array; + continue; + } + } + return new AgeMismatchInference(kind, Optional.ToList(extension)); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static new AgeMismatchInference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAgeMismatchInference(document.RootElement); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/AgeMismatchInference.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/AgeMismatchInference.cs new file mode 100644 index 0000000000000..f2deee15cbc65 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/AgeMismatchInference.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> A notification for age mismatch is displayed when the age mentioned in a document for a specific patient does not match the age specified in the patient information. </summary> + public partial class AgeMismatchInference : RadiologyInsightsInference + { + /// <summary> Initializes a new instance of <see cref="AgeMismatchInference"/>. </summary> + internal AgeMismatchInference() + { + Kind = "ageMismatch"; + } + + /// <summary> Initializes a new instance of <see cref="AgeMismatchInference"/>. </summary> + /// <param name="kind"> Discriminator. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + internal AgeMismatchInference(string kind, IReadOnlyList<Extension> extension) : base(kind, extension) + { + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Annotation.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Annotation.Serialization.cs new file mode 100644 index 0000000000000..a4b19686fb2c9 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Annotation.Serialization.cs @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class Annotation + { + internal static Annotation DeserializeAnnotation(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional<string> id = default; + Optional<IReadOnlyList<Extension>> extension = default; + Optional<string> authorString = default; + Optional<string> time = default; + string text = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RadiologyInsights.Extension.DeserializeExtension(item)); + } + extension = array; + continue; + } + if (property.NameEquals("authorString"u8)) + { + authorString = property.Value.GetString(); + continue; + } + if (property.NameEquals("time"u8)) + { + time = property.Value.GetString(); + continue; + } + if (property.NameEquals("text"u8)) + { + text = property.Value.GetString(); + continue; + } + } + return new Annotation(id.Value, Optional.ToList(extension), authorString.Value, time.Value, text); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static Annotation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAnnotation(document.RootElement); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Annotation.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Annotation.cs new file mode 100644 index 0000000000000..f7f85bee614fc --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Annotation.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> + /// A text note which also contains information about who made the statement and when + /// Based on [FHIR Annotation](https://www.hl7.org/fhir/R4/datatypes.html#Annotation) + /// </summary> + public partial class Annotation + { + /// <summary> Initializes a new instance of <see cref="Annotation"/>. </summary> + /// <param name="text"> The annotation - text content (as markdown). </param> + /// <exception cref="ArgumentNullException"> <paramref name="text"/> is null. </exception> + internal Annotation(string text) + { + Argument.AssertNotNull(text, nameof(text)); + + Extension = new ChangeTrackingList<Extension>(); + Text = text; + } + + /// <summary> Initializes a new instance of <see cref="Annotation"/>. </summary> + /// <param name="id"> Unique id for inter-element referencing. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="authorString"> Individual responsible for the annotation. </param> + /// <param name="time"> When the annotation was made. </param> + /// <param name="text"> The annotation - text content (as markdown). </param> + internal Annotation(string id, IReadOnlyList<Extension> extension, string authorString, string time, string text) + { + Id = id; + Extension = extension; + AuthorString = authorString; + Time = time; + Text = text; + } + + /// <summary> Unique id for inter-element referencing. </summary> + public string Id { get; } + /// <summary> Additional Content defined by implementations. </summary> + public IReadOnlyList<Extension> Extension { get; } + /// <summary> Individual responsible for the annotation. </summary> + public string AuthorString { get; } + /// <summary> When the annotation was made. </summary> + public string Time { get; } + /// <summary> The annotation - text content (as markdown). </summary> + public string Text { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ClinicalDocumentType.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ClinicalDocumentType.cs new file mode 100644 index 0000000000000..58cf185e996a8 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ClinicalDocumentType.cs @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> The type of the clinical document. </summary> + public readonly partial struct ClinicalDocumentType : IEquatable<ClinicalDocumentType> + { + private readonly string _value; + + /// <summary> Initializes a new instance of <see cref="ClinicalDocumentType"/>. </summary> + /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception> + public ClinicalDocumentType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ConsultationValue = "consultation"; + private const string DischargeSummaryValue = "dischargeSummary"; + private const string HistoryAndPhysicalValue = "historyAndPhysical"; + private const string RadiologyReportValue = "radiologyReport"; + private const string ProcedureValue = "procedure"; + private const string ProgressValue = "progress"; + private const string LaboratoryValue = "laboratory"; + private const string PathologyReportValue = "pathologyReport"; + + /// <summary> consultation. </summary> + public static ClinicalDocumentType Consultation { get; } = new ClinicalDocumentType(ConsultationValue); + /// <summary> dischargeSummary. </summary> + public static ClinicalDocumentType DischargeSummary { get; } = new ClinicalDocumentType(DischargeSummaryValue); + /// <summary> historyAndPhysical. </summary> + public static ClinicalDocumentType HistoryAndPhysical { get; } = new ClinicalDocumentType(HistoryAndPhysicalValue); + /// <summary> radiologyReport. </summary> + public static ClinicalDocumentType RadiologyReport { get; } = new ClinicalDocumentType(RadiologyReportValue); + /// <summary> procedure. </summary> + public static ClinicalDocumentType Procedure { get; } = new ClinicalDocumentType(ProcedureValue); + /// <summary> progress. </summary> + public static ClinicalDocumentType Progress { get; } = new ClinicalDocumentType(ProgressValue); + /// <summary> laboratory. </summary> + public static ClinicalDocumentType Laboratory { get; } = new ClinicalDocumentType(LaboratoryValue); + /// <summary> pathologyReport. </summary> + public static ClinicalDocumentType PathologyReport { get; } = new ClinicalDocumentType(PathologyReportValue); + /// <summary> Determines if two <see cref="ClinicalDocumentType"/> values are the same. </summary> + public static bool operator ==(ClinicalDocumentType left, ClinicalDocumentType right) => left.Equals(right); + /// <summary> Determines if two <see cref="ClinicalDocumentType"/> values are not the same. </summary> + public static bool operator !=(ClinicalDocumentType left, ClinicalDocumentType right) => !left.Equals(right); + /// <summary> Converts a string to a <see cref="ClinicalDocumentType"/>. </summary> + public static implicit operator ClinicalDocumentType(string value) => new ClinicalDocumentType(value); + + /// <inheritdoc /> + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ClinicalDocumentType other && Equals(other); + /// <inheritdoc /> + public bool Equals(ClinicalDocumentType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// <inheritdoc /> + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// <inheritdoc /> + public override string ToString() => _value; + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CodeableConcept.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CodeableConcept.Serialization.cs new file mode 100644 index 0000000000000..6125162a8b680 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CodeableConcept.Serialization.cs @@ -0,0 +1,123 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class CodeableConcept : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(Coding)) + { + writer.WritePropertyName("coding"u8); + writer.WriteStartArray(); + foreach (var item in Coding) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(Text)) + { + writer.WritePropertyName("text"u8); + writer.WriteStringValue(Text); + } + writer.WriteEndObject(); + } + + internal static CodeableConcept DeserializeCodeableConcept(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional<string> id = default; + Optional<IList<Extension>> extension = default; + Optional<IList<Coding>> coding = default; + Optional<string> text = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RadiologyInsights.Extension.DeserializeExtension(item)); + } + extension = array; + continue; + } + if (property.NameEquals("coding"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Coding> array = new List<Coding>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RadiologyInsights.Coding.DeserializeCoding(item)); + } + coding = array; + continue; + } + if (property.NameEquals("text"u8)) + { + text = property.Value.GetString(); + continue; + } + } + return new CodeableConcept(id.Value, Optional.ToList(extension), Optional.ToList(coding), text.Value); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static CodeableConcept FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCodeableConcept(document.RootElement); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CodeableConcept.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CodeableConcept.cs new file mode 100644 index 0000000000000..29c9b1250c9b7 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CodeableConcept.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> + /// Concept - reference to a terminology or just text + /// Based on [FHIR CodeableConcept](https://www.hl7.org/fhir/R4/datatypes.html#CodeableConcept) + /// </summary> + public partial class CodeableConcept + { + /// <summary> Initializes a new instance of <see cref="CodeableConcept"/>. </summary> + public CodeableConcept() + { + Extension = new ChangeTrackingList<Extension>(); + Coding = new ChangeTrackingList<Coding>(); + } + + /// <summary> Initializes a new instance of <see cref="CodeableConcept"/>. </summary> + /// <param name="id"> Unique id for inter-element referencing. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="coding"> Code defined by a terminology system. </param> + /// <param name="text"> Plain text representation of the concept. </param> + internal CodeableConcept(string id, IList<Extension> extension, IList<Coding> coding, string text) + { + Id = id; + Extension = extension; + Coding = coding; + Text = text; + } + + /// <summary> Unique id for inter-element referencing. </summary> + public string Id { get; set; } + /// <summary> Additional Content defined by implementations. </summary> + public IList<Extension> Extension { get; } + /// <summary> Code defined by a terminology system. </summary> + public IList<Coding> Coding { get; } + /// <summary> Plain text representation of the concept. </summary> + public string Text { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Coding.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Coding.Serialization.cs new file mode 100644 index 0000000000000..c8041d0142b1e --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Coding.Serialization.cs @@ -0,0 +1,131 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class Coding : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(System)) + { + writer.WritePropertyName("system"u8); + writer.WriteStringValue(System); + } + if (Optional.IsDefined(Version)) + { + writer.WritePropertyName("version"u8); + writer.WriteStringValue(Version); + } + if (Optional.IsDefined(Code)) + { + writer.WritePropertyName("code"u8); + writer.WriteStringValue(Code); + } + if (Optional.IsDefined(Display)) + { + writer.WritePropertyName("display"u8); + writer.WriteStringValue(Display); + } + writer.WriteEndObject(); + } + + internal static Coding DeserializeCoding(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional<string> id = default; + Optional<IList<Extension>> extension = default; + Optional<string> system = default; + Optional<string> version = default; + Optional<string> code = default; + Optional<string> display = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RadiologyInsights.Extension.DeserializeExtension(item)); + } + extension = array; + continue; + } + if (property.NameEquals("system"u8)) + { + system = property.Value.GetString(); + continue; + } + if (property.NameEquals("version"u8)) + { + version = property.Value.GetString(); + continue; + } + if (property.NameEquals("code"u8)) + { + code = property.Value.GetString(); + continue; + } + if (property.NameEquals("display"u8)) + { + display = property.Value.GetString(); + continue; + } + } + return new Coding(id.Value, Optional.ToList(extension), system.Value, version.Value, code.Value, display.Value); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static Coding FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCoding(document.RootElement); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Coding.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Coding.cs new file mode 100644 index 0000000000000..2d3e12c69bbd1 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Coding.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> + /// A Coding is a representation of a defined concept using a symbol from a defined "code system". + /// Based on [FHIR Coding](https://www.hl7.org/fhir/R4/datatypes.html#Coding) + /// </summary> + public partial class Coding + { + /// <summary> Initializes a new instance of <see cref="Coding"/>. </summary> + public Coding() + { + Extension = new ChangeTrackingList<Extension>(); + } + + /// <summary> Initializes a new instance of <see cref="Coding"/>. </summary> + /// <param name="id"> Unique id for inter-element referencing. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="system"> Identity of the terminology system. </param> + /// <param name="version"> Version of the system - if relevant. </param> + /// <param name="code"> Symbol in syntax defined by the system. </param> + /// <param name="display"> Representation defined by the system. </param> + internal Coding(string id, IList<Extension> extension, string system, string version, string code, string display) + { + Id = id; + Extension = extension; + System = system; + Version = version; + Code = code; + Display = display; + } + + /// <summary> Unique id for inter-element referencing. </summary> + public string Id { get; set; } + /// <summary> Additional Content defined by implementations. </summary> + public IList<Extension> Extension { get; } + /// <summary> Identity of the terminology system. </summary> + public string System { get; set; } + /// <summary> Version of the system - if relevant. </summary> + public string Version { get; set; } + /// <summary> Symbol in syntax defined by the system. </summary> + public string Code { get; set; } + /// <summary> Representation defined by the system. </summary> + public string Display { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CompleteOrderDiscrepancyInference.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CompleteOrderDiscrepancyInference.Serialization.cs new file mode 100644 index 0000000000000..a789a955baf02 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CompleteOrderDiscrepancyInference.Serialization.cs @@ -0,0 +1,94 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class CompleteOrderDiscrepancyInference + { + internal static CompleteOrderDiscrepancyInference DeserializeCompleteOrderDiscrepancyInference(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + CodeableConcept orderType = default; + Optional<IReadOnlyList<CodeableConcept>> missingBodyParts = default; + Optional<IReadOnlyList<CodeableConcept>> missingBodyPartMeasurements = default; + string kind = default; + Optional<IReadOnlyList<Extension>> extension = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("orderType"u8)) + { + orderType = CodeableConcept.DeserializeCodeableConcept(property.Value); + continue; + } + if (property.NameEquals("missingBodyParts"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<CodeableConcept> array = new List<CodeableConcept>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(CodeableConcept.DeserializeCodeableConcept(item)); + } + missingBodyParts = array; + continue; + } + if (property.NameEquals("missingBodyPartMeasurements"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<CodeableConcept> array = new List<CodeableConcept>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(CodeableConcept.DeserializeCodeableConcept(item)); + } + missingBodyPartMeasurements = array; + continue; + } + if (property.NameEquals("kind"u8)) + { + kind = property.Value.GetString(); + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RadiologyInsights.Extension.DeserializeExtension(item)); + } + extension = array; + continue; + } + } + return new CompleteOrderDiscrepancyInference(kind, Optional.ToList(extension), orderType, Optional.ToList(missingBodyParts), Optional.ToList(missingBodyPartMeasurements)); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static new CompleteOrderDiscrepancyInference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCompleteOrderDiscrepancyInference(document.RootElement); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CompleteOrderDiscrepancyInference.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CompleteOrderDiscrepancyInference.cs new file mode 100644 index 0000000000000..eee40865ca508 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CompleteOrderDiscrepancyInference.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> A complete order discrepancy is shown when one or more body parts and/or measurements that should be in the document (because there is a complete order) are not present. </summary> + public partial class CompleteOrderDiscrepancyInference : RadiologyInsightsInference + { + /// <summary> Initializes a new instance of <see cref="CompleteOrderDiscrepancyInference"/>. </summary> + /// <param name="orderType"> Order type : CPT ultrasound complete code for abdomen, retroperitoneal, pelvis or breast. </param> + /// <exception cref="ArgumentNullException"> <paramref name="orderType"/> is null. </exception> + internal CompleteOrderDiscrepancyInference(CodeableConcept orderType) + { + Argument.AssertNotNull(orderType, nameof(orderType)); + + Kind = "completeOrderDiscrepancy"; + OrderType = orderType; + MissingBodyParts = new ChangeTrackingList<CodeableConcept>(); + MissingBodyPartMeasurements = new ChangeTrackingList<CodeableConcept>(); + } + + /// <summary> Initializes a new instance of <see cref="CompleteOrderDiscrepancyInference"/>. </summary> + /// <param name="kind"> Discriminator. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="orderType"> Order type : CPT ultrasound complete code for abdomen, retroperitoneal, pelvis or breast. </param> + /// <param name="missingBodyParts"> List of missing body parts required by a complete order : SNOMED CT codes. </param> + /// <param name="missingBodyPartMeasurements"> List of missing body parts that require measurement by a complete order : SNOMED CT codes. </param> + internal CompleteOrderDiscrepancyInference(string kind, IReadOnlyList<Extension> extension, CodeableConcept orderType, IReadOnlyList<CodeableConcept> missingBodyParts, IReadOnlyList<CodeableConcept> missingBodyPartMeasurements) : base(kind, extension) + { + OrderType = orderType; + MissingBodyParts = missingBodyParts; + MissingBodyPartMeasurements = missingBodyPartMeasurements; + } + + /// <summary> Order type : CPT ultrasound complete code for abdomen, retroperitoneal, pelvis or breast. </summary> + public CodeableConcept OrderType { get; } + /// <summary> List of missing body parts required by a complete order : SNOMED CT codes. </summary> + public IReadOnlyList<CodeableConcept> MissingBodyParts { get; } + /// <summary> List of missing body parts that require measurement by a complete order : SNOMED CT codes. </summary> + public IReadOnlyList<CodeableConcept> MissingBodyPartMeasurements { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CriticalResult.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CriticalResult.Serialization.cs new file mode 100644 index 0000000000000..47c14774dbd77 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CriticalResult.Serialization.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class CriticalResult + { + internal static CriticalResult DeserializeCriticalResult(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string description = default; + Optional<Observation> finding = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("description"u8)) + { + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("finding"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + finding = Observation.DeserializeObservation(property.Value); + continue; + } + } + return new CriticalResult(description, finding.Value); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static CriticalResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCriticalResult(document.RootElement); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CriticalResult.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CriticalResult.cs new file mode 100644 index 0000000000000..655cca91f12af --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CriticalResult.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> Critical Result consists of two properties. </summary> + public partial class CriticalResult + { + /// <summary> Initializes a new instance of <see cref="CriticalResult"/>. </summary> + /// <param name="description"> Description : medical problem. </param> + /// <exception cref="ArgumentNullException"> <paramref name="description"/> is null. </exception> + internal CriticalResult(string description) + { + Argument.AssertNotNull(description, nameof(description)); + + Description = description; + } + + /// <summary> Initializes a new instance of <see cref="CriticalResult"/>. </summary> + /// <param name="description"> Description : medical problem. </param> + /// <param name="finding"> Finding linked to the critical result. </param> + internal CriticalResult(string description, Observation finding) + { + Description = description; + Finding = finding; + } + + /// <summary> Description : medical problem. </summary> + public string Description { get; } + /// <summary> Finding linked to the critical result. </summary> + public Observation Finding { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CriticalResultInference.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CriticalResultInference.Serialization.cs new file mode 100644 index 0000000000000..6eb1817342800 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CriticalResultInference.Serialization.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class CriticalResultInference + { + internal static CriticalResultInference DeserializeCriticalResultInference(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + CriticalResult result = default; + string kind = default; + Optional<IReadOnlyList<Extension>> extension = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("result"u8)) + { + result = CriticalResult.DeserializeCriticalResult(property.Value); + continue; + } + if (property.NameEquals("kind"u8)) + { + kind = property.Value.GetString(); + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RadiologyInsights.Extension.DeserializeExtension(item)); + } + extension = array; + continue; + } + } + return new CriticalResultInference(kind, Optional.ToList(extension), result); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static new CriticalResultInference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCriticalResultInference(document.RootElement); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CriticalResultInference.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CriticalResultInference.cs new file mode 100644 index 0000000000000..681e82ad953e4 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CriticalResultInference.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> Critical results refer to findings of utmost importance that may require timely attention due to their potential impact on patient care. </summary> + public partial class CriticalResultInference : RadiologyInsightsInference + { + /// <summary> Initializes a new instance of <see cref="CriticalResultInference"/>. </summary> + /// <param name="result"> The complete Critical Result, as outlined below, will be reused for the recommendation. </param> + /// <exception cref="ArgumentNullException"> <paramref name="result"/> is null. </exception> + internal CriticalResultInference(CriticalResult result) + { + Argument.AssertNotNull(result, nameof(result)); + + Kind = "criticalResult"; + Result = result; + } + + /// <summary> Initializes a new instance of <see cref="CriticalResultInference"/>. </summary> + /// <param name="kind"> Discriminator. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="result"> The complete Critical Result, as outlined below, will be reused for the recommendation. </param> + internal CriticalResultInference(string kind, IReadOnlyList<Extension> extension, CriticalResult result) : base(kind, extension) + { + Result = result; + } + + /// <summary> The complete Critical Result, as outlined below, will be reused for the recommendation. </summary> + public CriticalResult Result { 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 new file mode 100644 index 0000000000000..6ff389b66c622 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Docs/RadiologyInsightsClient.xml @@ -0,0 +1,1083 @@ +<?xml version="1.0" encoding="utf-8"?> +<doc> + <members> + <member name="InferRadiologyInsightsAsync(WaitUntil,RadiologyInsightsData,CancellationToken)"> + <example> +This sample shows how to call InferRadiologyInsightsAsync. +<code><![CDATA[ +Uri endpoint = new Uri("<https://my-service.azure.com>"); +AzureKeyCredential credential = new AzureKeyCredential("<key>"); +RadiologyInsightsClient client = new RadiologyInsightsClient(endpoint, credential); + +RadiologyInsightsData radiologyInsightsData = new RadiologyInsightsData(new PatientRecord[] +{ + new PatientRecord("<id>") +}); +Operation<RadiologyInsightsInferenceResult> operation = await client.InferRadiologyInsightsAsync(WaitUntil.Completed, radiologyInsightsData); +RadiologyInsightsInferenceResult responseData = operation.Value; +]]></code> +This sample shows how to call InferRadiologyInsightsAsync with all parameters. +<code><![CDATA[ +Uri endpoint = new Uri("<https://my-service.azure.com>"); +AzureKeyCredential credential = new AzureKeyCredential("<key>"); +RadiologyInsightsClient client = new RadiologyInsightsClient(endpoint, credential); + +RadiologyInsightsData radiologyInsightsData = new RadiologyInsightsData(new PatientRecord[] +{ + new PatientRecord("<id>") + { + Info = new PatientInfo + { + Sex = PatientInfoSex.Female, + BirthDate = DateTimeOffset.Parse("2022-05-10"), + ClinicalInfo = {new Resource("<resourceType>") + { + Id = "<id>", + Meta = new Meta + { + VersionId = "<versionId>", + LastUpdated = "<lastUpdated>", + Source = "<source>", + Profile = {"<profile>"}, + Security = {new Coding + { + Id = "<id>", + Extension = {new Extension("<url>") + { + Id = "<id>", + ExtensionProperty = {default}, + ValueQuantity = new Quantity + { + Id = "<id>", + Extension = {default}, + Value = default, + Comparator = "<comparator>", + Unit = "<unit>", + System = "<system>", + Code = "<code>", + }, + ValueCodeableConcept = new CodeableConcept + { + Id = "<id>", + Extension = {default}, + Coding = {default}, + Text = "<text>", + }, + ValueString = "<valueString>", + ValueBoolean = true, + ValueInteger = 1234, + ValueRange = new Range + { + Id = "<id>", + Extension = {default}, + Low = default, + High = default, + }, + ValueRatio = new Ratio + { + Id = "<id>", + Extension = {default}, + Numerator = default, + Denominator = default, + }, + ValueSampledData = new SampledData(default, default, 1234) + { + Id = "<id>", + Extension = {default}, + Factor = default, + LowerLimit = default, + UpperLimit = default, + Data = "<data>", + }, + ValueTime = TimeSpan.Parse("01:23:45"), + ValueDateTime = "<valueDateTime>", + ValuePeriod = new Period + { + Id = "<id>", + Extension = {default}, + Start = "<start>", + End = "<end>", + }, + ValueReference = new Reference + { + Id = "<id>", + Extension = {default}, + ReferenceProperty = "<reference>", + Type = "<type>", + Identifier = new Identifier + { + Id = "<id>", + Extension = {default}, + Use = "<use>", + Type = default, + System = "<system>", + Value = "<value>", + Period = default, + Assigner = default, + }, + Display = "<display>", + }, + }}, + System = "<system>", + Version = "<version>", + Code = "<code>", + Display = "<display>", + }}, + Tag = {default}, + }, + ImplicitRules = "<implicitRules>", + Language = "<language>", + }}, + }, + Encounters = {new Encounter("<id>") + { + Period = new TimePeriod + { + Start = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), + End = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), + }, + Class = EncounterClass.InPatient, + }}, + PatientDocuments = {new PatientDocument(DocumentType.Note, "<id>", new DocumentContent(DocumentContentSourceType.Inline, "<value>")) + { + ClinicalType = ClinicalDocumentType.Consultation, + Language = "<language>", + CreatedDateTime = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), + Authors = {new DocumentAuthor + { + Id = "<id>", + FullName = "<fullName>", + }}, + SpecialtyType = SpecialtyType.Pathology, + AdministrativeMetadata = new DocumentAdministrativeMetadata + { + OrderedProcedures = {new OrderedProcedure + { + Extension = {default}, + Code = default, + Description = "<description>", + }}, + EncounterId = "<encounterId>", + }, + }}, + } +}) +{ + Configuration = new RadiologyInsightsModelConfiguration + { + Verbose = true, + IncludeEvidence = true, + InferenceTypes = { RadiologyInsightsInferenceType.AgeMismatch }, + InferenceOptions = new RadiologyInsightsInferenceOptions + { + FollowupRecommendation = new FollowupRecommendationOptions + { + IncludeRecommendationsWithNoSpecifiedModality = true, + IncludeRecommendationsInReferences = true, + ProvideFocusedSentenceEvidence = true, + }, + Finding = new FindingOptions + { + ProvideFocusedSentenceEvidence = true, + }, + }, + Locale = "<locale>", + }, +}; +Operation<RadiologyInsightsInferenceResult> operation = await client.InferRadiologyInsightsAsync(WaitUntil.Completed, radiologyInsightsData); +RadiologyInsightsInferenceResult responseData = operation.Value; +]]></code></example> + </member> + <member name="InferRadiologyInsights(WaitUntil,RadiologyInsightsData,CancellationToken)"> + <example> +This sample shows how to call InferRadiologyInsights. +<code><![CDATA[ +Uri endpoint = new Uri("<https://my-service.azure.com>"); +AzureKeyCredential credential = new AzureKeyCredential("<key>"); +RadiologyInsightsClient client = new RadiologyInsightsClient(endpoint, credential); + +RadiologyInsightsData radiologyInsightsData = new RadiologyInsightsData(new PatientRecord[] +{ + new PatientRecord("<id>") +}); +Operation<RadiologyInsightsInferenceResult> operation = client.InferRadiologyInsights(WaitUntil.Completed, radiologyInsightsData); +RadiologyInsightsInferenceResult responseData = operation.Value; +]]></code> +This sample shows how to call InferRadiologyInsights with all parameters. +<code><![CDATA[ +Uri endpoint = new Uri("<https://my-service.azure.com>"); +AzureKeyCredential credential = new AzureKeyCredential("<key>"); +RadiologyInsightsClient client = new RadiologyInsightsClient(endpoint, credential); + +RadiologyInsightsData radiologyInsightsData = new RadiologyInsightsData(new PatientRecord[] +{ + new PatientRecord("<id>") + { + Info = new PatientInfo + { + Sex = PatientInfoSex.Female, + BirthDate = DateTimeOffset.Parse("2022-05-10"), + ClinicalInfo = {new Resource("<resourceType>") + { + Id = "<id>", + Meta = new Meta + { + VersionId = "<versionId>", + LastUpdated = "<lastUpdated>", + Source = "<source>", + Profile = {"<profile>"}, + Security = {new Coding + { + Id = "<id>", + Extension = {new Extension("<url>") + { + Id = "<id>", + ExtensionProperty = {default}, + ValueQuantity = new Quantity + { + Id = "<id>", + Extension = {default}, + Value = default, + Comparator = "<comparator>", + Unit = "<unit>", + System = "<system>", + Code = "<code>", + }, + ValueCodeableConcept = new CodeableConcept + { + Id = "<id>", + Extension = {default}, + Coding = {default}, + Text = "<text>", + }, + ValueString = "<valueString>", + ValueBoolean = true, + ValueInteger = 1234, + ValueRange = new Range + { + Id = "<id>", + Extension = {default}, + Low = default, + High = default, + }, + ValueRatio = new Ratio + { + Id = "<id>", + Extension = {default}, + Numerator = default, + Denominator = default, + }, + ValueSampledData = new SampledData(default, default, 1234) + { + Id = "<id>", + Extension = {default}, + Factor = default, + LowerLimit = default, + UpperLimit = default, + Data = "<data>", + }, + ValueTime = TimeSpan.Parse("01:23:45"), + ValueDateTime = "<valueDateTime>", + ValuePeriod = new Period + { + Id = "<id>", + Extension = {default}, + Start = "<start>", + End = "<end>", + }, + ValueReference = new Reference + { + Id = "<id>", + Extension = {default}, + ReferenceProperty = "<reference>", + Type = "<type>", + Identifier = new Identifier + { + Id = "<id>", + Extension = {default}, + Use = "<use>", + Type = default, + System = "<system>", + Value = "<value>", + Period = default, + Assigner = default, + }, + Display = "<display>", + }, + }}, + System = "<system>", + Version = "<version>", + Code = "<code>", + Display = "<display>", + }}, + Tag = {default}, + }, + ImplicitRules = "<implicitRules>", + Language = "<language>", + }}, + }, + Encounters = {new Encounter("<id>") + { + Period = new TimePeriod + { + Start = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), + End = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), + }, + Class = EncounterClass.InPatient, + }}, + PatientDocuments = {new PatientDocument(DocumentType.Note, "<id>", new DocumentContent(DocumentContentSourceType.Inline, "<value>")) + { + ClinicalType = ClinicalDocumentType.Consultation, + Language = "<language>", + CreatedDateTime = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), + Authors = {new DocumentAuthor + { + Id = "<id>", + FullName = "<fullName>", + }}, + SpecialtyType = SpecialtyType.Pathology, + AdministrativeMetadata = new DocumentAdministrativeMetadata + { + OrderedProcedures = {new OrderedProcedure + { + Extension = {default}, + Code = default, + Description = "<description>", + }}, + EncounterId = "<encounterId>", + }, + }}, + } +}) +{ + Configuration = new RadiologyInsightsModelConfiguration + { + Verbose = true, + IncludeEvidence = true, + InferenceTypes = { RadiologyInsightsInferenceType.AgeMismatch }, + InferenceOptions = new RadiologyInsightsInferenceOptions + { + FollowupRecommendation = new FollowupRecommendationOptions + { + IncludeRecommendationsWithNoSpecifiedModality = true, + IncludeRecommendationsInReferences = true, + ProvideFocusedSentenceEvidence = true, + }, + Finding = new FindingOptions + { + ProvideFocusedSentenceEvidence = true, + }, + }, + Locale = "<locale>", + }, +}; +Operation<RadiologyInsightsInferenceResult> operation = client.InferRadiologyInsights(WaitUntil.Completed, radiologyInsightsData); +RadiologyInsightsInferenceResult responseData = operation.Value; +]]></code></example> + </member> + <member name="InferRadiologyInsightsAsync(WaitUntil,RequestContent,RequestContext)"> + <example> +This sample shows how to call InferRadiologyInsightsAsync and parse the result. +<code><![CDATA[ +Uri endpoint = new Uri("<https://my-service.azure.com>"); +AzureKeyCredential credential = new AzureKeyCredential("<key>"); +RadiologyInsightsClient client = new RadiologyInsightsClient(endpoint, credential); + +using RequestContent content = RequestContent.Create(new +{ + patients = new object[] + { + new + { + id = "<id>", + } + }, +}); +Operation<BinaryData> operation = await client.InferRadiologyInsightsAsync(WaitUntil.Completed, content); +BinaryData responseData = operation.Value; + +JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("patientId").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("kind").ToString()); +Console.WriteLine(result.GetProperty("modelVersion").ToString()); +]]></code> +This sample shows how to call InferRadiologyInsightsAsync with all parameters and request content and parse the result. +<code><![CDATA[ +Uri endpoint = new Uri("<https://my-service.azure.com>"); +AzureKeyCredential credential = new AzureKeyCredential("<key>"); +RadiologyInsightsClient client = new RadiologyInsightsClient(endpoint, credential); + +using RequestContent content = RequestContent.Create(new +{ + patients = new object[] + { + new + { + id = "<id>", + info = new + { + sex = "female", + birthDate = "2022-05-10", + clinicalInfo = new object[] + { + new + { + resourceType = "<resourceType>", + id = "<id>", + meta = new + { + versionId = "<versionId>", + lastUpdated = "<lastUpdated>", + source = "<source>", + profile = new object[] + { + "<profile>" + }, + security = new object[] + { + new + { + id = "<id>", + extension = new object[] + { + new + { + id = "<id>", + extension = new object[] + { + null + }, + url = "<url>", + valueQuantity = new + { + id = "<id>", + extension = new object[] + { + null + }, + value = new object(), + comparator = "<comparator>", + unit = "<unit>", + system = "<system>", + code = "<code>", + }, + valueCodeableConcept = new + { + id = "<id>", + extension = new object[] + { + null + }, + coding = new object[] + { + null + }, + text = "<text>", + }, + valueString = "<valueString>", + valueBoolean = true, + valueInteger = 1234, + valueRange = new + { + id = "<id>", + extension = new object[] + { + null + }, + }, + valueRatio = new + { + id = "<id>", + extension = new object[] + { + null + }, + }, + valueSampledData = new + { + id = "<id>", + extension = new object[] + { + null + }, + period = new object(), + factor = new object(), + lowerLimit = new object(), + upperLimit = new object(), + dimensions = 1234, + data = "<data>", + }, + valueTime = "01:23:45", + valueDateTime = "<valueDateTime>", + valuePeriod = new + { + id = "<id>", + extension = new object[] + { + null + }, + start = "<start>", + end = "<end>", + }, + valueReference = new + { + id = "<id>", + extension = new object[] + { + null + }, + reference = "<reference>", + type = "<type>", + identifier = new + { + id = "<id>", + extension = new object[] + { + null + }, + use = "<use>", + system = "<system>", + value = "<value>", + }, + display = "<display>", + }, + } + }, + system = "<system>", + version = "<version>", + code = "<code>", + display = "<display>", + } + }, + tag = new object[] + { + null + }, + }, + implicitRules = "<implicitRules>", + language = "<language>", + } + }, + }, + encounters = new object[] + { + new Dictionary<string, object> + { + ["id"] = "<id>", + ["period"] = new + { + start = "2022-05-10T14:57:31.2311892-04:00", + end = "2022-05-10T14:57:31.2311892-04:00", + }, + ["class"] = "inpatient" + } + }, + patientDocuments = new object[] + { + new + { + type = "note", + clinicalType = "consultation", + id = "<id>", + language = "<language>", + createdDateTime = "2022-05-10T14:57:31.2311892-04:00", + authors = new object[] + { + new + { + id = "<id>", + fullName = "<fullName>", + } + }, + specialtyType = "pathology", + administrativeMetadata = new + { + orderedProcedures = new object[] + { + new + { + extension = new object[] + { + null + }, + description = "<description>", + } + }, + encounterId = "<encounterId>", + }, + content = new + { + sourceType = "inline", + value = "<value>", + }, + } + }, + } + }, + configuration = new + { + verbose = true, + includeEvidence = true, + inferenceTypes = new object[] + { + "ageMismatch" + }, + inferenceOptions = new + { + followupRecommendation = new + { + includeRecommendationsWithNoSpecifiedModality = true, + includeRecommendationsInReferences = true, + provideFocusedSentenceEvidence = true, + }, + finding = new + { + provideFocusedSentenceEvidence = true, + }, + }, + locale = "<locale>", + }, +}); +Operation<BinaryData> operation = await client.InferRadiologyInsightsAsync(WaitUntil.Completed, content); +BinaryData responseData = operation.Value; + +JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("patientId").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("kind").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("url").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("version").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueString").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueBoolean").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueInteger").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("period").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("factor").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("lowerLimit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("upperLimit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("dimensions").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("data").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueTime").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueDateTime").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("start").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("end").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("reference").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("type").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("use").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("version").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("start").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("end").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("modelVersion").ToString()); +]]></code></example> + </member> + <member name="InferRadiologyInsights(WaitUntil,RequestContent,RequestContext)"> + <example> +This sample shows how to call InferRadiologyInsights and parse the result. +<code><![CDATA[ +Uri endpoint = new Uri("<https://my-service.azure.com>"); +AzureKeyCredential credential = new AzureKeyCredential("<key>"); +RadiologyInsightsClient client = new RadiologyInsightsClient(endpoint, credential); + +using RequestContent content = RequestContent.Create(new +{ + patients = new object[] + { + new + { + id = "<id>", + } + }, +}); +Operation<BinaryData> operation = client.InferRadiologyInsights(WaitUntil.Completed, content); +BinaryData responseData = operation.Value; + +JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("patientId").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("kind").ToString()); +Console.WriteLine(result.GetProperty("modelVersion").ToString()); +]]></code> +This sample shows how to call InferRadiologyInsights with all parameters and request content and parse the result. +<code><![CDATA[ +Uri endpoint = new Uri("<https://my-service.azure.com>"); +AzureKeyCredential credential = new AzureKeyCredential("<key>"); +RadiologyInsightsClient client = new RadiologyInsightsClient(endpoint, credential); + +using RequestContent content = RequestContent.Create(new +{ + patients = new object[] + { + new + { + id = "<id>", + info = new + { + sex = "female", + birthDate = "2022-05-10", + clinicalInfo = new object[] + { + new + { + resourceType = "<resourceType>", + id = "<id>", + meta = new + { + versionId = "<versionId>", + lastUpdated = "<lastUpdated>", + source = "<source>", + profile = new object[] + { + "<profile>" + }, + security = new object[] + { + new + { + id = "<id>", + extension = new object[] + { + new + { + id = "<id>", + extension = new object[] + { + null + }, + url = "<url>", + valueQuantity = new + { + id = "<id>", + extension = new object[] + { + null + }, + value = new object(), + comparator = "<comparator>", + unit = "<unit>", + system = "<system>", + code = "<code>", + }, + valueCodeableConcept = new + { + id = "<id>", + extension = new object[] + { + null + }, + coding = new object[] + { + null + }, + text = "<text>", + }, + valueString = "<valueString>", + valueBoolean = true, + valueInteger = 1234, + valueRange = new + { + id = "<id>", + extension = new object[] + { + null + }, + }, + valueRatio = new + { + id = "<id>", + extension = new object[] + { + null + }, + }, + valueSampledData = new + { + id = "<id>", + extension = new object[] + { + null + }, + period = new object(), + factor = new object(), + lowerLimit = new object(), + upperLimit = new object(), + dimensions = 1234, + data = "<data>", + }, + valueTime = "01:23:45", + valueDateTime = "<valueDateTime>", + valuePeriod = new + { + id = "<id>", + extension = new object[] + { + null + }, + start = "<start>", + end = "<end>", + }, + valueReference = new + { + id = "<id>", + extension = new object[] + { + null + }, + reference = "<reference>", + type = "<type>", + identifier = new + { + id = "<id>", + extension = new object[] + { + null + }, + use = "<use>", + system = "<system>", + value = "<value>", + }, + display = "<display>", + }, + } + }, + system = "<system>", + version = "<version>", + code = "<code>", + display = "<display>", + } + }, + tag = new object[] + { + null + }, + }, + implicitRules = "<implicitRules>", + language = "<language>", + } + }, + }, + encounters = new object[] + { + new Dictionary<string, object> + { + ["id"] = "<id>", + ["period"] = new + { + start = "2022-05-10T14:57:31.2311892-04:00", + end = "2022-05-10T14:57:31.2311892-04:00", + }, + ["class"] = "inpatient" + } + }, + patientDocuments = new object[] + { + new + { + type = "note", + clinicalType = "consultation", + id = "<id>", + language = "<language>", + createdDateTime = "2022-05-10T14:57:31.2311892-04:00", + authors = new object[] + { + new + { + id = "<id>", + fullName = "<fullName>", + } + }, + specialtyType = "pathology", + administrativeMetadata = new + { + orderedProcedures = new object[] + { + new + { + extension = new object[] + { + null + }, + description = "<description>", + } + }, + encounterId = "<encounterId>", + }, + content = new + { + sourceType = "inline", + value = "<value>", + }, + } + }, + } + }, + configuration = new + { + verbose = true, + includeEvidence = true, + inferenceTypes = new object[] + { + "ageMismatch" + }, + inferenceOptions = new + { + followupRecommendation = new + { + includeRecommendationsWithNoSpecifiedModality = true, + includeRecommendationsInReferences = true, + provideFocusedSentenceEvidence = true, + }, + finding = new + { + provideFocusedSentenceEvidence = true, + }, + }, + locale = "<locale>", + }, +}); +Operation<BinaryData> operation = client.InferRadiologyInsights(WaitUntil.Completed, content); +BinaryData responseData = operation.Value; + +JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("patientId").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("kind").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("url").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("version").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueString").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueBoolean").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueInteger").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("comparator").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("unit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("period").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("factor").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("lowerLimit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("upperLimit").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("dimensions").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("data").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueTime").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueDateTime").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("start").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("end").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("reference").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("type").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("use").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("version").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("text").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("system").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("value").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("id").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("start").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("end").ToString()); +Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("display").ToString()); +Console.WriteLine(result.GetProperty("modelVersion").ToString()); +]]></code></example> + </member> + </members> +</doc> \ No newline at end of file diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/DocumentAdministrativeMetadata.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/DocumentAdministrativeMetadata.Serialization.cs new file mode 100644 index 0000000000000..2a29a848b35c5 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/DocumentAdministrativeMetadata.Serialization.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class DocumentAdministrativeMetadata : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(OrderedProcedures)) + { + writer.WritePropertyName("orderedProcedures"u8); + writer.WriteStartArray(); + foreach (var item in OrderedProcedures) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(EncounterId)) + { + writer.WritePropertyName("encounterId"u8); + writer.WriteStringValue(EncounterId); + } + writer.WriteEndObject(); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/DocumentAdministrativeMetadata.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/DocumentAdministrativeMetadata.cs new file mode 100644 index 0000000000000..ede656ebd3ea0 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/DocumentAdministrativeMetadata.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> Document administrative metadata. </summary> + public partial class DocumentAdministrativeMetadata + { + /// <summary> Initializes a new instance of <see cref="DocumentAdministrativeMetadata"/>. </summary> + public DocumentAdministrativeMetadata() + { + OrderedProcedures = new ChangeTrackingList<OrderedProcedure>(); + } + + /// <summary> Initializes a new instance of <see cref="DocumentAdministrativeMetadata"/>. </summary> + /// <param name="orderedProcedures"> List of procedure information associated with the document. </param> + /// <param name="encounterId"> Reference to the encounter associated with the document. </param> + internal DocumentAdministrativeMetadata(IList<OrderedProcedure> orderedProcedures, string encounterId) + { + OrderedProcedures = orderedProcedures; + EncounterId = encounterId; + } + + /// <summary> List of procedure information associated with the document. </summary> + public IList<OrderedProcedure> OrderedProcedures { get; } + /// <summary> Reference to the encounter associated with the document. </summary> + public string EncounterId { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/DocumentAuthor.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/DocumentAuthor.Serialization.cs new file mode 100644 index 0000000000000..404cd989baec6 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/DocumentAuthor.Serialization.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class DocumentAuthor : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsDefined(FullName)) + { + writer.WritePropertyName("fullName"u8); + writer.WriteStringValue(FullName); + } + writer.WriteEndObject(); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/DocumentAuthor.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/DocumentAuthor.cs new file mode 100644 index 0000000000000..dde904960e0d2 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/DocumentAuthor.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> Document author. </summary> + public partial class DocumentAuthor + { + /// <summary> Initializes a new instance of <see cref="DocumentAuthor"/>. </summary> + public DocumentAuthor() + { + } + + /// <summary> Initializes a new instance of <see cref="DocumentAuthor"/>. </summary> + /// <param name="id"> author id. </param> + /// <param name="fullName"> Text representation of the full name. </param> + internal DocumentAuthor(string id, string fullName) + { + Id = id; + FullName = fullName; + } + + /// <summary> author id. </summary> + public string Id { get; set; } + /// <summary> Text representation of the full name. </summary> + public string FullName { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/DocumentContent.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/DocumentContent.Serialization.cs new file mode 100644 index 0000000000000..62633d127101d --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/DocumentContent.Serialization.cs @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class DocumentContent : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("sourceType"u8); + writer.WriteStringValue(SourceType.ToString()); + writer.WritePropertyName("value"u8); + writer.WriteStringValue(Value); + writer.WriteEndObject(); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/DocumentContent.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/DocumentContent.cs new file mode 100644 index 0000000000000..f97afcf1dc10f --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/DocumentContent.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> The content of the patient document. </summary> + public partial class DocumentContent + { + /// <summary> Initializes a new instance of <see cref="DocumentContent"/>. </summary> + /// <param name="sourceType"> + /// The type of the content's source. + /// In case the source type is 'inline', the content is given as a string (for instance, text). + /// In case the source type is 'reference', the content is given as a URI. + /// </param> + /// <param name="value"> The content of the document, given either inline (as a string) or as a reference (URI). </param> + /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception> + public DocumentContent(DocumentContentSourceType sourceType, string value) + { + Argument.AssertNotNull(value, nameof(value)); + + SourceType = sourceType; + Value = value; + } + + /// <summary> + /// The type of the content's source. + /// In case the source type is 'inline', the content is given as a string (for instance, text). + /// In case the source type is 'reference', the content is given as a URI. + /// </summary> + public DocumentContentSourceType SourceType { get; } + /// <summary> The content of the document, given either inline (as a string) or as a reference (URI). </summary> + public string Value { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/DocumentContentSourceType.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/DocumentContentSourceType.cs new file mode 100644 index 0000000000000..0c75c38d211cb --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/DocumentContentSourceType.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> + /// The type of the content's source. + /// In case the source type is 'inline', the content is given as a string (for instance, text). + /// In case the source type is 'reference', the content is given as a URI. + /// </summary> + public readonly partial struct DocumentContentSourceType : IEquatable<DocumentContentSourceType> + { + private readonly string _value; + + /// <summary> Initializes a new instance of <see cref="DocumentContentSourceType"/>. </summary> + /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception> + public DocumentContentSourceType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string InlineValue = "inline"; + private const string ReferenceValue = "reference"; + + /// <summary> The content is given as a string (for instance, text). </summary> + public static DocumentContentSourceType Inline { get; } = new DocumentContentSourceType(InlineValue); + /// <summary> The content is given as a URI. </summary> + public static DocumentContentSourceType Reference { get; } = new DocumentContentSourceType(ReferenceValue); + /// <summary> Determines if two <see cref="DocumentContentSourceType"/> values are the same. </summary> + public static bool operator ==(DocumentContentSourceType left, DocumentContentSourceType right) => left.Equals(right); + /// <summary> Determines if two <see cref="DocumentContentSourceType"/> values are not the same. </summary> + public static bool operator !=(DocumentContentSourceType left, DocumentContentSourceType right) => !left.Equals(right); + /// <summary> Converts a string to a <see cref="DocumentContentSourceType"/>. </summary> + public static implicit operator DocumentContentSourceType(string value) => new DocumentContentSourceType(value); + + /// <inheritdoc /> + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is DocumentContentSourceType other && Equals(other); + /// <inheritdoc /> + public bool Equals(DocumentContentSourceType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// <inheritdoc /> + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// <inheritdoc /> + public override string ToString() => _value; + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/DocumentType.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/DocumentType.cs new file mode 100644 index 0000000000000..9cb400c900ca8 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/DocumentType.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> The type of the patient document, such as 'note' (text document) or 'fhirBundle' (FHIR JSON document). </summary> + public readonly partial struct DocumentType : IEquatable<DocumentType> + { + private readonly string _value; + + /// <summary> Initializes a new instance of <see cref="DocumentType"/>. </summary> + /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception> + public DocumentType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string NoteValue = "note"; + private const string FhirBundleValue = "fhirBundle"; + private const string DicomValue = "dicom"; + private const string GenomicSequencingValue = "genomicSequencing"; + + /// <summary> note. </summary> + public static DocumentType Note { get; } = new DocumentType(NoteValue); + /// <summary> fhirBundle. </summary> + public static DocumentType FhirBundle { get; } = new DocumentType(FhirBundleValue); + /// <summary> dicom. </summary> + public static DocumentType Dicom { get; } = new DocumentType(DicomValue); + /// <summary> genomicSequencing. </summary> + public static DocumentType GenomicSequencing { get; } = new DocumentType(GenomicSequencingValue); + /// <summary> Determines if two <see cref="DocumentType"/> values are the same. </summary> + public static bool operator ==(DocumentType left, DocumentType right) => left.Equals(right); + /// <summary> Determines if two <see cref="DocumentType"/> values are not the same. </summary> + public static bool operator !=(DocumentType left, DocumentType right) => !left.Equals(right); + /// <summary> Converts a string to a <see cref="DocumentType"/>. </summary> + public static implicit operator DocumentType(string value) => new DocumentType(value); + + /// <inheritdoc /> + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is DocumentType other && Equals(other); + /// <inheritdoc /> + public bool Equals(DocumentType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// <inheritdoc /> + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// <inheritdoc /> + public override string ToString() => _value; + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/DomainResource.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/DomainResource.cs new file mode 100644 index 0000000000000..ada93f257c4d1 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/DomainResource.cs @@ -0,0 +1,106 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> + /// A resource with narrative, extensions, and contained resources + /// Based on [FHIR DomainResource](https://www.hl7.org/fhir/domainresource.html) + /// Please note <see cref="DomainResource"/> 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 <see cref="Observation"/>. + /// </summary> + public abstract partial class DomainResource + { + /// <summary> Initializes a new instance of <see cref="DomainResource"/>. </summary> + protected DomainResource() + { + Contained = new ChangeTrackingList<Resource>(); + Extension = new ChangeTrackingList<Extension>(); + ModifierExtension = new ChangeTrackingList<Extension>(); + AdditionalProperties = new ChangeTrackingDictionary<string, BinaryData>(); + } + + /// <summary> Initializes a new instance of <see cref="DomainResource"/>. </summary> + /// <param name="resourceType"> The type of resource. </param> + /// <param name="id"> Resource Id. </param> + /// <param name="meta"> Metadata about the resource. </param> + /// <param name="implicitRules"> A set of rules under which this content was created. </param> + /// <param name="language"> Language of the resource content. </param> + /// <param name="text"> Text summary of the resource, for human interpretation. </param> + /// <param name="contained"> Contained, inline Resources. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="modifierExtension"> Extensions that cannot be ignored. </param> + /// <param name="additionalProperties"> Additional Properties. </param> + internal DomainResource(string resourceType, string id, Meta meta, string implicitRules, string language, Narrative text, IReadOnlyList<Resource> contained, IReadOnlyList<Extension> extension, IReadOnlyList<Extension> modifierExtension, IReadOnlyDictionary<string, BinaryData> additionalProperties) + { + ResourceType = resourceType; + Id = id; + Meta = meta; + ImplicitRules = implicitRules; + Language = language; + Text = text; + Contained = contained; + Extension = extension; + ModifierExtension = modifierExtension; + AdditionalProperties = additionalProperties; + } + + /// <summary> The type of resource. </summary> + internal string ResourceType { get; set; } + /// <summary> Resource Id. </summary> + public string Id { get; } + /// <summary> Metadata about the resource. </summary> + public Meta Meta { get; } + /// <summary> A set of rules under which this content was created. </summary> + public string ImplicitRules { get; } + /// <summary> Language of the resource content. </summary> + public string Language { get; } + /// <summary> Text summary of the resource, for human interpretation. </summary> + public Narrative Text { get; } + /// <summary> Contained, inline Resources. </summary> + public IReadOnlyList<Resource> Contained { get; } + /// <summary> Additional Content defined by implementations. </summary> + public IReadOnlyList<Extension> Extension { get; } + /// <summary> Extensions that cannot be ignored. </summary> + public IReadOnlyList<Extension> ModifierExtension { get; } + /// <summary> + /// Additional Properties + /// <para> + /// To assign an object to the value of this property use <see cref="BinaryData.FromObjectAsJson{T}(T, System.Text.Json.JsonSerializerOptions?)"/>. + /// </para> + /// <para> + /// To assign an already formatted json string to this property use <see cref="BinaryData.FromString(string)"/>. + /// </para> + /// <para> + /// Examples: + /// <list type="bullet"> + /// <item> + /// <term>BinaryData.FromObjectAsJson("foo")</term> + /// <description>Creates a payload of "foo".</description> + /// </item> + /// <item> + /// <term>BinaryData.FromString("\"foo\"")</term> + /// <description>Creates a payload of "foo".</description> + /// </item> + /// <item> + /// <term>BinaryData.FromObjectAsJson(new { key = "value" })</term> + /// <description>Creates a payload of { "key": "value" }.</description> + /// </item> + /// <item> + /// <term>BinaryData.FromString("{\"key\": \"value\"}")</term> + /// <description>Creates a payload of { "key": "value" }.</description> + /// </item> + /// </list> + /// </para> + /// </summary> + public IReadOnlyDictionary<string, BinaryData> AdditionalProperties { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Encounter.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Encounter.Serialization.cs new file mode 100644 index 0000000000000..37ac6ed3348ff --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Encounter.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class Encounter : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + if (Optional.IsDefined(Period)) + { + writer.WritePropertyName("period"u8); + writer.WriteObjectValue(Period); + } + if (Optional.IsDefined(Class)) + { + writer.WritePropertyName("class"u8); + writer.WriteStringValue(Class.Value.ToString()); + } + writer.WriteEndObject(); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Encounter.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Encounter.cs new file mode 100644 index 0000000000000..ccc90aa288fe8 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Encounter.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> visit/encounter information. </summary> + public partial class Encounter + { + /// <summary> Initializes a new instance of <see cref="Encounter"/>. </summary> + /// <param name="id"> The id of the visit. </param> + /// <exception cref="ArgumentNullException"> <paramref name="id"/> is null. </exception> + public Encounter(string id) + { + Argument.AssertNotNull(id, nameof(id)); + + Id = id; + } + + /// <summary> Initializes a new instance of <see cref="Encounter"/>. </summary> + /// <param name="id"> The id of the visit. </param> + /// <param name="period"> + /// Time period of the visit. + /// In case of admission, use timePeriod.start to indicate the admission time and timePeriod.end to indicate the discharge time. + /// </param> + /// <param name="class"> The class of the encounter. </param> + internal Encounter(string id, TimePeriod period, EncounterClass? @class) + { + Id = id; + Period = period; + Class = @class; + } + + /// <summary> The id of the visit. </summary> + public string Id { get; } + /// <summary> + /// Time period of the visit. + /// In case of admission, use timePeriod.start to indicate the admission time and timePeriod.end to indicate the discharge time. + /// </summary> + public TimePeriod Period { get; set; } + /// <summary> The class of the encounter. </summary> + public EncounterClass? Class { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/EncounterClass.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/EncounterClass.cs new file mode 100644 index 0000000000000..390f150c5774e --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/EncounterClass.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> Known values codes that can be used to indicate the class of encounter (TODO://Based on FHIR value set--http://....). </summary> + public readonly partial struct EncounterClass : IEquatable<EncounterClass> + { + private readonly string _value; + + /// <summary> Initializes a new instance of <see cref="EncounterClass"/>. </summary> + /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception> + public EncounterClass(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string InPatientValue = "inpatient"; + private const string AmbulatoryValue = "ambulatory"; + private const string ObservationValue = "observation"; + private const string EmergencyValue = "emergency"; + private const string VirtualValue = "virtual"; + private const string HealthHomeValue = "healthHome"; + + /// <summary> A patient encounter where a patient is admitted by a hospital or equivalent facility, assigned to a location where patients generally stay at least overnight and provided with room, board, and continuous nursing service. </summary> + public static EncounterClass InPatient { get; } = new EncounterClass(InPatientValue); + /// <summary> The term ambulatory usually implies that the patient has come to the location and is not assigned to a bed. Sometimes referred to as an outpatient encounter. </summary> + public static EncounterClass Ambulatory { get; } = new EncounterClass(AmbulatoryValue); + /// <summary> An encounter where the patient usually will start in different encounter, such as one in the emergency department but then transition to this type of encounter because they require a significant period of treatment and monitoring to determine whether or not their condition warrants an inpatient admission or discharge. </summary> + public static EncounterClass Observation { get; } = new EncounterClass(ObservationValue); + /// <summary> A patient encounter that takes place at a dedicated healthcare service delivery location where the patient receives immediate evaluation and treatment, provided until the patient can be discharged or responsibility for the patient's care is transferred elsewhere (for example, the patient could be admitted as an inpatient or transferred to another facility. </summary> + public static EncounterClass Emergency { get; } = new EncounterClass(EmergencyValue); + /// <summary> A patient encounter where the patient is not physically present for the encounter, such as in a telehealth encounter, phone call, or electronic communication. </summary> + public static EncounterClass Virtual { get; } = new EncounterClass(VirtualValue); + /// <summary> Healthcare encounter that takes place in the residence of the patient or a designee. </summary> + public static EncounterClass HealthHome { get; } = new EncounterClass(HealthHomeValue); + /// <summary> Determines if two <see cref="EncounterClass"/> values are the same. </summary> + public static bool operator ==(EncounterClass left, EncounterClass right) => left.Equals(right); + /// <summary> Determines if two <see cref="EncounterClass"/> values are not the same. </summary> + public static bool operator !=(EncounterClass left, EncounterClass right) => !left.Equals(right); + /// <summary> Converts a string to a <see cref="EncounterClass"/>. </summary> + public static implicit operator EncounterClass(string value) => new EncounterClass(value); + + /// <inheritdoc /> + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is EncounterClass other && Equals(other); + /// <inheritdoc /> + public bool Equals(EncounterClass other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// <inheritdoc /> + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// <inheritdoc /> + public override string ToString() => _value; + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Extension.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Extension.Serialization.cs new file mode 100644 index 0000000000000..5ba3a1a27e32f --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Extension.Serialization.cs @@ -0,0 +1,268 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class Extension : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(ExtensionProperty)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in ExtensionProperty) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + writer.WritePropertyName("url"u8); + writer.WriteStringValue(Url); + if (Optional.IsDefined(ValueQuantity)) + { + writer.WritePropertyName("valueQuantity"u8); + writer.WriteObjectValue(ValueQuantity); + } + if (Optional.IsDefined(ValueCodeableConcept)) + { + writer.WritePropertyName("valueCodeableConcept"u8); + writer.WriteObjectValue(ValueCodeableConcept); + } + if (Optional.IsDefined(ValueString)) + { + writer.WritePropertyName("valueString"u8); + writer.WriteStringValue(ValueString); + } + if (Optional.IsDefined(ValueBoolean)) + { + writer.WritePropertyName("valueBoolean"u8); + writer.WriteBooleanValue(ValueBoolean.Value); + } + if (Optional.IsDefined(ValueInteger)) + { + writer.WritePropertyName("valueInteger"u8); + writer.WriteNumberValue(ValueInteger.Value); + } + if (Optional.IsDefined(ValueRange)) + { + writer.WritePropertyName("valueRange"u8); + writer.WriteObjectValue(ValueRange); + } + if (Optional.IsDefined(ValueRatio)) + { + writer.WritePropertyName("valueRatio"u8); + writer.WriteObjectValue(ValueRatio); + } + if (Optional.IsDefined(ValueSampledData)) + { + writer.WritePropertyName("valueSampledData"u8); + writer.WriteObjectValue(ValueSampledData); + } + if (Optional.IsDefined(ValueTime)) + { + writer.WritePropertyName("valueTime"u8); + writer.WriteStringValue(ValueTime.Value, "T"); + } + if (Optional.IsDefined(ValueDateTime)) + { + writer.WritePropertyName("valueDateTime"u8); + writer.WriteStringValue(ValueDateTime); + } + if (Optional.IsDefined(ValuePeriod)) + { + writer.WritePropertyName("valuePeriod"u8); + writer.WriteObjectValue(ValuePeriod); + } + if (Optional.IsDefined(ValueReference)) + { + writer.WritePropertyName("valueReference"u8); + writer.WriteObjectValue(ValueReference); + } + writer.WriteEndObject(); + } + + internal static Extension DeserializeExtension(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional<string> id = default; + Optional<IList<Extension>> extension = default; + string url = default; + Optional<Quantity> valueQuantity = default; + Optional<CodeableConcept> valueCodeableConcept = default; + Optional<string> valueString = default; + Optional<bool> valueBoolean = default; + Optional<int> valueInteger = default; + Optional<Range> valueRange = default; + Optional<Ratio> valueRatio = default; + Optional<SampledData> valueSampledData = default; + Optional<TimeSpan> valueTime = default; + Optional<string> valueDateTime = default; + Optional<Period> valuePeriod = default; + Optional<Reference> valueReference = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(DeserializeExtension(item)); + } + extension = array; + continue; + } + if (property.NameEquals("url"u8)) + { + url = property.Value.GetString(); + continue; + } + if (property.NameEquals("valueQuantity"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valueQuantity = Quantity.DeserializeQuantity(property.Value); + continue; + } + if (property.NameEquals("valueCodeableConcept"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valueCodeableConcept = CodeableConcept.DeserializeCodeableConcept(property.Value); + continue; + } + if (property.NameEquals("valueString"u8)) + { + valueString = property.Value.GetString(); + continue; + } + if (property.NameEquals("valueBoolean"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valueBoolean = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("valueInteger"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valueInteger = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("valueRange"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valueRange = Range.DeserializeRange(property.Value); + continue; + } + if (property.NameEquals("valueRatio"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valueRatio = Ratio.DeserializeRatio(property.Value); + continue; + } + if (property.NameEquals("valueSampledData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valueSampledData = SampledData.DeserializeSampledData(property.Value); + continue; + } + if (property.NameEquals("valueTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valueTime = property.Value.GetTimeSpan("T"); + continue; + } + if (property.NameEquals("valueDateTime"u8)) + { + valueDateTime = property.Value.GetString(); + continue; + } + if (property.NameEquals("valuePeriod"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valuePeriod = Period.DeserializePeriod(property.Value); + continue; + } + if (property.NameEquals("valueReference"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valueReference = Reference.DeserializeReference(property.Value); + continue; + } + } + return new Extension(id.Value, Optional.ToList(extension), url, valueQuantity.Value, valueCodeableConcept.Value, valueString.Value, Optional.ToNullable(valueBoolean), Optional.ToNullable(valueInteger), valueRange.Value, valueRatio.Value, valueSampledData.Value, Optional.ToNullable(valueTime), valueDateTime.Value, valuePeriod.Value, valueReference.Value); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static Extension FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeExtension(document.RootElement); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Extension.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Extension.cs new file mode 100644 index 0000000000000..ab359afa6c2c1 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Extension.cs @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> + /// Base for all elements + /// Based on [FHIR Element](https://www.hl7.org/fhir/datatypes.html#Element) + /// </summary> + public partial class Extension + { + /// <summary> Initializes a new instance of <see cref="Extension"/>. </summary> + /// <param name="url"> Source of the definition for the extension code - a logical name or a URL. </param> + /// <exception cref="ArgumentNullException"> <paramref name="url"/> is null. </exception> + public Extension(string url) + { + Argument.AssertNotNull(url, nameof(url)); + + ExtensionProperty = new ChangeTrackingList<Extension>(); + Url = url; + } + + /// <summary> Initializes a new instance of <see cref="Extension"/>. </summary> + /// <param name="id"> Unique id for inter-element referencing. </param> + /// <param name="extensionProperty"> Additional Content defined by implementations. </param> + /// <param name="url"> Source of the definition for the extension code - a logical name or a URL. </param> + /// <param name="valueQuantity"> Value as Quantity. </param> + /// <param name="valueCodeableConcept"> Value as CodeableConcept. </param> + /// <param name="valueString"> Value as string. </param> + /// <param name="valueBoolean"> Value as boolean. </param> + /// <param name="valueInteger"> Value as integer. </param> + /// <param name="valueRange"> Value as Range. </param> + /// <param name="valueRatio"> Value as Ratio. </param> + /// <param name="valueSampledData"> Value as SampledData. </param> + /// <param name="valueTime"> Value as time (hh:mm:ss). </param> + /// <param name="valueDateTime"> Value as dateTime. </param> + /// <param name="valuePeriod"> Value as Period. </param> + /// <param name="valueReference"> Value as reference. </param> + internal Extension(string id, IList<Extension> extensionProperty, string url, Quantity valueQuantity, CodeableConcept valueCodeableConcept, string valueString, bool? valueBoolean, int? valueInteger, Range valueRange, Ratio valueRatio, SampledData valueSampledData, TimeSpan? valueTime, string valueDateTime, Period valuePeriod, Reference valueReference) + { + Id = id; + ExtensionProperty = extensionProperty; + Url = url; + ValueQuantity = valueQuantity; + ValueCodeableConcept = valueCodeableConcept; + ValueString = valueString; + ValueBoolean = valueBoolean; + ValueInteger = valueInteger; + ValueRange = valueRange; + ValueRatio = valueRatio; + ValueSampledData = valueSampledData; + ValueTime = valueTime; + ValueDateTime = valueDateTime; + ValuePeriod = valuePeriod; + ValueReference = valueReference; + } + + /// <summary> Unique id for inter-element referencing. </summary> + public string Id { get; set; } + /// <summary> Additional Content defined by implementations. </summary> + public IList<Extension> ExtensionProperty { get; } + /// <summary> Source of the definition for the extension code - a logical name or a URL. </summary> + public string Url { get; set; } + /// <summary> Value as Quantity. </summary> + public Quantity ValueQuantity { get; set; } + /// <summary> Value as CodeableConcept. </summary> + public CodeableConcept ValueCodeableConcept { get; set; } + /// <summary> Value as string. </summary> + public string ValueString { get; set; } + /// <summary> Value as boolean. </summary> + public bool? ValueBoolean { get; set; } + /// <summary> Value as integer. </summary> + public int? ValueInteger { get; set; } + /// <summary> Value as Range. </summary> + public Range ValueRange { get; set; } + /// <summary> Value as Ratio. </summary> + public Ratio ValueRatio { get; set; } + /// <summary> Value as SampledData. </summary> + public SampledData ValueSampledData { get; set; } + /// <summary> Value as time (hh:mm:ss). </summary> + public TimeSpan? ValueTime { get; set; } + /// <summary> Value as dateTime. </summary> + public string ValueDateTime { get; set; } + /// <summary> Value as Period. </summary> + public Period ValuePeriod { get; set; } + /// <summary> Value as reference. </summary> + public Reference ValueReference { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FindingInference.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FindingInference.Serialization.cs new file mode 100644 index 0000000000000..d6abb7c3f87e0 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FindingInference.Serialization.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class FindingInference + { + internal static FindingInference DeserializeFindingInference(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Observation finding = default; + string kind = default; + Optional<IReadOnlyList<Extension>> extension = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("finding"u8)) + { + finding = Observation.DeserializeObservation(property.Value); + continue; + } + if (property.NameEquals("kind"u8)) + { + kind = property.Value.GetString(); + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RadiologyInsights.Extension.DeserializeExtension(item)); + } + extension = array; + continue; + } + } + return new FindingInference(kind, Optional.ToList(extension), finding); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static new FindingInference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeFindingInference(document.RootElement); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FindingInference.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FindingInference.cs new file mode 100644 index 0000000000000..36485dc702752 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FindingInference.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> Findings in a radiology report typically describe abnormalities, lesions, or other notable observations related to the anatomy or pathology of the imaged area. </summary> + public partial class FindingInference : RadiologyInsightsInference + { + /// <summary> Initializes a new instance of <see cref="FindingInference"/>. </summary> + /// <param name="finding"> Finding data : contains extensions, fields and components linked with the finding. </param> + /// <exception cref="ArgumentNullException"> <paramref name="finding"/> is null. </exception> + internal FindingInference(Observation finding) + { + Argument.AssertNotNull(finding, nameof(finding)); + + Kind = "finding"; + Finding = finding; + } + + /// <summary> Initializes a new instance of <see cref="FindingInference"/>. </summary> + /// <param name="kind"> Discriminator. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="finding"> Finding data : contains extensions, fields and components linked with the finding. </param> + internal FindingInference(string kind, IReadOnlyList<Extension> extension, Observation finding) : base(kind, extension) + { + Finding = finding; + } + + /// <summary> Finding data : contains extensions, fields and components linked with the finding. </summary> + public Observation Finding { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FindingOptions.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FindingOptions.Serialization.cs new file mode 100644 index 0000000000000..1631bc0c0d918 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FindingOptions.Serialization.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class FindingOptions : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(ProvideFocusedSentenceEvidence)) + { + writer.WritePropertyName("provideFocusedSentenceEvidence"u8); + writer.WriteBooleanValue(ProvideFocusedSentenceEvidence.Value); + } + writer.WriteEndObject(); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FindingOptions.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FindingOptions.cs new file mode 100644 index 0000000000000..25ca080e58b95 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FindingOptions.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> Finding options. </summary> + public partial class FindingOptions + { + /// <summary> Initializes a new instance of <see cref="FindingOptions"/>. </summary> + public FindingOptions() + { + } + + /// <summary> Initializes a new instance of <see cref="FindingOptions"/>. </summary> + /// <param name="provideFocusedSentenceEvidence"> If this is true, provide the sentence that contains the first token of the finding's clinical indicator (i.e. the medical problem), if there is one. This sentence is provided as an extension with url 'ci_sentence', next to the token evidence. Default is false. </param> + internal FindingOptions(bool? provideFocusedSentenceEvidence) + { + ProvideFocusedSentenceEvidence = provideFocusedSentenceEvidence; + } + + /// <summary> If this is true, provide the sentence that contains the first token of the finding's clinical indicator (i.e. the medical problem), if there is one. This sentence is provided as an extension with url 'ci_sentence', next to the token evidence. Default is false. </summary> + public bool? ProvideFocusedSentenceEvidence { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FollowupCommunicationInference.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FollowupCommunicationInference.Serialization.cs new file mode 100644 index 0000000000000..abc2bb06f4713 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FollowupCommunicationInference.Serialization.cs @@ -0,0 +1,95 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class FollowupCommunicationInference + { + internal static FollowupCommunicationInference DeserializeFollowupCommunicationInference(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional<IReadOnlyList<DateTimeOffset>> dateTime = default; + Optional<IReadOnlyList<string>> recipient = default; + bool wasAcknowledged = default; + string kind = default; + Optional<IReadOnlyList<Extension>> extension = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("dateTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<DateTimeOffset> array = new List<DateTimeOffset>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetDateTimeOffset("O")); + } + dateTime = array; + continue; + } + if (property.NameEquals("recipient"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<string> array = new List<string>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + recipient = array; + continue; + } + if (property.NameEquals("wasAcknowledged"u8)) + { + wasAcknowledged = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("kind"u8)) + { + kind = property.Value.GetString(); + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RadiologyInsights.Extension.DeserializeExtension(item)); + } + extension = array; + continue; + } + } + return new FollowupCommunicationInference(kind, Optional.ToList(extension), Optional.ToList(dateTime), Optional.ToList(recipient), wasAcknowledged); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static new FollowupCommunicationInference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeFollowupCommunicationInference(document.RootElement); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FollowupCommunicationInference.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FollowupCommunicationInference.cs new file mode 100644 index 0000000000000..495cd168637a5 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FollowupCommunicationInference.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> Follow-up communication involves the exchange of important information, recommendations, or updates between radiologists and other healthcare professionals involved in a patient's care. </summary> + public partial class FollowupCommunicationInference : RadiologyInsightsInference + { + /// <summary> Initializes a new instance of <see cref="FollowupCommunicationInference"/>. </summary> + /// <param name="wasAcknowledged"> Communication was acknowledged. </param> + internal FollowupCommunicationInference(bool wasAcknowledged) + { + Kind = "followupCommunication"; + DateTime = new ChangeTrackingList<DateTimeOffset>(); + Recipient = new ChangeTrackingList<string>(); + WasAcknowledged = wasAcknowledged; + } + + /// <summary> Initializes a new instance of <see cref="FollowupCommunicationInference"/>. </summary> + /// <param name="kind"> Discriminator. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="dateTime"> Communication date and time. </param> + /// <param name="recipient"> Recipient of the communication. </param> + /// <param name="wasAcknowledged"> Communication was acknowledged. </param> + internal FollowupCommunicationInference(string kind, IReadOnlyList<Extension> extension, IReadOnlyList<DateTimeOffset> dateTime, IReadOnlyList<string> recipient, bool wasAcknowledged) : base(kind, extension) + { + DateTime = dateTime; + Recipient = recipient; + WasAcknowledged = wasAcknowledged; + } + + /// <summary> Communication date and time. </summary> + public IReadOnlyList<DateTimeOffset> DateTime { get; } + /// <summary> Recipient of the communication. </summary> + public IReadOnlyList<string> Recipient { get; } + /// <summary> Communication was acknowledged. </summary> + public bool WasAcknowledged { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FollowupRecommendationInference.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FollowupRecommendationInference.Serialization.cs new file mode 100644 index 0000000000000..2553af1fae634 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FollowupRecommendationInference.Serialization.cs @@ -0,0 +1,119 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class FollowupRecommendationInference + { + internal static FollowupRecommendationInference DeserializeFollowupRecommendationInference(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional<string> effectiveDateTime = default; + Optional<Period> effectivePeriod = default; + Optional<IReadOnlyList<RecommendationFinding>> findings = default; + bool isConditional = default; + bool isOption = default; + bool isGuideline = default; + bool isHedging = default; + ProcedureRecommendation recommendedProcedure = default; + string kind = default; + Optional<IReadOnlyList<Extension>> extension = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("effectiveDateTime"u8)) + { + effectiveDateTime = property.Value.GetString(); + continue; + } + if (property.NameEquals("effectivePeriod"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + effectivePeriod = Period.DeserializePeriod(property.Value); + continue; + } + if (property.NameEquals("findings"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<RecommendationFinding> array = new List<RecommendationFinding>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RecommendationFinding.DeserializeRecommendationFinding(item)); + } + findings = array; + continue; + } + if (property.NameEquals("isConditional"u8)) + { + isConditional = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("isOption"u8)) + { + isOption = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("isGuideline"u8)) + { + isGuideline = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("isHedging"u8)) + { + isHedging = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("recommendedProcedure"u8)) + { + recommendedProcedure = ProcedureRecommendation.DeserializeProcedureRecommendation(property.Value); + continue; + } + if (property.NameEquals("kind"u8)) + { + kind = property.Value.GetString(); + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RadiologyInsights.Extension.DeserializeExtension(item)); + } + extension = array; + continue; + } + } + return new FollowupRecommendationInference(kind, Optional.ToList(extension), effectiveDateTime.Value, effectivePeriod.Value, Optional.ToList(findings), isConditional, isOption, isGuideline, isHedging, recommendedProcedure); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static new FollowupRecommendationInference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeFollowupRecommendationInference(document.RootElement); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FollowupRecommendationInference.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FollowupRecommendationInference.cs new file mode 100644 index 0000000000000..a3d3b34748dd7 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FollowupRecommendationInference.cs @@ -0,0 +1,81 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> Follow-up recommendations offer guidance to healthcare providers on managing and monitoring patients based on the findings of imaging studies. </summary> + public partial class FollowupRecommendationInference : RadiologyInsightsInference + { + /// <summary> Initializes a new instance of <see cref="FollowupRecommendationInference"/>. </summary> + /// <param name="isConditional"> The conditional value indicates whether or not the sentence containing the recommendation includes a conditional statement. Keywords for conditional statements include 'if', 'when', 'unless', and so on. </param> + /// <param name="isOption"> The option value indicates whether or not the sentence containing the recommendation includes an optional statement. Keywords for optional statements include 'recommend', 'consider', and so on. </param> + /// <param name="isGuideline"> The guideline value indicates whether or not the recommendation is part of a guideline section that compiles all recommendations applicable to various findings. </param> + /// <param name="isHedging"> Hedging refers to ambiguous, vague or imprecise language within the sentence of the recommendation. Keywords for hedging are 'can be','may be',and so on. </param> + /// <param name="recommendedProcedure"> The procedure recommendation can be a generic procedure or an imaging procedure. </param> + /// <exception cref="ArgumentNullException"> <paramref name="recommendedProcedure"/> is null. </exception> + internal FollowupRecommendationInference(bool isConditional, bool isOption, bool isGuideline, bool isHedging, ProcedureRecommendation recommendedProcedure) + { + Argument.AssertNotNull(recommendedProcedure, nameof(recommendedProcedure)); + + Kind = "followupRecommendation"; + Findings = new ChangeTrackingList<RecommendationFinding>(); + IsConditional = isConditional; + IsOption = isOption; + IsGuideline = isGuideline; + IsHedging = isHedging; + RecommendedProcedure = recommendedProcedure; + } + + /// <summary> Initializes a new instance of <see cref="FollowupRecommendationInference"/>. </summary> + /// <param name="kind"> Discriminator. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="effectiveDateTime"> Date and time are displayed when the procedure is recommended to be done at a specific point in time. </param> + /// <param name="effectivePeriod"> The period is shown if a specific period is mentioned, with a start and end date-time. </param> + /// <param name="findings"> Findings related to the recommendation. </param> + /// <param name="isConditional"> The conditional value indicates whether or not the sentence containing the recommendation includes a conditional statement. Keywords for conditional statements include 'if', 'when', 'unless', and so on. </param> + /// <param name="isOption"> The option value indicates whether or not the sentence containing the recommendation includes an optional statement. Keywords for optional statements include 'recommend', 'consider', and so on. </param> + /// <param name="isGuideline"> The guideline value indicates whether or not the recommendation is part of a guideline section that compiles all recommendations applicable to various findings. </param> + /// <param name="isHedging"> Hedging refers to ambiguous, vague or imprecise language within the sentence of the recommendation. Keywords for hedging are 'can be','may be',and so on. </param> + /// <param name="recommendedProcedure"> The procedure recommendation can be a generic procedure or an imaging procedure. </param> + internal FollowupRecommendationInference(string kind, IReadOnlyList<Extension> extension, string effectiveDateTime, Period effectivePeriod, IReadOnlyList<RecommendationFinding> findings, bool isConditional, bool isOption, bool isGuideline, bool isHedging, ProcedureRecommendation recommendedProcedure) : base(kind, extension) + { + EffectiveDateTime = effectiveDateTime; + EffectivePeriod = effectivePeriod; + Findings = findings; + IsConditional = isConditional; + IsOption = isOption; + IsGuideline = isGuideline; + IsHedging = isHedging; + RecommendedProcedure = recommendedProcedure; + } + + /// <summary> Date and time are displayed when the procedure is recommended to be done at a specific point in time. </summary> + public string EffectiveDateTime { get; } + /// <summary> The period is shown if a specific period is mentioned, with a start and end date-time. </summary> + public Period EffectivePeriod { get; } + /// <summary> Findings related to the recommendation. </summary> + public IReadOnlyList<RecommendationFinding> Findings { get; } + /// <summary> The conditional value indicates whether or not the sentence containing the recommendation includes a conditional statement. Keywords for conditional statements include 'if', 'when', 'unless', and so on. </summary> + public bool IsConditional { get; } + /// <summary> The option value indicates whether or not the sentence containing the recommendation includes an optional statement. Keywords for optional statements include 'recommend', 'consider', and so on. </summary> + public bool IsOption { get; } + /// <summary> The guideline value indicates whether or not the recommendation is part of a guideline section that compiles all recommendations applicable to various findings. </summary> + public bool IsGuideline { get; } + /// <summary> Hedging refers to ambiguous, vague or imprecise language within the sentence of the recommendation. Keywords for hedging are 'can be','may be',and so on. </summary> + public bool IsHedging { get; } + /// <summary> + /// The procedure recommendation can be a generic procedure or an imaging procedure. + /// Please note <see cref="ProcedureRecommendation"/> 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 <see cref="GenericProcedureRecommendation"/> and <see cref="ImagingProcedureRecommendation"/>. + /// </summary> + public ProcedureRecommendation RecommendedProcedure { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FollowupRecommendationOptions.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FollowupRecommendationOptions.Serialization.cs new file mode 100644 index 0000000000000..2cca60b8611bb --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FollowupRecommendationOptions.Serialization.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class FollowupRecommendationOptions : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(IncludeRecommendationsWithNoSpecifiedModality)) + { + writer.WritePropertyName("includeRecommendationsWithNoSpecifiedModality"u8); + writer.WriteBooleanValue(IncludeRecommendationsWithNoSpecifiedModality.Value); + } + if (Optional.IsDefined(IncludeRecommendationsInReferences)) + { + writer.WritePropertyName("includeRecommendationsInReferences"u8); + writer.WriteBooleanValue(IncludeRecommendationsInReferences.Value); + } + if (Optional.IsDefined(ProvideFocusedSentenceEvidence)) + { + writer.WritePropertyName("provideFocusedSentenceEvidence"u8); + writer.WriteBooleanValue(ProvideFocusedSentenceEvidence.Value); + } + writer.WriteEndObject(); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FollowupRecommendationOptions.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FollowupRecommendationOptions.cs new file mode 100644 index 0000000000000..041f87dbdaf5b --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FollowupRecommendationOptions.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> Follow-up recommendation options. </summary> + public partial class FollowupRecommendationOptions + { + /// <summary> Initializes a new instance of <see cref="FollowupRecommendationOptions"/>. </summary> + public FollowupRecommendationOptions() + { + } + + /// <summary> Initializes a new instance of <see cref="FollowupRecommendationOptions"/>. </summary> + /// <param name="includeRecommendationsWithNoSpecifiedModality"> Include/Exclude follow-up recommendations without a specific radiology procedure. Default is false. </param> + /// <param name="includeRecommendationsInReferences"> Include/Exclude follow-up recommendations in references to a guideline or article. Default is false. </param> + /// <param name="provideFocusedSentenceEvidence"> If this is true, provide one or more sentences as evidence for the recommendation, next to the token evidence. The start and end positions of these sentences will be put in an extension with url 'modality_sentences'. Default is false. </param> + internal FollowupRecommendationOptions(bool? includeRecommendationsWithNoSpecifiedModality, bool? includeRecommendationsInReferences, bool? provideFocusedSentenceEvidence) + { + IncludeRecommendationsWithNoSpecifiedModality = includeRecommendationsWithNoSpecifiedModality; + IncludeRecommendationsInReferences = includeRecommendationsInReferences; + ProvideFocusedSentenceEvidence = provideFocusedSentenceEvidence; + } + + /// <summary> Include/Exclude follow-up recommendations without a specific radiology procedure. Default is false. </summary> + public bool? IncludeRecommendationsWithNoSpecifiedModality { get; set; } + /// <summary> Include/Exclude follow-up recommendations in references to a guideline or article. Default is false. </summary> + public bool? IncludeRecommendationsInReferences { get; set; } + /// <summary> If this is true, provide one or more sentences as evidence for the recommendation, next to the token evidence. The start and end positions of these sentences will be put in an extension with url 'modality_sentences'. Default is false. </summary> + public bool? ProvideFocusedSentenceEvidence { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/GenericProcedureRecommendation.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/GenericProcedureRecommendation.Serialization.cs new file mode 100644 index 0000000000000..281b3493f61b0 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/GenericProcedureRecommendation.Serialization.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class GenericProcedureRecommendation + { + internal static GenericProcedureRecommendation DeserializeGenericProcedureRecommendation(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + CodeableConcept code = default; + Optional<string> description = default; + string kind = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("code"u8)) + { + code = CodeableConcept.DeserializeCodeableConcept(property.Value); + continue; + } + if (property.NameEquals("description"u8)) + { + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("kind"u8)) + { + kind = property.Value.GetString(); + continue; + } + } + return new GenericProcedureRecommendation(kind, code, description.Value); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static new GenericProcedureRecommendation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGenericProcedureRecommendation(document.RootElement); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/GenericProcedureRecommendation.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/GenericProcedureRecommendation.cs new file mode 100644 index 0000000000000..a4258212b8498 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/GenericProcedureRecommendation.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> Generic procedure information. </summary> + public partial class GenericProcedureRecommendation : ProcedureRecommendation + { + /// <summary> Initializes a new instance of <see cref="GenericProcedureRecommendation"/>. </summary> + /// <param name="code"> Procedure modality : SNOMED CT code. </param> + /// <exception cref="ArgumentNullException"> <paramref name="code"/> is null. </exception> + internal GenericProcedureRecommendation(CodeableConcept code) + { + Argument.AssertNotNull(code, nameof(code)); + + Kind = "genericProcedureRecommendation"; + Code = code; + } + + /// <summary> Initializes a new instance of <see cref="GenericProcedureRecommendation"/>. </summary> + /// <param name="kind"> Discriminator. </param> + /// <param name="code"> Procedure modality : SNOMED CT code. </param> + /// <param name="description"> Procedure description : MANAGEMENT PROCEDURE (PROCEDURE) or CONSULTATION (PROCEDURE) based on SNOMED CT. </param> + internal GenericProcedureRecommendation(string kind, CodeableConcept code, string description) : base(kind) + { + Code = code; + Description = description; + } + + /// <summary> Procedure modality : SNOMED CT code. </summary> + public CodeableConcept Code { get; } + /// <summary> Procedure description : MANAGEMENT PROCEDURE (PROCEDURE) or CONSULTATION (PROCEDURE) based on SNOMED CT. </summary> + public string Description { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/HealthInsightsRadiologyInsightsClientBuilderExtensions.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/HealthInsightsRadiologyInsightsClientBuilderExtensions.cs new file mode 100644 index 0000000000000..e169c038f9bf8 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/HealthInsightsRadiologyInsightsClientBuilderExtensions.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using Azure; +using Azure.Core.Extensions; +using Azure.Health.Insights.RadiologyInsights; + +namespace Microsoft.Extensions.Azure +{ + /// <summary> Extension methods to add <see cref="RadiologyInsightsClient"/> to client builder. </summary> + public static partial class HealthInsightsRadiologyInsightsClientBuilderExtensions + { + /// <summary> Registers a <see cref="RadiologyInsightsClient"/> instance. </summary> + /// <param name="builder"> The builder to register with. </param> + /// <param name="endpoint"> Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus2.api.cognitive.microsoft.com). </param> + /// <param name="credential"> A credential used to authenticate to an Azure Service. </param> + public static IAzureClientBuilder<RadiologyInsightsClient, RadiologyInsightsClientOptions> AddRadiologyInsightsClient<TBuilder>(this TBuilder builder, Uri endpoint, AzureKeyCredential credential) + where TBuilder : IAzureClientFactoryBuilder + { + return builder.RegisterClientFactory<RadiologyInsightsClient, RadiologyInsightsClientOptions>((options) => new RadiologyInsightsClient(endpoint, credential, options)); + } + + /// <summary> Registers a <see cref="RadiologyInsightsClient"/> instance. </summary> + /// <param name="builder"> The builder to register with. </param> + /// <param name="configuration"> The configuration values. </param> + public static IAzureClientBuilder<RadiologyInsightsClient, RadiologyInsightsClientOptions> AddRadiologyInsightsClient<TBuilder, TConfiguration>(this TBuilder builder, TConfiguration configuration) + where TBuilder : IAzureClientFactoryBuilderWithConfiguration<TConfiguration> + { + return builder.RegisterClientFactory<RadiologyInsightsClient, RadiologyInsightsClientOptions>(configuration); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/HealthInsightsRadiologyInsightsModelFactory.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/HealthInsightsRadiologyInsightsModelFactory.cs new file mode 100644 index 0000000000000..139bc8e8c7bd8 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/HealthInsightsRadiologyInsightsModelFactory.cs @@ -0,0 +1,381 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> Model factory for models. </summary> + public static partial class HealthInsightsRadiologyInsightsModelFactory + { + /// <summary> Initializes a new instance of <see cref="RadiologyInsights.RadiologyInsightsInferenceResult"/>. </summary> + /// <param name="patientResults"> Results for the patients given in the request. </param> + /// <param name="modelVersion"> The version of the model used for inference, expressed as the model date. </param> + /// <returns> A new <see cref="RadiologyInsights.RadiologyInsightsInferenceResult"/> instance for mocking. </returns> + public static RadiologyInsightsInferenceResult RadiologyInsightsInferenceResult(IEnumerable<RadiologyInsightsPatientResult> patientResults = null, string modelVersion = null) + { + patientResults ??= new List<RadiologyInsightsPatientResult>(); + + return new RadiologyInsightsInferenceResult(patientResults?.ToList(), modelVersion); + } + + /// <summary> Initializes a new instance of <see cref="RadiologyInsights.RadiologyInsightsPatientResult"/>. </summary> + /// <param name="patientId"> Identifier given for the patient in the request. </param> + /// <param name="inferences"> The model's inferences for the given patient. </param> + /// <returns> A new <see cref="RadiologyInsights.RadiologyInsightsPatientResult"/> instance for mocking. </returns> + public static RadiologyInsightsPatientResult RadiologyInsightsPatientResult(string patientId = null, IEnumerable<RadiologyInsightsInference> inferences = null) + { + inferences ??= new List<RadiologyInsightsInference>(); + + return new RadiologyInsightsPatientResult(patientId, inferences?.ToList()); + } + + /// <summary> Initializes a new instance of <see cref="RadiologyInsights.RadiologyInsightsInference"/>. </summary> + /// <param name="kind"> Discriminator. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <returns> A new <see cref="RadiologyInsights.RadiologyInsightsInference"/> instance for mocking. </returns> + public static RadiologyInsightsInference RadiologyInsightsInference(string kind = null, IEnumerable<Extension> extension = null) + { + extension ??= new List<Extension>(); + + return new UnknownRadiologyInsightsInference(kind, extension?.ToList()); + } + + /// <summary> Initializes a new instance of <see cref="RadiologyInsights.AgeMismatchInference"/>. </summary> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <returns> A new <see cref="RadiologyInsights.AgeMismatchInference"/> instance for mocking. </returns> + public static AgeMismatchInference AgeMismatchInference(IEnumerable<Extension> extension = null) + { + extension ??= new List<Extension>(); + + return new AgeMismatchInference("ageMismatch", extension?.ToList()); + } + + /// <summary> Initializes a new instance of <see cref="RadiologyInsights.SexMismatchInference"/>. </summary> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="sexIndication"> Sex indication : SNOMED CT code for gender finding. </param> + /// <returns> A new <see cref="RadiologyInsights.SexMismatchInference"/> instance for mocking. </returns> + public static SexMismatchInference SexMismatchInference(IEnumerable<Extension> extension = null, CodeableConcept sexIndication = null) + { + extension ??= new List<Extension>(); + + return new SexMismatchInference("sexMismatch", extension?.ToList(), sexIndication); + } + + /// <summary> Initializes a new instance of <see cref="RadiologyInsights.LateralityDiscrepancyInference"/>. </summary> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="lateralityIndication"> Laterality indication : SNOMED CT code for laterality qualifier value. </param> + /// <param name="discrepancyType"> Mismatch type : orderLateralityMismatch, textLateralityContradiction, textLateralityMissing. </param> + /// <returns> A new <see cref="RadiologyInsights.LateralityDiscrepancyInference"/> instance for mocking. </returns> + public static LateralityDiscrepancyInference LateralityDiscrepancyInference(IEnumerable<Extension> extension = null, CodeableConcept lateralityIndication = null, string discrepancyType = null) + { + extension ??= new List<Extension>(); + + return new LateralityDiscrepancyInference("lateralityDiscrepancy", extension?.ToList(), lateralityIndication, discrepancyType); + } + + /// <summary> Initializes a new instance of <see cref="RadiologyInsights.CompleteOrderDiscrepancyInference"/>. </summary> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="orderType"> Order type : CPT ultrasound complete code for abdomen, retroperitoneal, pelvis or breast. </param> + /// <param name="missingBodyParts"> List of missing body parts required by a complete order : SNOMED CT codes. </param> + /// <param name="missingBodyPartMeasurements"> List of missing body parts that require measurement by a complete order : SNOMED CT codes. </param> + /// <returns> A new <see cref="RadiologyInsights.CompleteOrderDiscrepancyInference"/> instance for mocking. </returns> + public static CompleteOrderDiscrepancyInference CompleteOrderDiscrepancyInference(IEnumerable<Extension> extension = null, CodeableConcept orderType = null, IEnumerable<CodeableConcept> missingBodyParts = null, IEnumerable<CodeableConcept> missingBodyPartMeasurements = null) + { + extension ??= new List<Extension>(); + missingBodyParts ??= new List<CodeableConcept>(); + missingBodyPartMeasurements ??= new List<CodeableConcept>(); + + return new CompleteOrderDiscrepancyInference("completeOrderDiscrepancy", extension?.ToList(), orderType, missingBodyParts?.ToList(), missingBodyPartMeasurements?.ToList()); + } + + /// <summary> Initializes a new instance of <see cref="RadiologyInsights.LimitedOrderDiscrepancyInference"/>. </summary> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="orderType"> Order type : CPT ultrasound complete code for abdomen, retroperitoneal, pelvis or breast. </param> + /// <param name="presentBodyParts"> List of body parts found in the document : SNOMED CT codes. </param> + /// <param name="presentBodyPartMeasurements"> List of body parts that are measured according to the document : SNOMED CT codes. </param> + /// <returns> A new <see cref="RadiologyInsights.LimitedOrderDiscrepancyInference"/> instance for mocking. </returns> + public static LimitedOrderDiscrepancyInference LimitedOrderDiscrepancyInference(IEnumerable<Extension> extension = null, CodeableConcept orderType = null, IEnumerable<CodeableConcept> presentBodyParts = null, IEnumerable<CodeableConcept> presentBodyPartMeasurements = null) + { + extension ??= new List<Extension>(); + presentBodyParts ??= new List<CodeableConcept>(); + presentBodyPartMeasurements ??= new List<CodeableConcept>(); + + return new LimitedOrderDiscrepancyInference("limitedOrderDiscrepancy", extension?.ToList(), orderType, presentBodyParts?.ToList(), presentBodyPartMeasurements?.ToList()); + } + + /// <summary> Initializes a new instance of <see cref="RadiologyInsights.FindingInference"/>. </summary> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="finding"> Finding data : contains extensions, fields and components linked with the finding. </param> + /// <returns> A new <see cref="RadiologyInsights.FindingInference"/> instance for mocking. </returns> + public static FindingInference FindingInference(IEnumerable<Extension> extension = null, Observation finding = null) + { + extension ??= new List<Extension>(); + + return new FindingInference("finding", extension?.ToList(), finding); + } + + /// <summary> Initializes a new instance of <see cref="RadiologyInsights.Narrative"/>. </summary> + /// <param name="id"> Unique id for inter-element referencing. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="status"> generated, extensions, additional, empty. </param> + /// <param name="div"> xhtml. </param> + /// <returns> A new <see cref="RadiologyInsights.Narrative"/> instance for mocking. </returns> + public static Narrative Narrative(string id = null, IEnumerable<Extension> extension = null, string status = null, string div = null) + { + extension ??= new List<Extension>(); + + return new Narrative(id, extension?.ToList(), status, div); + } + + /// <summary> Initializes a new instance of <see cref="RadiologyInsights.Observation"/>. </summary> + /// <param name="id"> Resource Id. </param> + /// <param name="meta"> Metadata about the resource. </param> + /// <param name="implicitRules"> A set of rules under which this content was created. </param> + /// <param name="language"> Language of the resource content. </param> + /// <param name="text"> Text summary of the resource, for human interpretation. </param> + /// <param name="contained"> Contained, inline Resources. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="modifierExtension"> Extensions that cannot be ignored. </param> + /// <param name="additionalProperties"> Additional Properties. </param> + /// <param name="identifier"> Business Identifier for observation. </param> + /// <param name="status"> registered | preliminary | final | amended +. </param> + /// <param name="category"> Classification of type of observation. </param> + /// <param name="code"> Type of observation (code / type). </param> + /// <param name="subject"> Who and/or what the observation is about. </param> + /// <param name="encounter"> Healthcare event during which this observation is made. </param> + /// <param name="effectiveDateTime"> Clinically relevant time/time-period for observation. </param> + /// <param name="effectivePeriod"> Clinically relevant time/time-period for observation. </param> + /// <param name="effectiveInstant"> Clinically relevant time/time-period for observation. </param> + /// <param name="issued"> Date/Time this version was made available. </param> + /// <param name="valueQuantity"> Actual result. </param> + /// <param name="valueCodeableConcept"> Actual result. </param> + /// <param name="valueString"> Actual result. </param> + /// <param name="valueBoolean"> Actual result. </param> + /// <param name="valueInteger"> Actual result. </param> + /// <param name="valueRange"> Actual result. </param> + /// <param name="valueRatio"> Actual result. </param> + /// <param name="valueSampledData"> Actual result. </param> + /// <param name="valueTime"> Actual result. </param> + /// <param name="valueDateTime"> Actual result. </param> + /// <param name="valuePeriod"> Actual result. </param> + /// <param name="dataAbsentReason"> Why the result is missing. </param> + /// <param name="interpretation"> High, low, normal, etc. </param> + /// <param name="note"> Comments about the observation. </param> + /// <param name="bodySite"> Observed body part. </param> + /// <param name="method"> How it was done. </param> + /// <param name="referenceRange"> Provides guide for interpretation. </param> + /// <param name="hasMember"> Related resource that belongs to the Observation group. </param> + /// <param name="derivedFrom"> Related measurements the observation is made from. </param> + /// <param name="component"> Component results. </param> + /// <returns> A new <see cref="RadiologyInsights.Observation"/> instance for mocking. </returns> + public static Observation Observation(string id = null, Meta meta = null, string implicitRules = null, string language = null, Narrative text = null, IEnumerable<Resource> contained = null, IEnumerable<Extension> extension = null, IEnumerable<Extension> modifierExtension = null, IReadOnlyDictionary<string, BinaryData> additionalProperties = null, IEnumerable<Identifier> identifier = null, string status = null, IEnumerable<CodeableConcept> category = null, CodeableConcept code = null, Reference subject = null, Reference encounter = null, string effectiveDateTime = null, Period effectivePeriod = null, string effectiveInstant = null, string issued = null, Quantity valueQuantity = null, CodeableConcept valueCodeableConcept = null, string valueString = null, bool? valueBoolean = null, int? valueInteger = null, Range valueRange = null, Ratio valueRatio = null, SampledData valueSampledData = null, TimeSpan? valueTime = null, string valueDateTime = null, Period valuePeriod = null, CodeableConcept dataAbsentReason = null, IEnumerable<CodeableConcept> interpretation = null, IEnumerable<Annotation> note = null, CodeableConcept bodySite = null, CodeableConcept method = null, IEnumerable<ObservationReferenceRange> referenceRange = null, IEnumerable<Reference> hasMember = null, IEnumerable<Reference> derivedFrom = null, IEnumerable<ObservationComponent> component = null) + { + contained ??= new List<Resource>(); + extension ??= new List<Extension>(); + modifierExtension ??= new List<Extension>(); + additionalProperties ??= new Dictionary<string, BinaryData>(); + identifier ??= new List<Identifier>(); + category ??= new List<CodeableConcept>(); + interpretation ??= new List<CodeableConcept>(); + note ??= new List<Annotation>(); + referenceRange ??= new List<ObservationReferenceRange>(); + hasMember ??= new List<Reference>(); + derivedFrom ??= new List<Reference>(); + component ??= new List<ObservationComponent>(); + + return new Observation("Observation", id, meta, implicitRules, language, text, contained?.ToList(), extension?.ToList(), modifierExtension?.ToList(), additionalProperties, identifier?.ToList(), status, category?.ToList(), code, subject, encounter, effectiveDateTime, effectivePeriod, effectiveInstant, issued, valueQuantity, valueCodeableConcept, valueString, valueBoolean, valueInteger, valueRange, valueRatio, valueSampledData, valueTime, valueDateTime, valuePeriod, dataAbsentReason, interpretation?.ToList(), note?.ToList(), bodySite, method, referenceRange?.ToList(), hasMember?.ToList(), derivedFrom?.ToList(), component?.ToList()); + } + + /// <summary> Initializes a new instance of <see cref="RadiologyInsights.Annotation"/>. </summary> + /// <param name="id"> Unique id for inter-element referencing. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="authorString"> Individual responsible for the annotation. </param> + /// <param name="time"> When the annotation was made. </param> + /// <param name="text"> The annotation - text content (as markdown). </param> + /// <returns> A new <see cref="RadiologyInsights.Annotation"/> instance for mocking. </returns> + public static Annotation Annotation(string id = null, IEnumerable<Extension> extension = null, string authorString = null, string time = null, string text = null) + { + extension ??= new List<Extension>(); + + return new Annotation(id, extension?.ToList(), authorString, time, text); + } + + /// <summary> Initializes a new instance of <see cref="RadiologyInsights.ObservationReferenceRange"/>. </summary> + /// <param name="low"> Low Range, if relevant. </param> + /// <param name="high"> High Range, if relevant. </param> + /// <param name="type"> Reference range qualifier. </param> + /// <param name="appliesTo"> Reference range population. </param> + /// <param name="age"> Applicable age range, if relevant. </param> + /// <param name="text"> Text based reference range in an observation. </param> + /// <returns> A new <see cref="RadiologyInsights.ObservationReferenceRange"/> instance for mocking. </returns> + public static ObservationReferenceRange ObservationReferenceRange(Quantity low = null, Quantity high = null, CodeableConcept type = null, IEnumerable<CodeableConcept> appliesTo = null, Range age = null, string text = null) + { + appliesTo ??= new List<CodeableConcept>(); + + return new ObservationReferenceRange(low, high, type, appliesTo?.ToList(), age, text); + } + + /// <summary> Initializes a new instance of <see cref="RadiologyInsights.ObservationComponent"/>. </summary> + /// <param name="id"> Unique id for inter-element referencing. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="code"> Type of component observation (code / type). </param> + /// <param name="valueQuantity"> Value as Quantity. </param> + /// <param name="valueCodeableConcept"> Value as CodeableConcept. </param> + /// <param name="valueString"> Value as string. </param> + /// <param name="valueBoolean"> Value as boolean. </param> + /// <param name="valueInteger"> Value as integer. </param> + /// <param name="valueRange"> Value as Range. </param> + /// <param name="valueRatio"> Value as Ratio. </param> + /// <param name="valueSampledData"> Value as SampledData. </param> + /// <param name="valueTime"> Value as time (hh:mm:ss). </param> + /// <param name="valueDateTime"> Value as dateTime. </param> + /// <param name="valuePeriod"> Value as Period. </param> + /// <param name="valueReference"> Value as reference. </param> + /// <param name="dataAbsentReason"> Why the component result is missing. </param> + /// <param name="interpretation"> High, low, normal, etc. </param> + /// <param name="referenceRange"> Provides guide for interpretation of component result. </param> + /// <returns> A new <see cref="RadiologyInsights.ObservationComponent"/> instance for mocking. </returns> + public static ObservationComponent ObservationComponent(string id = null, IEnumerable<Extension> extension = null, CodeableConcept code = null, Quantity valueQuantity = null, CodeableConcept valueCodeableConcept = null, string valueString = null, bool? valueBoolean = null, int? valueInteger = null, Range valueRange = null, Ratio valueRatio = null, SampledData valueSampledData = null, TimeSpan? valueTime = null, string valueDateTime = null, Period valuePeriod = null, Reference valueReference = null, CodeableConcept dataAbsentReason = null, IEnumerable<CodeableConcept> interpretation = null, IEnumerable<ObservationReferenceRange> referenceRange = null) + { + extension ??= new List<Extension>(); + interpretation ??= new List<CodeableConcept>(); + referenceRange ??= new List<ObservationReferenceRange>(); + + return new ObservationComponent(id, extension?.ToList(), code, valueQuantity, valueCodeableConcept, valueString, valueBoolean, valueInteger, valueRange, valueRatio, valueSampledData, valueTime, valueDateTime, valuePeriod, valueReference, dataAbsentReason, interpretation?.ToList(), referenceRange?.ToList()); + } + + /// <summary> Initializes a new instance of <see cref="RadiologyInsights.CriticalResultInference"/>. </summary> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="result"> The complete Critical Result, as outlined below, will be reused for the recommendation. </param> + /// <returns> A new <see cref="RadiologyInsights.CriticalResultInference"/> instance for mocking. </returns> + public static CriticalResultInference CriticalResultInference(IEnumerable<Extension> extension = null, CriticalResult result = null) + { + extension ??= new List<Extension>(); + + return new CriticalResultInference("criticalResult", extension?.ToList(), result); + } + + /// <summary> Initializes a new instance of <see cref="RadiologyInsights.CriticalResult"/>. </summary> + /// <param name="description"> Description : medical problem. </param> + /// <param name="finding"> Finding linked to the critical result. </param> + /// <returns> A new <see cref="RadiologyInsights.CriticalResult"/> instance for mocking. </returns> + public static CriticalResult CriticalResult(string description = null, Observation finding = null) + { + return new CriticalResult(description, finding); + } + + /// <summary> Initializes a new instance of <see cref="RadiologyInsights.RadiologyProcedureInference"/>. </summary> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="procedureCodes"> LOINC codes for the procedure. </param> + /// <param name="imagingProcedures"> Imaging procedures. </param> + /// <param name="orderedProcedure"> Ordered procedure information from the document information or text. </param> + /// <returns> A new <see cref="RadiologyInsights.RadiologyProcedureInference"/> instance for mocking. </returns> + public static RadiologyProcedureInference RadiologyProcedureInference(IEnumerable<Extension> extension = null, IEnumerable<CodeableConcept> procedureCodes = null, IEnumerable<ImagingProcedure> imagingProcedures = null, OrderedProcedure orderedProcedure = null) + { + extension ??= new List<Extension>(); + procedureCodes ??= new List<CodeableConcept>(); + imagingProcedures ??= new List<ImagingProcedure>(); + + return new RadiologyProcedureInference("radiologyProcedure", extension?.ToList(), procedureCodes?.ToList(), imagingProcedures?.ToList(), orderedProcedure); + } + + /// <summary> Initializes a new instance of <see cref="RadiologyInsights.ImagingProcedure"/>. </summary> + /// <param name="modality"> Modality : SNOMED CT code. </param> + /// <param name="anatomy"> Anatomy : SNOMED CT code. </param> + /// <param name="laterality"> Laterality : SNOMED CT code. </param> + /// <param name="contrast"> Contrast : see RadiologyCodeWithTypes (below). </param> + /// <param name="view"> View : see RadiologyCodeWithTypes (below). </param> + /// <returns> A new <see cref="RadiologyInsights.ImagingProcedure"/> instance for mocking. </returns> + public static ImagingProcedure ImagingProcedure(CodeableConcept modality = null, CodeableConcept anatomy = null, CodeableConcept laterality = null, RadiologyCodeWithTypes contrast = null, RadiologyCodeWithTypes view = null) + { + return new ImagingProcedure(modality, anatomy, laterality, contrast, view); + } + + /// <summary> Initializes a new instance of <see cref="RadiologyInsights.RadiologyCodeWithTypes"/>. </summary> + /// <param name="code"> The SNOMED CT code indicates whether imaging was conducted with or without contrast in the case of contrast, and in the case of views, it denotes the number of views. </param> + /// <param name="types"> The collection of types will indicate the contrast substance used in the case of contrast and, in the case of views, it will specify the types of views, such as lateral and frontal, etc. </param> + /// <returns> A new <see cref="RadiologyInsights.RadiologyCodeWithTypes"/> instance for mocking. </returns> + public static RadiologyCodeWithTypes RadiologyCodeWithTypes(CodeableConcept code = null, IEnumerable<CodeableConcept> types = null) + { + types ??= new List<CodeableConcept>(); + + return new RadiologyCodeWithTypes(code, types?.ToList()); + } + + /// <summary> Initializes a new instance of <see cref="RadiologyInsights.FollowupRecommendationInference"/>. </summary> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="effectiveDateTime"> Date and time are displayed when the procedure is recommended to be done at a specific point in time. </param> + /// <param name="effectivePeriod"> The period is shown if a specific period is mentioned, with a start and end date-time. </param> + /// <param name="findings"> Findings related to the recommendation. </param> + /// <param name="isConditional"> The conditional value indicates whether or not the sentence containing the recommendation includes a conditional statement. Keywords for conditional statements include 'if', 'when', 'unless', and so on. </param> + /// <param name="isOption"> The option value indicates whether or not the sentence containing the recommendation includes an optional statement. Keywords for optional statements include 'recommend', 'consider', and so on. </param> + /// <param name="isGuideline"> The guideline value indicates whether or not the recommendation is part of a guideline section that compiles all recommendations applicable to various findings. </param> + /// <param name="isHedging"> Hedging refers to ambiguous, vague or imprecise language within the sentence of the recommendation. Keywords for hedging are 'can be','may be',and so on. </param> + /// <param name="recommendedProcedure"> The procedure recommendation can be a generic procedure or an imaging procedure. </param> + /// <returns> A new <see cref="RadiologyInsights.FollowupRecommendationInference"/> instance for mocking. </returns> + public static FollowupRecommendationInference FollowupRecommendationInference(IEnumerable<Extension> extension = null, string effectiveDateTime = null, Period effectivePeriod = null, IEnumerable<RecommendationFinding> findings = null, bool isConditional = default, bool isOption = default, bool isGuideline = default, bool isHedging = default, ProcedureRecommendation recommendedProcedure = null) + { + extension ??= new List<Extension>(); + findings ??= new List<RecommendationFinding>(); + + return new FollowupRecommendationInference("followupRecommendation", extension?.ToList(), effectiveDateTime, effectivePeriod, findings?.ToList(), isConditional, isOption, isGuideline, isHedging, recommendedProcedure); + } + + /// <summary> Initializes a new instance of <see cref="RadiologyInsights.RecommendationFinding"/>. </summary> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="finding"> Finding linked to a recommendation. </param> + /// <param name="criticalFinding"> Critical result linked to a recommendation. </param> + /// <param name="recommendationFindingStatus"> Recommendation finding status. </param> + /// <returns> A new <see cref="RadiologyInsights.RecommendationFinding"/> instance for mocking. </returns> + public static RecommendationFinding RecommendationFinding(IEnumerable<Extension> extension = null, Observation finding = null, CriticalResult criticalFinding = null, string recommendationFindingStatus = null) + { + extension ??= new List<Extension>(); + + return new RecommendationFinding(extension?.ToList(), finding, criticalFinding, recommendationFindingStatus); + } + + /// <summary> Initializes a new instance of <see cref="RadiologyInsights.GenericProcedureRecommendation"/>. </summary> + /// <param name="code"> Procedure modality : SNOMED CT code. </param> + /// <param name="description"> Procedure description : MANAGEMENT PROCEDURE (PROCEDURE) or CONSULTATION (PROCEDURE) based on SNOMED CT. </param> + /// <returns> A new <see cref="RadiologyInsights.GenericProcedureRecommendation"/> instance for mocking. </returns> + public static GenericProcedureRecommendation GenericProcedureRecommendation(CodeableConcept code = null, string description = null) + { + return new GenericProcedureRecommendation("genericProcedureRecommendation", code, description); + } + + /// <summary> Initializes a new instance of <see cref="RadiologyInsights.ImagingProcedureRecommendation"/>. </summary> + /// <param name="procedureCodes"> LOINC codes for the procedure. </param> + /// <param name="imagingProcedures"> Imaging procedures. </param> + /// <returns> A new <see cref="RadiologyInsights.ImagingProcedureRecommendation"/> instance for mocking. </returns> + public static ImagingProcedureRecommendation ImagingProcedureRecommendation(IEnumerable<CodeableConcept> procedureCodes = null, IEnumerable<ImagingProcedure> imagingProcedures = null) + { + procedureCodes ??= new List<CodeableConcept>(); + imagingProcedures ??= new List<ImagingProcedure>(); + + return new ImagingProcedureRecommendation("imagingProcedureRecommendation", procedureCodes?.ToList(), imagingProcedures?.ToList()); + } + + /// <summary> Initializes a new instance of <see cref="RadiologyInsights.FollowupCommunicationInference"/>. </summary> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="dateTime"> Communication date and time. </param> + /// <param name="recipient"> Recipient of the communication. </param> + /// <param name="wasAcknowledged"> Communication was acknowledged. </param> + /// <returns> A new <see cref="RadiologyInsights.FollowupCommunicationInference"/> instance for mocking. </returns> + public static FollowupCommunicationInference FollowupCommunicationInference(IEnumerable<Extension> extension = null, IEnumerable<DateTimeOffset> dateTime = null, IEnumerable<string> recipient = null, bool wasAcknowledged = default) + { + extension ??= new List<Extension>(); + dateTime ??= new List<DateTimeOffset>(); + recipient ??= new List<string>(); + + return new FollowupCommunicationInference("followupCommunication", extension?.ToList(), dateTime?.ToList(), recipient?.ToList(), wasAcknowledged); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Identifier.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Identifier.Serialization.cs new file mode 100644 index 0000000000000..7b2b2e701056d --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Identifier.Serialization.cs @@ -0,0 +1,165 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class Identifier : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(Use)) + { + writer.WritePropertyName("use"u8); + writer.WriteStringValue(Use); + } + if (Optional.IsDefined(Type)) + { + writer.WritePropertyName("type"u8); + writer.WriteObjectValue(Type); + } + if (Optional.IsDefined(System)) + { + writer.WritePropertyName("system"u8); + writer.WriteStringValue(System); + } + if (Optional.IsDefined(Value)) + { + writer.WritePropertyName("value"u8); + writer.WriteStringValue(Value); + } + if (Optional.IsDefined(Period)) + { + writer.WritePropertyName("period"u8); + writer.WriteObjectValue(Period); + } + if (Optional.IsDefined(Assigner)) + { + writer.WritePropertyName("assigner"u8); + writer.WriteObjectValue(Assigner); + } + writer.WriteEndObject(); + } + + internal static Identifier DeserializeIdentifier(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional<string> id = default; + Optional<IList<Extension>> extension = default; + Optional<string> use = default; + Optional<CodeableConcept> type = default; + Optional<string> system = default; + Optional<string> value = default; + Optional<Period> period = default; + Optional<Reference> assigner = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RadiologyInsights.Extension.DeserializeExtension(item)); + } + extension = array; + continue; + } + if (property.NameEquals("use"u8)) + { + use = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + type = CodeableConcept.DeserializeCodeableConcept(property.Value); + continue; + } + if (property.NameEquals("system"u8)) + { + system = property.Value.GetString(); + continue; + } + if (property.NameEquals("value"u8)) + { + value = property.Value.GetString(); + continue; + } + if (property.NameEquals("period"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + period = Period.DeserializePeriod(property.Value); + continue; + } + if (property.NameEquals("assigner"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + assigner = Reference.DeserializeReference(property.Value); + continue; + } + } + return new Identifier(id.Value, Optional.ToList(extension), use.Value, type.Value, system.Value, value.Value, period.Value, assigner.Value); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static Identifier FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeIdentifier(document.RootElement); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Identifier.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Identifier.cs new file mode 100644 index 0000000000000..4cbafda5d37eb --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Identifier.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> + /// An identifier intended for computation + /// Based on [FHIR Identifier](https://www.hl7.org/fhir/R4/identifier.html) + /// </summary> + public partial class Identifier + { + /// <summary> Initializes a new instance of <see cref="Identifier"/>. </summary> + public Identifier() + { + Extension = new ChangeTrackingList<Extension>(); + } + + /// <summary> Initializes a new instance of <see cref="Identifier"/>. </summary> + /// <param name="id"> Unique id for inter-element referencing. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="use"> usual | official | temp | secondary | old (If known). </param> + /// <param name="type"> Description of identifier. </param> + /// <param name="system"> The namespace for the identifier value. </param> + /// <param name="value"> The value that is unique. </param> + /// <param name="period"> Time period when id is/was valid for use. </param> + /// <param name="assigner"> Organization that issued id (may be just text). </param> + internal Identifier(string id, IList<Extension> extension, string use, CodeableConcept type, string system, string value, Period period, Reference assigner) + { + Id = id; + Extension = extension; + Use = use; + Type = type; + System = system; + Value = value; + Period = period; + Assigner = assigner; + } + + /// <summary> Unique id for inter-element referencing. </summary> + public string Id { get; set; } + /// <summary> Additional Content defined by implementations. </summary> + public IList<Extension> Extension { get; } + /// <summary> usual | official | temp | secondary | old (If known). </summary> + public string Use { get; set; } + /// <summary> Description of identifier. </summary> + public CodeableConcept Type { get; set; } + /// <summary> The namespace for the identifier value. </summary> + public string System { get; set; } + /// <summary> The value that is unique. </summary> + public string Value { get; set; } + /// <summary> Time period when id is/was valid for use. </summary> + public Period Period { get; set; } + /// <summary> Organization that issued id (may be just text). </summary> + public Reference Assigner { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ImagingProcedure.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ImagingProcedure.Serialization.cs new file mode 100644 index 0000000000000..f75fccbdc1aa9 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ImagingProcedure.Serialization.cs @@ -0,0 +1,78 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class ImagingProcedure + { + internal static ImagingProcedure DeserializeImagingProcedure(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + CodeableConcept modality = default; + CodeableConcept anatomy = default; + Optional<CodeableConcept> laterality = default; + Optional<RadiologyCodeWithTypes> contrast = default; + Optional<RadiologyCodeWithTypes> view = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("modality"u8)) + { + modality = CodeableConcept.DeserializeCodeableConcept(property.Value); + continue; + } + if (property.NameEquals("anatomy"u8)) + { + anatomy = CodeableConcept.DeserializeCodeableConcept(property.Value); + continue; + } + if (property.NameEquals("laterality"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + laterality = CodeableConcept.DeserializeCodeableConcept(property.Value); + continue; + } + if (property.NameEquals("contrast"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + contrast = RadiologyCodeWithTypes.DeserializeRadiologyCodeWithTypes(property.Value); + continue; + } + if (property.NameEquals("view"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + view = RadiologyCodeWithTypes.DeserializeRadiologyCodeWithTypes(property.Value); + continue; + } + } + return new ImagingProcedure(modality, anatomy, laterality.Value, contrast.Value, view.Value); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static ImagingProcedure FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeImagingProcedure(document.RootElement); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ImagingProcedure.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ImagingProcedure.cs new file mode 100644 index 0000000000000..11c077bb19fd4 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ImagingProcedure.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> Imaging procedure. </summary> + public partial class ImagingProcedure + { + /// <summary> Initializes a new instance of <see cref="ImagingProcedure"/>. </summary> + /// <param name="modality"> Modality : SNOMED CT code. </param> + /// <param name="anatomy"> Anatomy : SNOMED CT code. </param> + /// <exception cref="ArgumentNullException"> <paramref name="modality"/> or <paramref name="anatomy"/> is null. </exception> + internal ImagingProcedure(CodeableConcept modality, CodeableConcept anatomy) + { + Argument.AssertNotNull(modality, nameof(modality)); + Argument.AssertNotNull(anatomy, nameof(anatomy)); + + Modality = modality; + Anatomy = anatomy; + } + + /// <summary> Initializes a new instance of <see cref="ImagingProcedure"/>. </summary> + /// <param name="modality"> Modality : SNOMED CT code. </param> + /// <param name="anatomy"> Anatomy : SNOMED CT code. </param> + /// <param name="laterality"> Laterality : SNOMED CT code. </param> + /// <param name="contrast"> Contrast : see RadiologyCodeWithTypes (below). </param> + /// <param name="view"> View : see RadiologyCodeWithTypes (below). </param> + internal ImagingProcedure(CodeableConcept modality, CodeableConcept anatomy, CodeableConcept laterality, RadiologyCodeWithTypes contrast, RadiologyCodeWithTypes view) + { + Modality = modality; + Anatomy = anatomy; + Laterality = laterality; + Contrast = contrast; + View = view; + } + + /// <summary> Modality : SNOMED CT code. </summary> + public CodeableConcept Modality { get; } + /// <summary> Anatomy : SNOMED CT code. </summary> + public CodeableConcept Anatomy { get; } + /// <summary> Laterality : SNOMED CT code. </summary> + public CodeableConcept Laterality { get; } + /// <summary> Contrast : see RadiologyCodeWithTypes (below). </summary> + public RadiologyCodeWithTypes Contrast { get; } + /// <summary> View : see RadiologyCodeWithTypes (below). </summary> + public RadiologyCodeWithTypes View { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ImagingProcedureRecommendation.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ImagingProcedureRecommendation.Serialization.cs new file mode 100644 index 0000000000000..c47162b47633a --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ImagingProcedureRecommendation.Serialization.cs @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class ImagingProcedureRecommendation + { + internal static ImagingProcedureRecommendation DeserializeImagingProcedureRecommendation(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional<IReadOnlyList<CodeableConcept>> procedureCodes = default; + IReadOnlyList<ImagingProcedure> imagingProcedures = default; + string kind = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("procedureCodes"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<CodeableConcept> array = new List<CodeableConcept>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(CodeableConcept.DeserializeCodeableConcept(item)); + } + procedureCodes = array; + continue; + } + if (property.NameEquals("imagingProcedures"u8)) + { + List<ImagingProcedure> array = new List<ImagingProcedure>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(ImagingProcedure.DeserializeImagingProcedure(item)); + } + imagingProcedures = array; + continue; + } + if (property.NameEquals("kind"u8)) + { + kind = property.Value.GetString(); + continue; + } + } + return new ImagingProcedureRecommendation(kind, Optional.ToList(procedureCodes), imagingProcedures); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static new ImagingProcedureRecommendation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeImagingProcedureRecommendation(document.RootElement); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ImagingProcedureRecommendation.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ImagingProcedureRecommendation.cs new file mode 100644 index 0000000000000..b8eb8cfc1a54d --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ImagingProcedureRecommendation.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> Imaging procedures. </summary> + public partial class ImagingProcedureRecommendation : ProcedureRecommendation + { + /// <summary> Initializes a new instance of <see cref="ImagingProcedureRecommendation"/>. </summary> + /// <param name="imagingProcedures"> Imaging procedures. </param> + /// <exception cref="ArgumentNullException"> <paramref name="imagingProcedures"/> is null. </exception> + internal ImagingProcedureRecommendation(IEnumerable<ImagingProcedure> imagingProcedures) + { + Argument.AssertNotNull(imagingProcedures, nameof(imagingProcedures)); + + Kind = "imagingProcedureRecommendation"; + ProcedureCodes = new ChangeTrackingList<CodeableConcept>(); + ImagingProcedures = imagingProcedures.ToList(); + } + + /// <summary> Initializes a new instance of <see cref="ImagingProcedureRecommendation"/>. </summary> + /// <param name="kind"> Discriminator. </param> + /// <param name="procedureCodes"> LOINC codes for the procedure. </param> + /// <param name="imagingProcedures"> Imaging procedures. </param> + internal ImagingProcedureRecommendation(string kind, IReadOnlyList<CodeableConcept> procedureCodes, IReadOnlyList<ImagingProcedure> imagingProcedures) : base(kind) + { + ProcedureCodes = procedureCodes; + ImagingProcedures = imagingProcedures; + } + + /// <summary> LOINC codes for the procedure. </summary> + public IReadOnlyList<CodeableConcept> ProcedureCodes { get; } + /// <summary> Imaging procedures. </summary> + public IReadOnlyList<ImagingProcedure> ImagingProcedures { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/LateralityDiscrepancyInference.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/LateralityDiscrepancyInference.Serialization.cs new file mode 100644 index 0000000000000..81b32f7e267f5 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/LateralityDiscrepancyInference.Serialization.cs @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class LateralityDiscrepancyInference + { + internal static LateralityDiscrepancyInference DeserializeLateralityDiscrepancyInference(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional<CodeableConcept> lateralityIndication = default; + string discrepancyType = default; + string kind = default; + Optional<IReadOnlyList<Extension>> extension = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("lateralityIndication"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + lateralityIndication = CodeableConcept.DeserializeCodeableConcept(property.Value); + continue; + } + if (property.NameEquals("discrepancyType"u8)) + { + discrepancyType = property.Value.GetString(); + continue; + } + if (property.NameEquals("kind"u8)) + { + kind = property.Value.GetString(); + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RadiologyInsights.Extension.DeserializeExtension(item)); + } + extension = array; + continue; + } + } + return new LateralityDiscrepancyInference(kind, Optional.ToList(extension), lateralityIndication.Value, discrepancyType); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static new LateralityDiscrepancyInference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLateralityDiscrepancyInference(document.RootElement); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/LateralityDiscrepancyInference.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/LateralityDiscrepancyInference.cs new file mode 100644 index 0000000000000..352ae7f532fbd --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/LateralityDiscrepancyInference.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> A laterality mismatch occurs when there is a discrepancy between the clinical documentation and the ordered procedure (orderLateralityMismatch), a contradiction within the clinical document (textLateralityContradiction), or when no laterality is mentioned (textLateralityMissing). </summary> + public partial class LateralityDiscrepancyInference : RadiologyInsightsInference + { + /// <summary> Initializes a new instance of <see cref="LateralityDiscrepancyInference"/>. </summary> + /// <param name="discrepancyType"> Mismatch type : orderLateralityMismatch, textLateralityContradiction, textLateralityMissing. </param> + /// <exception cref="ArgumentNullException"> <paramref name="discrepancyType"/> is null. </exception> + internal LateralityDiscrepancyInference(string discrepancyType) + { + Argument.AssertNotNull(discrepancyType, nameof(discrepancyType)); + + Kind = "lateralityDiscrepancy"; + DiscrepancyType = discrepancyType; + } + + /// <summary> Initializes a new instance of <see cref="LateralityDiscrepancyInference"/>. </summary> + /// <param name="kind"> Discriminator. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="lateralityIndication"> Laterality indication : SNOMED CT code for laterality qualifier value. </param> + /// <param name="discrepancyType"> Mismatch type : orderLateralityMismatch, textLateralityContradiction, textLateralityMissing. </param> + internal LateralityDiscrepancyInference(string kind, IReadOnlyList<Extension> extension, CodeableConcept lateralityIndication, string discrepancyType) : base(kind, extension) + { + LateralityIndication = lateralityIndication; + DiscrepancyType = discrepancyType; + } + + /// <summary> Laterality indication : SNOMED CT code for laterality qualifier value. </summary> + public CodeableConcept LateralityIndication { get; } + /// <summary> Mismatch type : orderLateralityMismatch, textLateralityContradiction, textLateralityMissing. </summary> + public string DiscrepancyType { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/LimitedOrderDiscrepancyInference.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/LimitedOrderDiscrepancyInference.Serialization.cs new file mode 100644 index 0000000000000..c5370adf0de63 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/LimitedOrderDiscrepancyInference.Serialization.cs @@ -0,0 +1,94 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class LimitedOrderDiscrepancyInference + { + internal static LimitedOrderDiscrepancyInference DeserializeLimitedOrderDiscrepancyInference(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + CodeableConcept orderType = default; + Optional<IReadOnlyList<CodeableConcept>> presentBodyParts = default; + Optional<IReadOnlyList<CodeableConcept>> presentBodyPartMeasurements = default; + string kind = default; + Optional<IReadOnlyList<Extension>> extension = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("orderType"u8)) + { + orderType = CodeableConcept.DeserializeCodeableConcept(property.Value); + continue; + } + if (property.NameEquals("presentBodyParts"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<CodeableConcept> array = new List<CodeableConcept>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(CodeableConcept.DeserializeCodeableConcept(item)); + } + presentBodyParts = array; + continue; + } + if (property.NameEquals("presentBodyPartMeasurements"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<CodeableConcept> array = new List<CodeableConcept>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(CodeableConcept.DeserializeCodeableConcept(item)); + } + presentBodyPartMeasurements = array; + continue; + } + if (property.NameEquals("kind"u8)) + { + kind = property.Value.GetString(); + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RadiologyInsights.Extension.DeserializeExtension(item)); + } + extension = array; + continue; + } + } + return new LimitedOrderDiscrepancyInference(kind, Optional.ToList(extension), orderType, Optional.ToList(presentBodyParts), Optional.ToList(presentBodyPartMeasurements)); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static new LimitedOrderDiscrepancyInference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLimitedOrderDiscrepancyInference(document.RootElement); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/LimitedOrderDiscrepancyInference.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/LimitedOrderDiscrepancyInference.cs new file mode 100644 index 0000000000000..5b21c4f044bf9 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/LimitedOrderDiscrepancyInference.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> A limited order discrepancy occurs when there is a limited order, but all body parts and measurements that are needed for a complete order are present in the document. </summary> + public partial class LimitedOrderDiscrepancyInference : RadiologyInsightsInference + { + /// <summary> Initializes a new instance of <see cref="LimitedOrderDiscrepancyInference"/>. </summary> + /// <param name="orderType"> Order type : CPT ultrasound complete code for abdomen, retroperitoneal, pelvis or breast. </param> + /// <exception cref="ArgumentNullException"> <paramref name="orderType"/> is null. </exception> + internal LimitedOrderDiscrepancyInference(CodeableConcept orderType) + { + Argument.AssertNotNull(orderType, nameof(orderType)); + + Kind = "limitedOrderDiscrepancy"; + OrderType = orderType; + PresentBodyParts = new ChangeTrackingList<CodeableConcept>(); + PresentBodyPartMeasurements = new ChangeTrackingList<CodeableConcept>(); + } + + /// <summary> Initializes a new instance of <see cref="LimitedOrderDiscrepancyInference"/>. </summary> + /// <param name="kind"> Discriminator. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="orderType"> Order type : CPT ultrasound complete code for abdomen, retroperitoneal, pelvis or breast. </param> + /// <param name="presentBodyParts"> List of body parts found in the document : SNOMED CT codes. </param> + /// <param name="presentBodyPartMeasurements"> List of body parts that are measured according to the document : SNOMED CT codes. </param> + internal LimitedOrderDiscrepancyInference(string kind, IReadOnlyList<Extension> extension, CodeableConcept orderType, IReadOnlyList<CodeableConcept> presentBodyParts, IReadOnlyList<CodeableConcept> presentBodyPartMeasurements) : base(kind, extension) + { + OrderType = orderType; + PresentBodyParts = presentBodyParts; + PresentBodyPartMeasurements = presentBodyPartMeasurements; + } + + /// <summary> Order type : CPT ultrasound complete code for abdomen, retroperitoneal, pelvis or breast. </summary> + public CodeableConcept OrderType { get; } + /// <summary> List of body parts found in the document : SNOMED CT codes. </summary> + public IReadOnlyList<CodeableConcept> PresentBodyParts { get; } + /// <summary> List of body parts that are measured according to the document : SNOMED CT codes. </summary> + public IReadOnlyList<CodeableConcept> PresentBodyPartMeasurements { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Meta.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Meta.Serialization.cs new file mode 100644 index 0000000000000..55082121c8c77 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Meta.Serialization.cs @@ -0,0 +1,159 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class Meta : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(VersionId)) + { + writer.WritePropertyName("versionId"u8); + writer.WriteStringValue(VersionId); + } + if (Optional.IsDefined(LastUpdated)) + { + writer.WritePropertyName("lastUpdated"u8); + writer.WriteStringValue(LastUpdated); + } + if (Optional.IsDefined(Source)) + { + writer.WritePropertyName("source"u8); + writer.WriteStringValue(Source); + } + if (Optional.IsCollectionDefined(Profile)) + { + writer.WritePropertyName("profile"u8); + writer.WriteStartArray(); + foreach (var item in Profile) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(Security)) + { + writer.WritePropertyName("security"u8); + writer.WriteStartArray(); + foreach (var item in Security) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(Tag)) + { + writer.WritePropertyName("tag"u8); + writer.WriteStartArray(); + foreach (var item in Tag) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + + internal static Meta DeserializeMeta(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional<string> versionId = default; + Optional<string> lastUpdated = default; + Optional<string> source = default; + Optional<IList<string>> profile = default; + Optional<IList<Coding>> security = default; + Optional<IList<Coding>> tag = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("versionId"u8)) + { + versionId = property.Value.GetString(); + continue; + } + if (property.NameEquals("lastUpdated"u8)) + { + lastUpdated = property.Value.GetString(); + continue; + } + if (property.NameEquals("source"u8)) + { + source = property.Value.GetString(); + continue; + } + if (property.NameEquals("profile"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<string> array = new List<string>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + profile = array; + continue; + } + if (property.NameEquals("security"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Coding> array = new List<Coding>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(Coding.DeserializeCoding(item)); + } + security = array; + continue; + } + if (property.NameEquals("tag"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Coding> array = new List<Coding>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(Coding.DeserializeCoding(item)); + } + tag = array; + continue; + } + } + return new Meta(versionId.Value, lastUpdated.Value, source.Value, Optional.ToList(profile), Optional.ToList(security), Optional.ToList(tag)); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static Meta FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMeta(document.RootElement); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Meta.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Meta.cs new file mode 100644 index 0000000000000..87347b55b4979 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Meta.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> + /// Metadata about a resource + /// Based on [FHIR Meta](https://www.hl7.org/fhir/R4/resource.html#Meta) + /// </summary> + public partial class Meta + { + /// <summary> Initializes a new instance of <see cref="Meta"/>. </summary> + public Meta() + { + Profile = new ChangeTrackingList<string>(); + Security = new ChangeTrackingList<Coding>(); + Tag = new ChangeTrackingList<Coding>(); + } + + /// <summary> Initializes a new instance of <see cref="Meta"/>. </summary> + /// <param name="versionId"> The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted. </param> + /// <param name="lastUpdated"> When the resource last changed - e.g. when the version changed. </param> + /// <param name="source"> A uri that identifies the source system of the resource. This provides a minimal amount of Provenance information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc. </param> + /// <param name="profile"> A list of profiles (references to [StructureDefinition](https://www.hl7.org/fhir/structuredefinition.html) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](https://www.hl7.org/fhir/structuredefinition-definitions.html#StructureDefinition.url). </param> + /// <param name="security"> Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure. </param> + /// <param name="tag"> Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource. </param> + internal Meta(string versionId, string lastUpdated, string source, IList<string> profile, IList<Coding> security, IList<Coding> tag) + { + VersionId = versionId; + LastUpdated = lastUpdated; + Source = source; + Profile = profile; + Security = security; + Tag = tag; + } + + /// <summary> The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted. </summary> + public string VersionId { get; set; } + /// <summary> When the resource last changed - e.g. when the version changed. </summary> + public string LastUpdated { get; set; } + /// <summary> A uri that identifies the source system of the resource. This provides a minimal amount of Provenance information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc. </summary> + public string Source { get; set; } + /// <summary> A list of profiles (references to [StructureDefinition](https://www.hl7.org/fhir/structuredefinition.html) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](https://www.hl7.org/fhir/structuredefinition-definitions.html#StructureDefinition.url). </summary> + public IList<string> Profile { get; } + /// <summary> Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure. </summary> + public IList<Coding> Security { get; } + /// <summary> Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource. </summary> + public IList<Coding> Tag { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Narrative.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Narrative.Serialization.cs new file mode 100644 index 0000000000000..ff47aacf8d7bc --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Narrative.Serialization.cs @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class Narrative + { + internal static Narrative DeserializeNarrative(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional<string> id = default; + Optional<IReadOnlyList<Extension>> extension = default; + string status = default; + string div = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RadiologyInsights.Extension.DeserializeExtension(item)); + } + extension = array; + continue; + } + if (property.NameEquals("status"u8)) + { + status = property.Value.GetString(); + continue; + } + if (property.NameEquals("div"u8)) + { + div = property.Value.GetString(); + continue; + } + } + return new Narrative(id.Value, Optional.ToList(extension), status, div); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static Narrative FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeNarrative(document.RootElement); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Narrative.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Narrative.cs new file mode 100644 index 0000000000000..54cb42db24e98 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Narrative.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> + /// Any resource that is a [DomainResource](https://www.hl7.org/fhir/domainresource.html) may include a human-readable narrative that contains a summary of the resource and may be used to represent the content of the resource to a human. + /// Based on [FHIR Narrative](https://www.hl7.org/fhir/R4/narrative.html#Narrative) + /// </summary> + public partial class Narrative + { + /// <summary> Initializes a new instance of <see cref="Narrative"/>. </summary> + /// <param name="status"> generated, extensions, additional, empty. </param> + /// <param name="div"> xhtml. </param> + /// <exception cref="ArgumentNullException"> <paramref name="status"/> or <paramref name="div"/> is null. </exception> + internal Narrative(string status, string div) + { + Argument.AssertNotNull(status, nameof(status)); + Argument.AssertNotNull(div, nameof(div)); + + Extension = new ChangeTrackingList<Extension>(); + Status = status; + Div = div; + } + + /// <summary> Initializes a new instance of <see cref="Narrative"/>. </summary> + /// <param name="id"> Unique id for inter-element referencing. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="status"> generated, extensions, additional, empty. </param> + /// <param name="div"> xhtml. </param> + internal Narrative(string id, IReadOnlyList<Extension> extension, string status, string div) + { + Id = id; + Extension = extension; + Status = status; + Div = div; + } + + /// <summary> Unique id for inter-element referencing. </summary> + public string Id { get; } + /// <summary> Additional Content defined by implementations. </summary> + public IReadOnlyList<Extension> Extension { get; } + /// <summary> generated, extensions, additional, empty. </summary> + public string Status { get; } + /// <summary> xhtml. </summary> + public string Div { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Observation.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Observation.Serialization.cs new file mode 100644 index 0000000000000..0c0c1f2e93b67 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Observation.Serialization.cs @@ -0,0 +1,443 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class Observation + { + internal static Observation DeserializeObservation(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional<IReadOnlyList<Identifier>> identifier = default; + string status = default; + Optional<IReadOnlyList<CodeableConcept>> category = default; + CodeableConcept code = default; + Optional<Reference> subject = default; + Optional<Reference> encounter = default; + Optional<string> effectiveDateTime = default; + Optional<Period> effectivePeriod = default; + Optional<string> effectiveInstant = default; + Optional<string> issued = default; + Optional<Quantity> valueQuantity = default; + Optional<CodeableConcept> valueCodeableConcept = default; + Optional<string> valueString = default; + Optional<bool> valueBoolean = default; + Optional<int> valueInteger = default; + Optional<Range> valueRange = default; + Optional<Ratio> valueRatio = default; + Optional<SampledData> valueSampledData = default; + Optional<TimeSpan> valueTime = default; + Optional<string> valueDateTime = default; + Optional<Period> valuePeriod = default; + Optional<CodeableConcept> dataAbsentReason = default; + Optional<IReadOnlyList<CodeableConcept>> interpretation = default; + Optional<IReadOnlyList<Annotation>> note = default; + Optional<CodeableConcept> bodySite = default; + Optional<CodeableConcept> method = default; + Optional<IReadOnlyList<ObservationReferenceRange>> referenceRange = default; + Optional<IReadOnlyList<Reference>> hasMember = default; + Optional<IReadOnlyList<Reference>> derivedFrom = default; + Optional<IReadOnlyList<ObservationComponent>> component = default; + string resourceType = default; + Optional<string> id = default; + Optional<Meta> meta = default; + Optional<string> implicitRules = default; + Optional<string> language = default; + Optional<Narrative> text = default; + Optional<IReadOnlyList<Resource>> contained = default; + Optional<IReadOnlyList<Extension>> extension = default; + Optional<IReadOnlyList<Extension>> modifierExtension = default; + IReadOnlyDictionary<string, BinaryData> additionalProperties = default; + Dictionary<string, BinaryData> additionalPropertiesDictionary = new Dictionary<string, BinaryData>(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("identifier"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Identifier> array = new List<Identifier>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RadiologyInsights.Identifier.DeserializeIdentifier(item)); + } + identifier = array; + continue; + } + if (property.NameEquals("status"u8)) + { + status = property.Value.GetString(); + continue; + } + if (property.NameEquals("category"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<CodeableConcept> array = new List<CodeableConcept>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(CodeableConcept.DeserializeCodeableConcept(item)); + } + category = array; + continue; + } + if (property.NameEquals("code"u8)) + { + code = CodeableConcept.DeserializeCodeableConcept(property.Value); + continue; + } + if (property.NameEquals("subject"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + subject = Reference.DeserializeReference(property.Value); + continue; + } + if (property.NameEquals("encounter"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + encounter = Reference.DeserializeReference(property.Value); + continue; + } + if (property.NameEquals("effectiveDateTime"u8)) + { + effectiveDateTime = property.Value.GetString(); + continue; + } + if (property.NameEquals("effectivePeriod"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + effectivePeriod = Period.DeserializePeriod(property.Value); + continue; + } + if (property.NameEquals("effectiveInstant"u8)) + { + effectiveInstant = property.Value.GetString(); + continue; + } + if (property.NameEquals("issued"u8)) + { + issued = property.Value.GetString(); + continue; + } + if (property.NameEquals("valueQuantity"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valueQuantity = Quantity.DeserializeQuantity(property.Value); + continue; + } + if (property.NameEquals("valueCodeableConcept"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valueCodeableConcept = CodeableConcept.DeserializeCodeableConcept(property.Value); + continue; + } + if (property.NameEquals("valueString"u8)) + { + valueString = property.Value.GetString(); + continue; + } + if (property.NameEquals("valueBoolean"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valueBoolean = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("valueInteger"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valueInteger = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("valueRange"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valueRange = Range.DeserializeRange(property.Value); + continue; + } + if (property.NameEquals("valueRatio"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valueRatio = Ratio.DeserializeRatio(property.Value); + continue; + } + if (property.NameEquals("valueSampledData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valueSampledData = SampledData.DeserializeSampledData(property.Value); + continue; + } + if (property.NameEquals("valueTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valueTime = property.Value.GetTimeSpan("T"); + continue; + } + if (property.NameEquals("valueDateTime"u8)) + { + valueDateTime = property.Value.GetString(); + continue; + } + if (property.NameEquals("valuePeriod"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valuePeriod = Period.DeserializePeriod(property.Value); + continue; + } + if (property.NameEquals("dataAbsentReason"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + dataAbsentReason = CodeableConcept.DeserializeCodeableConcept(property.Value); + continue; + } + if (property.NameEquals("interpretation"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<CodeableConcept> array = new List<CodeableConcept>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(CodeableConcept.DeserializeCodeableConcept(item)); + } + interpretation = array; + continue; + } + if (property.NameEquals("note"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Annotation> array = new List<Annotation>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(Annotation.DeserializeAnnotation(item)); + } + note = array; + continue; + } + if (property.NameEquals("bodySite"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + bodySite = CodeableConcept.DeserializeCodeableConcept(property.Value); + continue; + } + if (property.NameEquals("method"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + method = CodeableConcept.DeserializeCodeableConcept(property.Value); + continue; + } + if (property.NameEquals("referenceRange"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<ObservationReferenceRange> array = new List<ObservationReferenceRange>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(ObservationReferenceRange.DeserializeObservationReferenceRange(item)); + } + referenceRange = array; + continue; + } + if (property.NameEquals("hasMember"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Reference> array = new List<Reference>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(Reference.DeserializeReference(item)); + } + hasMember = array; + continue; + } + if (property.NameEquals("derivedFrom"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Reference> array = new List<Reference>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(Reference.DeserializeReference(item)); + } + derivedFrom = array; + continue; + } + if (property.NameEquals("component"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<ObservationComponent> array = new List<ObservationComponent>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(ObservationComponent.DeserializeObservationComponent(item)); + } + component = array; + continue; + } + if (property.NameEquals("resourceType"u8)) + { + resourceType = property.Value.GetString(); + continue; + } + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("meta"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + meta = Meta.DeserializeMeta(property.Value); + continue; + } + if (property.NameEquals("implicitRules"u8)) + { + implicitRules = property.Value.GetString(); + continue; + } + if (property.NameEquals("language"u8)) + { + language = property.Value.GetString(); + continue; + } + if (property.NameEquals("text"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + text = Narrative.DeserializeNarrative(property.Value); + continue; + } + if (property.NameEquals("contained"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Resource> array = new List<Resource>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(Resource.DeserializeResource(item)); + } + contained = array; + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RadiologyInsights.Extension.DeserializeExtension(item)); + } + extension = array; + continue; + } + if (property.NameEquals("modifierExtension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RadiologyInsights.Extension.DeserializeExtension(item)); + } + modifierExtension = array; + continue; + } + additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + additionalProperties = additionalPropertiesDictionary; + return new Observation(resourceType, id.Value, meta.Value, implicitRules.Value, language.Value, text.Value, Optional.ToList(contained), Optional.ToList(extension), Optional.ToList(modifierExtension), additionalProperties, Optional.ToList(identifier), status, Optional.ToList(category), code, subject.Value, encounter.Value, effectiveDateTime.Value, effectivePeriod.Value, effectiveInstant.Value, issued.Value, valueQuantity.Value, valueCodeableConcept.Value, valueString.Value, Optional.ToNullable(valueBoolean), Optional.ToNullable(valueInteger), valueRange.Value, valueRatio.Value, valueSampledData.Value, Optional.ToNullable(valueTime), valueDateTime.Value, valuePeriod.Value, dataAbsentReason.Value, Optional.ToList(interpretation), Optional.ToList(note), bodySite.Value, method.Value, Optional.ToList(referenceRange), Optional.ToList(hasMember), Optional.ToList(derivedFrom), Optional.ToList(component)); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static Observation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeObservation(document.RootElement); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Observation.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Observation.cs new file mode 100644 index 0000000000000..a002f93089ed3 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Observation.cs @@ -0,0 +1,178 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> + /// Detailed information about observations + /// Based on [FHIR Observation](https://www.hl7.org/fhir/R4/observation.html) + /// </summary> + public partial class Observation : DomainResource + { + /// <summary> Initializes a new instance of <see cref="Observation"/>. </summary> + /// <param name="status"> registered | preliminary | final | amended +. </param> + /// <param name="code"> Type of observation (code / type). </param> + /// <exception cref="ArgumentNullException"> <paramref name="status"/> or <paramref name="code"/> is null. </exception> + internal Observation(string status, CodeableConcept code) + { + Argument.AssertNotNull(status, nameof(status)); + Argument.AssertNotNull(code, nameof(code)); + + ResourceType = "Observation"; + Identifier = new ChangeTrackingList<Identifier>(); + Status = status; + Category = new ChangeTrackingList<CodeableConcept>(); + Code = code; + Interpretation = new ChangeTrackingList<CodeableConcept>(); + Note = new ChangeTrackingList<Annotation>(); + ReferenceRange = new ChangeTrackingList<ObservationReferenceRange>(); + HasMember = new ChangeTrackingList<Reference>(); + DerivedFrom = new ChangeTrackingList<Reference>(); + Component = new ChangeTrackingList<ObservationComponent>(); + } + + /// <summary> Initializes a new instance of <see cref="Observation"/>. </summary> + /// <param name="resourceType"> The type of resource. </param> + /// <param name="id"> Resource Id. </param> + /// <param name="meta"> Metadata about the resource. </param> + /// <param name="implicitRules"> A set of rules under which this content was created. </param> + /// <param name="language"> Language of the resource content. </param> + /// <param name="text"> Text summary of the resource, for human interpretation. </param> + /// <param name="contained"> Contained, inline Resources. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="modifierExtension"> Extensions that cannot be ignored. </param> + /// <param name="additionalProperties"> Additional Properties. </param> + /// <param name="identifier"> Business Identifier for observation. </param> + /// <param name="status"> registered | preliminary | final | amended +. </param> + /// <param name="category"> Classification of type of observation. </param> + /// <param name="code"> Type of observation (code / type). </param> + /// <param name="subject"> Who and/or what the observation is about. </param> + /// <param name="encounter"> Healthcare event during which this observation is made. </param> + /// <param name="effectiveDateTime"> Clinically relevant time/time-period for observation. </param> + /// <param name="effectivePeriod"> Clinically relevant time/time-period for observation. </param> + /// <param name="effectiveInstant"> Clinically relevant time/time-period for observation. </param> + /// <param name="issued"> Date/Time this version was made available. </param> + /// <param name="valueQuantity"> Actual result. </param> + /// <param name="valueCodeableConcept"> Actual result. </param> + /// <param name="valueString"> Actual result. </param> + /// <param name="valueBoolean"> Actual result. </param> + /// <param name="valueInteger"> Actual result. </param> + /// <param name="valueRange"> Actual result. </param> + /// <param name="valueRatio"> Actual result. </param> + /// <param name="valueSampledData"> Actual result. </param> + /// <param name="valueTime"> Actual result. </param> + /// <param name="valueDateTime"> Actual result. </param> + /// <param name="valuePeriod"> Actual result. </param> + /// <param name="dataAbsentReason"> Why the result is missing. </param> + /// <param name="interpretation"> High, low, normal, etc. </param> + /// <param name="note"> Comments about the observation. </param> + /// <param name="bodySite"> Observed body part. </param> + /// <param name="method"> How it was done. </param> + /// <param name="referenceRange"> Provides guide for interpretation. </param> + /// <param name="hasMember"> Related resource that belongs to the Observation group. </param> + /// <param name="derivedFrom"> Related measurements the observation is made from. </param> + /// <param name="component"> Component results. </param> + internal Observation(string resourceType, string id, Meta meta, string implicitRules, string language, Narrative text, IReadOnlyList<Resource> contained, IReadOnlyList<Extension> extension, IReadOnlyList<Extension> modifierExtension, IReadOnlyDictionary<string, BinaryData> additionalProperties, IReadOnlyList<Identifier> identifier, string status, IReadOnlyList<CodeableConcept> category, CodeableConcept code, Reference subject, Reference encounter, string effectiveDateTime, Period effectivePeriod, string effectiveInstant, string issued, Quantity valueQuantity, CodeableConcept valueCodeableConcept, string valueString, bool? valueBoolean, int? valueInteger, Range valueRange, Ratio valueRatio, SampledData valueSampledData, TimeSpan? valueTime, string valueDateTime, Period valuePeriod, CodeableConcept dataAbsentReason, IReadOnlyList<CodeableConcept> interpretation, IReadOnlyList<Annotation> note, CodeableConcept bodySite, CodeableConcept method, IReadOnlyList<ObservationReferenceRange> referenceRange, IReadOnlyList<Reference> hasMember, IReadOnlyList<Reference> derivedFrom, IReadOnlyList<ObservationComponent> component) : base(resourceType, id, meta, implicitRules, language, text, contained, extension, modifierExtension, additionalProperties) + { + Identifier = identifier; + Status = status; + Category = category; + Code = code; + Subject = subject; + Encounter = encounter; + EffectiveDateTime = effectiveDateTime; + EffectivePeriod = effectivePeriod; + EffectiveInstant = effectiveInstant; + Issued = issued; + ValueQuantity = valueQuantity; + ValueCodeableConcept = valueCodeableConcept; + ValueString = valueString; + ValueBoolean = valueBoolean; + ValueInteger = valueInteger; + ValueRange = valueRange; + ValueRatio = valueRatio; + ValueSampledData = valueSampledData; + ValueTime = valueTime; + ValueDateTime = valueDateTime; + ValuePeriod = valuePeriod; + DataAbsentReason = dataAbsentReason; + Interpretation = interpretation; + Note = note; + BodySite = bodySite; + Method = method; + ReferenceRange = referenceRange; + HasMember = hasMember; + DerivedFrom = derivedFrom; + Component = component; + } + + /// <summary> Business Identifier for observation. </summary> + public IReadOnlyList<Identifier> Identifier { get; } + /// <summary> registered | preliminary | final | amended +. </summary> + public string Status { get; } + /// <summary> Classification of type of observation. </summary> + public IReadOnlyList<CodeableConcept> Category { get; } + /// <summary> Type of observation (code / type). </summary> + public CodeableConcept Code { get; } + /// <summary> Who and/or what the observation is about. </summary> + public Reference Subject { get; } + /// <summary> Healthcare event during which this observation is made. </summary> + public Reference Encounter { get; } + /// <summary> Clinically relevant time/time-period for observation. </summary> + public string EffectiveDateTime { get; } + /// <summary> Clinically relevant time/time-period for observation. </summary> + public Period EffectivePeriod { get; } + /// <summary> Clinically relevant time/time-period for observation. </summary> + public string EffectiveInstant { get; } + /// <summary> Date/Time this version was made available. </summary> + public string Issued { get; } + /// <summary> Actual result. </summary> + public Quantity ValueQuantity { get; } + /// <summary> Actual result. </summary> + public CodeableConcept ValueCodeableConcept { get; } + /// <summary> Actual result. </summary> + public string ValueString { get; } + /// <summary> Actual result. </summary> + public bool? ValueBoolean { get; } + /// <summary> Actual result. </summary> + public int? ValueInteger { get; } + /// <summary> Actual result. </summary> + public Range ValueRange { get; } + /// <summary> Actual result. </summary> + public Ratio ValueRatio { get; } + /// <summary> Actual result. </summary> + public SampledData ValueSampledData { get; } + /// <summary> Actual result. </summary> + public TimeSpan? ValueTime { get; } + /// <summary> Actual result. </summary> + public string ValueDateTime { get; } + /// <summary> Actual result. </summary> + public Period ValuePeriod { get; } + /// <summary> Why the result is missing. </summary> + public CodeableConcept DataAbsentReason { get; } + /// <summary> High, low, normal, etc. </summary> + public IReadOnlyList<CodeableConcept> Interpretation { get; } + /// <summary> Comments about the observation. </summary> + public IReadOnlyList<Annotation> Note { get; } + /// <summary> Observed body part. </summary> + public CodeableConcept BodySite { get; } + /// <summary> How it was done. </summary> + public CodeableConcept Method { get; } + /// <summary> Provides guide for interpretation. </summary> + public IReadOnlyList<ObservationReferenceRange> ReferenceRange { get; } + /// <summary> Related resource that belongs to the Observation group. </summary> + public IReadOnlyList<Reference> HasMember { get; } + /// <summary> Related measurements the observation is made from. </summary> + public IReadOnlyList<Reference> DerivedFrom { get; } + /// <summary> Component results. </summary> + public IReadOnlyList<ObservationComponent> Component { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ObservationComponent.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ObservationComponent.Serialization.cs new file mode 100644 index 0000000000000..a38d9626b220f --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ObservationComponent.Serialization.cs @@ -0,0 +1,217 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class ObservationComponent + { + internal static ObservationComponent DeserializeObservationComponent(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional<string> id = default; + Optional<IReadOnlyList<Extension>> extension = default; + CodeableConcept code = default; + Optional<Quantity> valueQuantity = default; + Optional<CodeableConcept> valueCodeableConcept = default; + Optional<string> valueString = default; + Optional<bool> valueBoolean = default; + Optional<int> valueInteger = default; + Optional<Range> valueRange = default; + Optional<Ratio> valueRatio = default; + Optional<SampledData> valueSampledData = default; + Optional<TimeSpan> valueTime = default; + Optional<string> valueDateTime = default; + Optional<Period> valuePeriod = default; + Optional<Reference> valueReference = default; + Optional<CodeableConcept> dataAbsentReason = default; + Optional<IReadOnlyList<CodeableConcept>> interpretation = default; + Optional<IReadOnlyList<ObservationReferenceRange>> referenceRange = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RadiologyInsights.Extension.DeserializeExtension(item)); + } + extension = array; + continue; + } + if (property.NameEquals("code"u8)) + { + code = CodeableConcept.DeserializeCodeableConcept(property.Value); + continue; + } + if (property.NameEquals("valueQuantity"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valueQuantity = Quantity.DeserializeQuantity(property.Value); + continue; + } + if (property.NameEquals("valueCodeableConcept"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valueCodeableConcept = CodeableConcept.DeserializeCodeableConcept(property.Value); + continue; + } + if (property.NameEquals("valueString"u8)) + { + valueString = property.Value.GetString(); + continue; + } + if (property.NameEquals("valueBoolean"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valueBoolean = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("valueInteger"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valueInteger = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("valueRange"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valueRange = Range.DeserializeRange(property.Value); + continue; + } + if (property.NameEquals("valueRatio"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valueRatio = Ratio.DeserializeRatio(property.Value); + continue; + } + if (property.NameEquals("valueSampledData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valueSampledData = SampledData.DeserializeSampledData(property.Value); + continue; + } + if (property.NameEquals("valueTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valueTime = property.Value.GetTimeSpan("T"); + continue; + } + if (property.NameEquals("valueDateTime"u8)) + { + valueDateTime = property.Value.GetString(); + continue; + } + if (property.NameEquals("valuePeriod"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valuePeriod = Period.DeserializePeriod(property.Value); + continue; + } + if (property.NameEquals("valueReference"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valueReference = Reference.DeserializeReference(property.Value); + continue; + } + if (property.NameEquals("dataAbsentReason"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + dataAbsentReason = CodeableConcept.DeserializeCodeableConcept(property.Value); + continue; + } + if (property.NameEquals("interpretation"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<CodeableConcept> array = new List<CodeableConcept>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(CodeableConcept.DeserializeCodeableConcept(item)); + } + interpretation = array; + continue; + } + if (property.NameEquals("referenceRange"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<ObservationReferenceRange> array = new List<ObservationReferenceRange>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(ObservationReferenceRange.DeserializeObservationReferenceRange(item)); + } + referenceRange = array; + continue; + } + } + return new ObservationComponent(id.Value, Optional.ToList(extension), code, valueQuantity.Value, valueCodeableConcept.Value, valueString.Value, Optional.ToNullable(valueBoolean), Optional.ToNullable(valueInteger), valueRange.Value, valueRatio.Value, valueSampledData.Value, Optional.ToNullable(valueTime), valueDateTime.Value, valuePeriod.Value, valueReference.Value, dataAbsentReason.Value, Optional.ToList(interpretation), Optional.ToList(referenceRange)); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static ObservationComponent FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeObservationComponent(document.RootElement); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ObservationComponent.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ObservationComponent.cs new file mode 100644 index 0000000000000..9e91040dea3ab --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ObservationComponent.cs @@ -0,0 +1,111 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> + /// Component results + /// Based on [FHIR Observation.component](https://www.hl7.org/fhir/R4/observation.html) + /// </summary> + public partial class ObservationComponent + { + /// <summary> Initializes a new instance of <see cref="ObservationComponent"/>. </summary> + /// <param name="code"> Type of component observation (code / type). </param> + /// <exception cref="ArgumentNullException"> <paramref name="code"/> is null. </exception> + internal ObservationComponent(CodeableConcept code) + { + Argument.AssertNotNull(code, nameof(code)); + + Extension = new ChangeTrackingList<Extension>(); + Code = code; + Interpretation = new ChangeTrackingList<CodeableConcept>(); + ReferenceRange = new ChangeTrackingList<ObservationReferenceRange>(); + } + + /// <summary> Initializes a new instance of <see cref="ObservationComponent"/>. </summary> + /// <param name="id"> Unique id for inter-element referencing. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="code"> Type of component observation (code / type). </param> + /// <param name="valueQuantity"> Value as Quantity. </param> + /// <param name="valueCodeableConcept"> Value as CodeableConcept. </param> + /// <param name="valueString"> Value as string. </param> + /// <param name="valueBoolean"> Value as boolean. </param> + /// <param name="valueInteger"> Value as integer. </param> + /// <param name="valueRange"> Value as Range. </param> + /// <param name="valueRatio"> Value as Ratio. </param> + /// <param name="valueSampledData"> Value as SampledData. </param> + /// <param name="valueTime"> Value as time (hh:mm:ss). </param> + /// <param name="valueDateTime"> Value as dateTime. </param> + /// <param name="valuePeriod"> Value as Period. </param> + /// <param name="valueReference"> Value as reference. </param> + /// <param name="dataAbsentReason"> Why the component result is missing. </param> + /// <param name="interpretation"> High, low, normal, etc. </param> + /// <param name="referenceRange"> Provides guide for interpretation of component result. </param> + internal ObservationComponent(string id, IReadOnlyList<Extension> extension, CodeableConcept code, Quantity valueQuantity, CodeableConcept valueCodeableConcept, string valueString, bool? valueBoolean, int? valueInteger, Range valueRange, Ratio valueRatio, SampledData valueSampledData, TimeSpan? valueTime, string valueDateTime, Period valuePeriod, Reference valueReference, CodeableConcept dataAbsentReason, IReadOnlyList<CodeableConcept> interpretation, IReadOnlyList<ObservationReferenceRange> referenceRange) + { + Id = id; + Extension = extension; + Code = code; + ValueQuantity = valueQuantity; + ValueCodeableConcept = valueCodeableConcept; + ValueString = valueString; + ValueBoolean = valueBoolean; + ValueInteger = valueInteger; + ValueRange = valueRange; + ValueRatio = valueRatio; + ValueSampledData = valueSampledData; + ValueTime = valueTime; + ValueDateTime = valueDateTime; + ValuePeriod = valuePeriod; + ValueReference = valueReference; + DataAbsentReason = dataAbsentReason; + Interpretation = interpretation; + ReferenceRange = referenceRange; + } + + /// <summary> Unique id for inter-element referencing. </summary> + public string Id { get; } + /// <summary> Additional Content defined by implementations. </summary> + public IReadOnlyList<Extension> Extension { get; } + /// <summary> Type of component observation (code / type). </summary> + public CodeableConcept Code { get; } + /// <summary> Value as Quantity. </summary> + public Quantity ValueQuantity { get; } + /// <summary> Value as CodeableConcept. </summary> + public CodeableConcept ValueCodeableConcept { get; } + /// <summary> Value as string. </summary> + public string ValueString { get; } + /// <summary> Value as boolean. </summary> + public bool? ValueBoolean { get; } + /// <summary> Value as integer. </summary> + public int? ValueInteger { get; } + /// <summary> Value as Range. </summary> + public Range ValueRange { get; } + /// <summary> Value as Ratio. </summary> + public Ratio ValueRatio { get; } + /// <summary> Value as SampledData. </summary> + public SampledData ValueSampledData { get; } + /// <summary> Value as time (hh:mm:ss). </summary> + public TimeSpan? ValueTime { get; } + /// <summary> Value as dateTime. </summary> + public string ValueDateTime { get; } + /// <summary> Value as Period. </summary> + public Period ValuePeriod { get; } + /// <summary> Value as reference. </summary> + public Reference ValueReference { get; } + /// <summary> Why the component result is missing. </summary> + public CodeableConcept DataAbsentReason { get; } + /// <summary> High, low, normal, etc. </summary> + public IReadOnlyList<CodeableConcept> Interpretation { get; } + /// <summary> Provides guide for interpretation of component result. </summary> + public IReadOnlyList<ObservationReferenceRange> ReferenceRange { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ObservationReferenceRange.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ObservationReferenceRange.Serialization.cs new file mode 100644 index 0000000000000..463d5e2d91817 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ObservationReferenceRange.Serialization.cs @@ -0,0 +1,98 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class ObservationReferenceRange + { + internal static ObservationReferenceRange DeserializeObservationReferenceRange(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional<Quantity> low = default; + Optional<Quantity> high = default; + Optional<CodeableConcept> type = default; + Optional<IReadOnlyList<CodeableConcept>> appliesTo = default; + Optional<Range> age = default; + Optional<string> text = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("low"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + low = Quantity.DeserializeQuantity(property.Value); + continue; + } + if (property.NameEquals("high"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + high = Quantity.DeserializeQuantity(property.Value); + continue; + } + if (property.NameEquals("type"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + type = CodeableConcept.DeserializeCodeableConcept(property.Value); + continue; + } + if (property.NameEquals("appliesTo"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<CodeableConcept> array = new List<CodeableConcept>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(CodeableConcept.DeserializeCodeableConcept(item)); + } + appliesTo = array; + continue; + } + if (property.NameEquals("age"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + age = Range.DeserializeRange(property.Value); + continue; + } + if (property.NameEquals("text"u8)) + { + text = property.Value.GetString(); + continue; + } + } + return new ObservationReferenceRange(low.Value, high.Value, type.Value, Optional.ToList(appliesTo), age.Value, text.Value); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static ObservationReferenceRange FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeObservationReferenceRange(document.RootElement); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ObservationReferenceRange.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ObservationReferenceRange.cs new file mode 100644 index 0000000000000..125b538a23adf --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ObservationReferenceRange.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> + /// Provides guide for interpretation of component result + /// Based on [FHIR Observation.referenceRange](https://www.hl7.org/fhir/R4/observation.html) + /// </summary> + public partial class ObservationReferenceRange + { + /// <summary> Initializes a new instance of <see cref="ObservationReferenceRange"/>. </summary> + internal ObservationReferenceRange() + { + AppliesTo = new ChangeTrackingList<CodeableConcept>(); + } + + /// <summary> Initializes a new instance of <see cref="ObservationReferenceRange"/>. </summary> + /// <param name="low"> Low Range, if relevant. </param> + /// <param name="high"> High Range, if relevant. </param> + /// <param name="type"> Reference range qualifier. </param> + /// <param name="appliesTo"> Reference range population. </param> + /// <param name="age"> Applicable age range, if relevant. </param> + /// <param name="text"> Text based reference range in an observation. </param> + internal ObservationReferenceRange(Quantity low, Quantity high, CodeableConcept type, IReadOnlyList<CodeableConcept> appliesTo, Range age, string text) + { + Low = low; + High = high; + Type = type; + AppliesTo = appliesTo; + Age = age; + Text = text; + } + + /// <summary> Low Range, if relevant. </summary> + public Quantity Low { get; } + /// <summary> High Range, if relevant. </summary> + public Quantity High { get; } + /// <summary> Reference range qualifier. </summary> + public CodeableConcept Type { get; } + /// <summary> Reference range population. </summary> + public IReadOnlyList<CodeableConcept> AppliesTo { get; } + /// <summary> Applicable age range, if relevant. </summary> + public Range Age { get; } + /// <summary> Text based reference range in an observation. </summary> + public string Text { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/OrderedProcedure.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/OrderedProcedure.Serialization.cs new file mode 100644 index 0000000000000..b50441b6f7bea --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/OrderedProcedure.Serialization.cs @@ -0,0 +1,102 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class OrderedProcedure : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(Code)) + { + writer.WritePropertyName("code"u8); + writer.WriteObjectValue(Code); + } + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + writer.WriteEndObject(); + } + + internal static OrderedProcedure DeserializeOrderedProcedure(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional<IList<Extension>> extension = default; + Optional<CodeableConcept> code = default; + Optional<string> description = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RadiologyInsights.Extension.DeserializeExtension(item)); + } + extension = array; + continue; + } + if (property.NameEquals("code"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + code = CodeableConcept.DeserializeCodeableConcept(property.Value); + continue; + } + if (property.NameEquals("description"u8)) + { + description = property.Value.GetString(); + continue; + } + } + return new OrderedProcedure(Optional.ToList(extension), code.Value, description.Value); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static OrderedProcedure FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOrderedProcedure(document.RootElement); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/OrderedProcedure.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/OrderedProcedure.cs new file mode 100644 index 0000000000000..9cc64e702055c --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/OrderedProcedure.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> Procedure information. </summary> + public partial class OrderedProcedure + { + /// <summary> Initializes a new instance of <see cref="OrderedProcedure"/>. </summary> + public OrderedProcedure() + { + Extension = new ChangeTrackingList<Extension>(); + } + + /// <summary> Initializes a new instance of <see cref="OrderedProcedure"/>. </summary> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="code"> Procedure code. </param> + /// <param name="description"> Procedure description. </param> + internal OrderedProcedure(IList<Extension> extension, CodeableConcept code, string description) + { + Extension = extension; + Code = code; + Description = description; + } + + /// <summary> Additional Content defined by implementations. </summary> + public IList<Extension> Extension { get; } + /// <summary> Procedure code. </summary> + public CodeableConcept Code { get; set; } + /// <summary> Procedure description. </summary> + public string Description { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PatientDocument.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PatientDocument.Serialization.cs new file mode 100644 index 0000000000000..1e25259729c46 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PatientDocument.Serialization.cs @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class PatientDocument : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("type"u8); + writer.WriteStringValue(Type.ToString()); + if (Optional.IsDefined(ClinicalType)) + { + writer.WritePropertyName("clinicalType"u8); + writer.WriteStringValue(ClinicalType.Value.ToString()); + } + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + if (Optional.IsDefined(Language)) + { + writer.WritePropertyName("language"u8); + writer.WriteStringValue(Language); + } + if (Optional.IsDefined(CreatedDateTime)) + { + writer.WritePropertyName("createdDateTime"u8); + writer.WriteStringValue(CreatedDateTime.Value, "O"); + } + if (Optional.IsCollectionDefined(Authors)) + { + writer.WritePropertyName("authors"u8); + writer.WriteStartArray(); + foreach (var item in Authors) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(SpecialtyType)) + { + writer.WritePropertyName("specialtyType"u8); + writer.WriteStringValue(SpecialtyType.Value.ToString()); + } + if (Optional.IsDefined(AdministrativeMetadata)) + { + writer.WritePropertyName("administrativeMetadata"u8); + writer.WriteObjectValue(AdministrativeMetadata); + } + writer.WritePropertyName("content"u8); + writer.WriteObjectValue(Content); + writer.WriteEndObject(); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PatientDocument.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PatientDocument.cs new file mode 100644 index 0000000000000..9335c6ec9dc5f --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PatientDocument.cs @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> A clinical document related to a patient. Document here is in the wide sense - not just a text document (note). </summary> + public partial class PatientDocument + { + /// <summary> Initializes a new instance of <see cref="PatientDocument"/>. </summary> + /// <param name="type"> The type of the patient document, such as 'note' (text document) or 'fhirBundle' (FHIR JSON document). </param> + /// <param name="id"> A given identifier for the document. Has to be unique across all documents for a single patient. </param> + /// <param name="content"> The content of the patient document. </param> + /// <exception cref="ArgumentNullException"> <paramref name="id"/> or <paramref name="content"/> is null. </exception> + public PatientDocument(DocumentType type, string id, DocumentContent content) + { + Argument.AssertNotNull(id, nameof(id)); + Argument.AssertNotNull(content, nameof(content)); + + Type = type; + Id = id; + Authors = new ChangeTrackingList<DocumentAuthor>(); + Content = content; + } + + /// <summary> Initializes a new instance of <see cref="PatientDocument"/>. </summary> + /// <param name="type"> The type of the patient document, such as 'note' (text document) or 'fhirBundle' (FHIR JSON document). </param> + /// <param name="clinicalType"> The type of the clinical document. </param> + /// <param name="id"> A given identifier for the document. Has to be unique across all documents for a single patient. </param> + /// <param name="language"> A 2 letter ISO 639-1 representation of the language of the document. </param> + /// <param name="createdDateTime"> The date and time when the document was created. </param> + /// <param name="authors"> Document author(s). </param> + /// <param name="specialtyType"> specialty type the document. </param> + /// <param name="administrativeMetadata"> Administrative metadata for the document. </param> + /// <param name="content"> The content of the patient document. </param> + internal PatientDocument(DocumentType type, ClinicalDocumentType? clinicalType, string id, string language, DateTimeOffset? createdDateTime, IList<DocumentAuthor> authors, SpecialtyType? specialtyType, DocumentAdministrativeMetadata administrativeMetadata, DocumentContent content) + { + Type = type; + ClinicalType = clinicalType; + Id = id; + Language = language; + CreatedDateTime = createdDateTime; + Authors = authors; + SpecialtyType = specialtyType; + AdministrativeMetadata = administrativeMetadata; + Content = content; + } + + /// <summary> The type of the patient document, such as 'note' (text document) or 'fhirBundle' (FHIR JSON document). </summary> + public DocumentType Type { get; } + /// <summary> The type of the clinical document. </summary> + public ClinicalDocumentType? ClinicalType { get; set; } + /// <summary> A given identifier for the document. Has to be unique across all documents for a single patient. </summary> + public string Id { get; } + /// <summary> A 2 letter ISO 639-1 representation of the language of the document. </summary> + public string Language { get; set; } + /// <summary> The date and time when the document was created. </summary> + public DateTimeOffset? CreatedDateTime { get; set; } + /// <summary> Document author(s). </summary> + public IList<DocumentAuthor> Authors { get; } + /// <summary> specialty type the document. </summary> + public SpecialtyType? SpecialtyType { get; set; } + /// <summary> Administrative metadata for the document. </summary> + public DocumentAdministrativeMetadata AdministrativeMetadata { get; set; } + /// <summary> The content of the patient document. </summary> + public DocumentContent Content { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PatientInfo.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PatientInfo.Serialization.cs new file mode 100644 index 0000000000000..c4d2689c502b7 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PatientInfo.Serialization.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class PatientInfo : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Sex)) + { + writer.WritePropertyName("sex"u8); + writer.WriteStringValue(Sex.Value.ToString()); + } + if (Optional.IsDefined(BirthDate)) + { + writer.WritePropertyName("birthDate"u8); + writer.WriteStringValue(BirthDate.Value, "D"); + } + if (Optional.IsCollectionDefined(ClinicalInfo)) + { + writer.WritePropertyName("clinicalInfo"u8); + writer.WriteStartArray(); + foreach (var item in ClinicalInfo) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PatientInfo.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PatientInfo.cs new file mode 100644 index 0000000000000..960e2f179739c --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PatientInfo.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> Patient structured information, including demographics and known structured clinical information. </summary> + public partial class PatientInfo + { + /// <summary> Initializes a new instance of <see cref="PatientInfo"/>. </summary> + public PatientInfo() + { + ClinicalInfo = new ChangeTrackingList<Resource>(); + } + + /// <summary> Initializes a new instance of <see cref="PatientInfo"/>. </summary> + /// <param name="sex"> The patient's sex. </param> + /// <param name="birthDate"> The patient's date of birth. </param> + /// <param name="clinicalInfo"> Known clinical information for the patient, structured. </param> + internal PatientInfo(PatientInfoSex? sex, DateTimeOffset? birthDate, IList<Resource> clinicalInfo) + { + Sex = sex; + BirthDate = birthDate; + ClinicalInfo = clinicalInfo; + } + + /// <summary> The patient's sex. </summary> + public PatientInfoSex? Sex { get; set; } + /// <summary> The patient's date of birth. </summary> + public DateTimeOffset? BirthDate { get; set; } + /// <summary> Known clinical information for the patient, structured. </summary> + public IList<Resource> ClinicalInfo { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PatientInfoSex.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PatientInfoSex.cs new file mode 100644 index 0000000000000..fa7bffac45132 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PatientInfoSex.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> The patient's sex. </summary> + public readonly partial struct PatientInfoSex : IEquatable<PatientInfoSex> + { + private readonly string _value; + + /// <summary> Initializes a new instance of <see cref="PatientInfoSex"/>. </summary> + /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception> + public PatientInfoSex(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string FemaleValue = "female"; + private const string MaleValue = "male"; + private const string UnspecifiedValue = "unspecified"; + + /// <summary> female. </summary> + public static PatientInfoSex Female { get; } = new PatientInfoSex(FemaleValue); + /// <summary> male. </summary> + public static PatientInfoSex Male { get; } = new PatientInfoSex(MaleValue); + /// <summary> unspecified. </summary> + public static PatientInfoSex Unspecified { get; } = new PatientInfoSex(UnspecifiedValue); + /// <summary> Determines if two <see cref="PatientInfoSex"/> values are the same. </summary> + public static bool operator ==(PatientInfoSex left, PatientInfoSex right) => left.Equals(right); + /// <summary> Determines if two <see cref="PatientInfoSex"/> values are not the same. </summary> + public static bool operator !=(PatientInfoSex left, PatientInfoSex right) => !left.Equals(right); + /// <summary> Converts a string to a <see cref="PatientInfoSex"/>. </summary> + public static implicit operator PatientInfoSex(string value) => new PatientInfoSex(value); + + /// <inheritdoc /> + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is PatientInfoSex other && Equals(other); + /// <inheritdoc /> + public bool Equals(PatientInfoSex other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// <inheritdoc /> + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// <inheritdoc /> + public override string ToString() => _value; + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PatientRecord.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PatientRecord.Serialization.cs new file mode 100644 index 0000000000000..5f200a4538836 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PatientRecord.Serialization.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class PatientRecord : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + if (Optional.IsDefined(Info)) + { + writer.WritePropertyName("info"u8); + writer.WriteObjectValue(Info); + } + if (Optional.IsCollectionDefined(Encounters)) + { + writer.WritePropertyName("encounters"u8); + writer.WriteStartArray(); + foreach (var item in Encounters) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(PatientDocuments)) + { + writer.WritePropertyName("patientDocuments"u8); + writer.WriteStartArray(); + foreach (var item in PatientDocuments) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PatientRecord.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PatientRecord.cs new file mode 100644 index 0000000000000..3eb48f933bde2 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PatientRecord.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> A patient record, including their clinical information and data. </summary> + public partial class PatientRecord + { + /// <summary> Initializes a new instance of <see cref="PatientRecord"/>. </summary> + /// <param name="id"> A given identifier for the patient. Has to be unique across all patients in a single request. </param> + /// <exception cref="ArgumentNullException"> <paramref name="id"/> is null. </exception> + public PatientRecord(string id) + { + Argument.AssertNotNull(id, nameof(id)); + + Id = id; + Encounters = new ChangeTrackingList<Encounter>(); + PatientDocuments = new ChangeTrackingList<PatientDocument>(); + } + + /// <summary> Initializes a new instance of <see cref="PatientRecord"/>. </summary> + /// <param name="id"> A given identifier for the patient. Has to be unique across all patients in a single request. </param> + /// <param name="info"> Patient structured information, including demographics and known structured clinical information. </param> + /// <param name="encounters"> Patient encounters/visits. </param> + /// <param name="patientDocuments"> Patient unstructured clinical data, given as documents. </param> + internal PatientRecord(string id, PatientInfo info, IList<Encounter> encounters, IList<PatientDocument> patientDocuments) + { + Id = id; + Info = info; + Encounters = encounters; + PatientDocuments = patientDocuments; + } + + /// <summary> A given identifier for the patient. Has to be unique across all patients in a single request. </summary> + public string Id { get; } + /// <summary> Patient structured information, including demographics and known structured clinical information. </summary> + public PatientInfo Info { get; set; } + /// <summary> Patient encounters/visits. </summary> + public IList<Encounter> Encounters { get; } + /// <summary> Patient unstructured clinical data, given as documents. </summary> + public IList<PatientDocument> PatientDocuments { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Period.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Period.Serialization.cs new file mode 100644 index 0000000000000..8a3c9a87221b6 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Period.Serialization.cs @@ -0,0 +1,109 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class Period : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(Start)) + { + writer.WritePropertyName("start"u8); + writer.WriteStringValue(Start); + } + if (Optional.IsDefined(End)) + { + writer.WritePropertyName("end"u8); + writer.WriteStringValue(End); + } + writer.WriteEndObject(); + } + + internal static Period DeserializePeriod(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional<string> id = default; + Optional<IList<Extension>> extension = default; + Optional<string> start = default; + Optional<string> end = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RadiologyInsights.Extension.DeserializeExtension(item)); + } + extension = array; + continue; + } + if (property.NameEquals("start"u8)) + { + start = property.Value.GetString(); + continue; + } + if (property.NameEquals("end"u8)) + { + end = property.Value.GetString(); + continue; + } + } + return new Period(id.Value, Optional.ToList(extension), start.Value, end.Value); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static Period FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePeriod(document.RootElement); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Period.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Period.cs new file mode 100644 index 0000000000000..41d47c526bedf --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Period.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> + /// A time period defined by a start and end date and optionally time + /// Based on [FHIR Period](https://www.hl7.org/fhir/R4/datatypes.html#Period) + /// </summary> + public partial class Period + { + /// <summary> Initializes a new instance of <see cref="Period"/>. </summary> + public Period() + { + Extension = new ChangeTrackingList<Extension>(); + } + + /// <summary> Initializes a new instance of <see cref="Period"/>. </summary> + /// <param name="id"> Unique id for inter-element referencing. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="start"> Starting time with inclusive boundary. </param> + /// <param name="end"> End time with inclusive boundary, if not ongoing. </param> + internal Period(string id, IList<Extension> extension, string start, string end) + { + Id = id; + Extension = extension; + Start = start; + End = end; + } + + /// <summary> Unique id for inter-element referencing. </summary> + public string Id { get; set; } + /// <summary> Additional Content defined by implementations. </summary> + public IList<Extension> Extension { get; } + /// <summary> Starting time with inclusive boundary. </summary> + public string Start { get; set; } + /// <summary> End time with inclusive boundary, if not ongoing. </summary> + public string End { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ProcedureRecommendation.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ProcedureRecommendation.Serialization.cs new file mode 100644 index 0000000000000..dbe4075c86a0a --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ProcedureRecommendation.Serialization.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class ProcedureRecommendation + { + internal static ProcedureRecommendation DeserializeProcedureRecommendation(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + if (element.TryGetProperty("kind", out JsonElement discriminator)) + { + switch (discriminator.GetString()) + { + case "genericProcedureRecommendation": return GenericProcedureRecommendation.DeserializeGenericProcedureRecommendation(element); + case "imagingProcedureRecommendation": return ImagingProcedureRecommendation.DeserializeImagingProcedureRecommendation(element); + } + } + return UnknownProcedureRecommendation.DeserializeUnknownProcedureRecommendation(element); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static ProcedureRecommendation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeProcedureRecommendation(document.RootElement); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ProcedureRecommendation.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ProcedureRecommendation.cs new file mode 100644 index 0000000000000..4a87c3d8f62ee --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ProcedureRecommendation.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> + /// The procedure recommendation can be a generic procedure or an imaging procedure. + /// Please note <see cref="ProcedureRecommendation"/> 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 <see cref="GenericProcedureRecommendation"/> and <see cref="ImagingProcedureRecommendation"/>. + /// </summary> + public abstract partial class ProcedureRecommendation + { + /// <summary> Initializes a new instance of <see cref="ProcedureRecommendation"/>. </summary> + protected ProcedureRecommendation() + { + } + + /// <summary> Initializes a new instance of <see cref="ProcedureRecommendation"/>. </summary> + /// <param name="kind"> Discriminator. </param> + internal ProcedureRecommendation(string kind) + { + Kind = kind; + } + + /// <summary> Discriminator. </summary> + internal string Kind { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Quantity.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Quantity.Serialization.cs new file mode 100644 index 0000000000000..6e42c491ecd7b --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Quantity.Serialization.cs @@ -0,0 +1,146 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class Quantity : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(Value)) + { + writer.WritePropertyName("value"u8); + writer.WriteNumberValue(Value.Value); + } + if (Optional.IsDefined(Comparator)) + { + writer.WritePropertyName("comparator"u8); + writer.WriteStringValue(Comparator); + } + if (Optional.IsDefined(Unit)) + { + writer.WritePropertyName("unit"u8); + writer.WriteStringValue(Unit); + } + if (Optional.IsDefined(System)) + { + writer.WritePropertyName("system"u8); + writer.WriteStringValue(System); + } + if (Optional.IsDefined(Code)) + { + writer.WritePropertyName("code"u8); + writer.WriteStringValue(Code); + } + writer.WriteEndObject(); + } + + internal static Quantity DeserializeQuantity(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional<string> id = default; + Optional<IList<Extension>> extension = default; + Optional<decimal> value = default; + Optional<string> comparator = default; + Optional<string> unit = default; + Optional<string> system = default; + Optional<string> code = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RadiologyInsights.Extension.DeserializeExtension(item)); + } + extension = array; + continue; + } + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + value = property.Value.GetDecimal(); + continue; + } + if (property.NameEquals("comparator"u8)) + { + comparator = property.Value.GetString(); + continue; + } + if (property.NameEquals("unit"u8)) + { + unit = property.Value.GetString(); + continue; + } + if (property.NameEquals("system"u8)) + { + system = property.Value.GetString(); + continue; + } + if (property.NameEquals("code"u8)) + { + code = property.Value.GetString(); + continue; + } + } + return new Quantity(id.Value, Optional.ToList(extension), Optional.ToNullable(value), comparator.Value, unit.Value, system.Value, code.Value); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static Quantity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeQuantity(document.RootElement); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Quantity.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Quantity.cs new file mode 100644 index 0000000000000..e2b621a2422fb --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Quantity.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> + /// A measured or measurable amount + /// Based on [FHIR Quantity](https://www.hl7.org/fhir/R4/datatypes.html#Quantity) + /// </summary> + public partial class Quantity + { + /// <summary> Initializes a new instance of <see cref="Quantity"/>. </summary> + public Quantity() + { + Extension = new ChangeTrackingList<Extension>(); + } + + /// <summary> Initializes a new instance of <see cref="Quantity"/>. </summary> + /// <param name="id"> Unique id for inter-element referencing. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="value"> Numerical value (with implicit precision). </param> + /// <param name="comparator"> < | <= | >= | > - how to understand the value. </param> + /// <param name="unit"> Unit representation. </param> + /// <param name="system"> System that defines coded unit form. </param> + /// <param name="code"> Coded form of the unit. </param> + internal Quantity(string id, IList<Extension> extension, decimal? value, string comparator, string unit, string system, string code) + { + Id = id; + Extension = extension; + Value = value; + Comparator = comparator; + Unit = unit; + System = system; + Code = code; + } + + /// <summary> Unique id for inter-element referencing. </summary> + public string Id { get; set; } + /// <summary> Additional Content defined by implementations. </summary> + public IList<Extension> Extension { get; } + /// <summary> Numerical value (with implicit precision). </summary> + public decimal? Value { get; set; } + /// <summary> < | <= | >= | > - how to understand the value. </summary> + public string Comparator { get; set; } + /// <summary> Unit representation. </summary> + public string Unit { get; set; } + /// <summary> System that defines coded unit form. </summary> + public string System { get; set; } + /// <summary> Coded form of the unit. </summary> + public string Code { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyCodeWithTypes.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyCodeWithTypes.Serialization.cs new file mode 100644 index 0000000000000..43fafe05cb440 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyCodeWithTypes.Serialization.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class RadiologyCodeWithTypes + { + internal static RadiologyCodeWithTypes DeserializeRadiologyCodeWithTypes(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + CodeableConcept code = default; + IReadOnlyList<CodeableConcept> types = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("code"u8)) + { + code = CodeableConcept.DeserializeCodeableConcept(property.Value); + continue; + } + if (property.NameEquals("types"u8)) + { + List<CodeableConcept> array = new List<CodeableConcept>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(CodeableConcept.DeserializeCodeableConcept(item)); + } + types = array; + continue; + } + } + return new RadiologyCodeWithTypes(code, types); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static RadiologyCodeWithTypes FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRadiologyCodeWithTypes(document.RootElement); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyCodeWithTypes.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyCodeWithTypes.cs new file mode 100644 index 0000000000000..57073f848e7a1 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyCodeWithTypes.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> Radiology code with types : used in imaging procedure recommendation for contrast and view. </summary> + public partial class RadiologyCodeWithTypes + { + /// <summary> Initializes a new instance of <see cref="RadiologyCodeWithTypes"/>. </summary> + /// <param name="code"> The SNOMED CT code indicates whether imaging was conducted with or without contrast in the case of contrast, and in the case of views, it denotes the number of views. </param> + /// <param name="types"> The collection of types will indicate the contrast substance used in the case of contrast and, in the case of views, it will specify the types of views, such as lateral and frontal, etc. </param> + /// <exception cref="ArgumentNullException"> <paramref name="code"/> or <paramref name="types"/> is null. </exception> + internal RadiologyCodeWithTypes(CodeableConcept code, IEnumerable<CodeableConcept> types) + { + Argument.AssertNotNull(code, nameof(code)); + Argument.AssertNotNull(types, nameof(types)); + + Code = code; + Types = types.ToList(); + } + + /// <summary> Initializes a new instance of <see cref="RadiologyCodeWithTypes"/>. </summary> + /// <param name="code"> The SNOMED CT code indicates whether imaging was conducted with or without contrast in the case of contrast, and in the case of views, it denotes the number of views. </param> + /// <param name="types"> The collection of types will indicate the contrast substance used in the case of contrast and, in the case of views, it will specify the types of views, such as lateral and frontal, etc. </param> + internal RadiologyCodeWithTypes(CodeableConcept code, IReadOnlyList<CodeableConcept> types) + { + Code = code; + Types = types; + } + + /// <summary> The SNOMED CT code indicates whether imaging was conducted with or without contrast in the case of contrast, and in the case of views, it denotes the number of views. </summary> + public CodeableConcept Code { get; } + /// <summary> The collection of types will indicate the contrast substance used in the case of contrast and, in the case of views, it will specify the types of views, such as lateral and frontal, etc. </summary> + public IReadOnlyList<CodeableConcept> Types { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsClient.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsClient.cs new file mode 100644 index 0000000000000..7cb58557b40de --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsClient.cs @@ -0,0 +1,218 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.Health.Insights.RadiologyInsights +{ + // Data plane generated client. + /// <summary> The RadiologyInsights service client. </summary> + public partial class RadiologyInsightsClient + { + private const string AuthorizationHeader = "Ocp-Apim-Subscription-Key"; + private readonly AzureKeyCredential _keyCredential; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// <summary> The ClientDiagnostics is used to provide tracing support for the client library. </summary> + internal ClientDiagnostics ClientDiagnostics { get; } + + /// <summary> The HTTP pipeline for sending and receiving REST requests and responses. </summary> + public virtual HttpPipeline Pipeline => _pipeline; + + /// <summary> Initializes a new instance of RadiologyInsightsClient for mocking. </summary> + protected RadiologyInsightsClient() + { + } + + /// <summary> Initializes a new instance of RadiologyInsightsClient. </summary> + /// <param name="endpoint"> Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus2.api.cognitive.microsoft.com). </param> + /// <param name="credential"> A credential used to authenticate to an Azure Service. </param> + /// <exception cref="ArgumentNullException"> <paramref name="endpoint"/> or <paramref name="credential"/> is null. </exception> + public RadiologyInsightsClient(Uri endpoint, AzureKeyCredential credential) : this(endpoint, credential, new RadiologyInsightsClientOptions()) + { + } + + /// <summary> Initializes a new instance of RadiologyInsightsClient. </summary> + /// <param name="endpoint"> Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus2.api.cognitive.microsoft.com). </param> + /// <param name="credential"> A credential used to authenticate to an Azure Service. </param> + /// <param name="options"> The options for configuring the client. </param> + /// <exception cref="ArgumentNullException"> <paramref name="endpoint"/> or <paramref name="credential"/> is null. </exception> + public RadiologyInsightsClient(Uri endpoint, AzureKeyCredential credential, RadiologyInsightsClientOptions options) + { + Argument.AssertNotNull(endpoint, nameof(endpoint)); + Argument.AssertNotNull(credential, nameof(credential)); + options ??= new RadiologyInsightsClientOptions(); + + ClientDiagnostics = new ClientDiagnostics(options, true); + _keyCredential = credential; + _pipeline = HttpPipelineBuilder.Build(options, Array.Empty<HttpPipelinePolicy>(), new HttpPipelinePolicy[] { new AzureKeyCredentialPolicy(_keyCredential, AuthorizationHeader) }, new ResponseClassifier()); + _endpoint = endpoint; + _apiVersion = options.Version; + } + + /// <summary> Create Radiology Insights job. </summary> + /// <param name="waitUntil"> <see cref="WaitUntil.Completed"/> if the method should wait to return until the long-running operation has completed on the service; <see cref="WaitUntil.Started"/> if it should return after starting the operation. For more information on long-running operations, please see <see href="https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/LongRunningOperations.md"> Azure.Core Long-Running Operation samples</see>. </param> + /// <param name="radiologyInsightsData"> Contains the list of patients, and configuration data. </param> + /// <param name="cancellationToken"> The cancellation token to use. </param> + /// <exception cref="ArgumentNullException"> <paramref name="radiologyInsightsData"/> is null. </exception> + /// <remarks> Creates a Radiology Insights job with the given request body. </remarks> + /// <include file="Docs/RadiologyInsightsClient.xml" path="doc/members/member[@name='InferRadiologyInsightsAsync(WaitUntil,RadiologyInsightsData,CancellationToken)']/*" /> + public virtual async Task<Operation<RadiologyInsightsInferenceResult>> InferRadiologyInsightsAsync(WaitUntil waitUntil, RadiologyInsightsData radiologyInsightsData, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(radiologyInsightsData, nameof(radiologyInsightsData)); + + RequestContext context = FromCancellationToken(cancellationToken); + using RequestContent content = radiologyInsightsData.ToRequestContent(); + Operation<BinaryData> response = await InferRadiologyInsightsAsync(waitUntil, content, context).ConfigureAwait(false); + return ProtocolOperationHelpers.Convert(response, FetchRadiologyInsightsInferenceResultFromRadiologyInsightsResult, ClientDiagnostics, "RadiologyInsightsClient.InferRadiologyInsights"); + } + + /// <summary> Create Radiology Insights job. </summary> + /// <param name="waitUntil"> <see cref="WaitUntil.Completed"/> if the method should wait to return until the long-running operation has completed on the service; <see cref="WaitUntil.Started"/> if it should return after starting the operation. For more information on long-running operations, please see <see href="https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/LongRunningOperations.md"> Azure.Core Long-Running Operation samples</see>. </param> + /// <param name="radiologyInsightsData"> Contains the list of patients, and configuration data. </param> + /// <param name="cancellationToken"> The cancellation token to use. </param> + /// <exception cref="ArgumentNullException"> <paramref name="radiologyInsightsData"/> is null. </exception> + /// <remarks> Creates a Radiology Insights job with the given request body. </remarks> + /// <include file="Docs/RadiologyInsightsClient.xml" path="doc/members/member[@name='InferRadiologyInsights(WaitUntil,RadiologyInsightsData,CancellationToken)']/*" /> + public virtual Operation<RadiologyInsightsInferenceResult> InferRadiologyInsights(WaitUntil waitUntil, RadiologyInsightsData radiologyInsightsData, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(radiologyInsightsData, nameof(radiologyInsightsData)); + + RequestContext context = FromCancellationToken(cancellationToken); + using RequestContent content = radiologyInsightsData.ToRequestContent(); + Operation<BinaryData> response = InferRadiologyInsights(waitUntil, content, context); + return ProtocolOperationHelpers.Convert(response, FetchRadiologyInsightsInferenceResultFromRadiologyInsightsResult, ClientDiagnostics, "RadiologyInsightsClient.InferRadiologyInsights"); + } + + /// <summary> + /// [Protocol Method] Create Radiology Insights job + /// <list type="bullet"> + /// <item> + /// <description> + /// This <see href="https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/ProtocolMethods.md">protocol method</see> allows explicit creation of the request and processing of the response for advanced scenarios. + /// </description> + /// </item> + /// <item> + /// <description> + /// Please try the simpler <see cref="InferRadiologyInsightsAsync(WaitUntil,RadiologyInsightsData,CancellationToken)"/> convenience overload with strongly typed models first. + /// </description> + /// </item> + /// </list> + /// </summary> + /// <param name="waitUntil"> <see cref="WaitUntil.Completed"/> if the method should wait to return until the long-running operation has completed on the service; <see cref="WaitUntil.Started"/> if it should return after starting the operation. For more information on long-running operations, please see <see href="https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/LongRunningOperations.md"> Azure.Core Long-Running Operation samples</see>. </param> + /// <param name="content"> The content to send as the body of the request. </param> + /// <param name="context"> The request context, which can override default behaviors of the client pipeline on a per-call basis. </param> + /// <exception cref="ArgumentNullException"> <paramref name="content"/> is null. </exception> + /// <exception cref="RequestFailedException"> Service returned a non-success status code. </exception> + /// <returns> The <see cref="Operation"/> representing an asynchronous operation on the service. </returns> + /// <include file="Docs/RadiologyInsightsClient.xml" path="doc/members/member[@name='InferRadiologyInsightsAsync(WaitUntil,RequestContent,RequestContext)']/*" /> + public virtual async Task<Operation<BinaryData>> InferRadiologyInsightsAsync(WaitUntil waitUntil, RequestContent content, RequestContext context = null) + { + Argument.AssertNotNull(content, nameof(content)); + + using var scope = ClientDiagnostics.CreateScope("RadiologyInsightsClient.InferRadiologyInsights"); + scope.Start(); + try + { + using HttpMessage message = CreateInferRadiologyInsightsRequest(content, context); + return await ProtocolOperationHelpers.ProcessMessageAsync(_pipeline, message, ClientDiagnostics, "RadiologyInsightsClient.InferRadiologyInsights", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// <summary> + /// [Protocol Method] Create Radiology Insights job + /// <list type="bullet"> + /// <item> + /// <description> + /// This <see href="https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/ProtocolMethods.md">protocol method</see> allows explicit creation of the request and processing of the response for advanced scenarios. + /// </description> + /// </item> + /// <item> + /// <description> + /// Please try the simpler <see cref="InferRadiologyInsights(WaitUntil,RadiologyInsightsData,CancellationToken)"/> convenience overload with strongly typed models first. + /// </description> + /// </item> + /// </list> + /// </summary> + /// <param name="waitUntil"> <see cref="WaitUntil.Completed"/> if the method should wait to return until the long-running operation has completed on the service; <see cref="WaitUntil.Started"/> if it should return after starting the operation. For more information on long-running operations, please see <see href="https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/LongRunningOperations.md"> Azure.Core Long-Running Operation samples</see>. </param> + /// <param name="content"> The content to send as the body of the request. </param> + /// <param name="context"> The request context, which can override default behaviors of the client pipeline on a per-call basis. </param> + /// <exception cref="ArgumentNullException"> <paramref name="content"/> is null. </exception> + /// <exception cref="RequestFailedException"> Service returned a non-success status code. </exception> + /// <returns> The <see cref="Operation"/> representing an asynchronous operation on the service. </returns> + /// <include file="Docs/RadiologyInsightsClient.xml" path="doc/members/member[@name='InferRadiologyInsights(WaitUntil,RequestContent,RequestContext)']/*" /> + public virtual Operation<BinaryData> InferRadiologyInsights(WaitUntil waitUntil, RequestContent content, RequestContext context = null) + { + Argument.AssertNotNull(content, nameof(content)); + + using var scope = ClientDiagnostics.CreateScope("RadiologyInsightsClient.InferRadiologyInsights"); + scope.Start(); + try + { + using HttpMessage message = CreateInferRadiologyInsightsRequest(content, context); + return ProtocolOperationHelpers.ProcessMessage(_pipeline, message, ClientDiagnostics, "RadiologyInsightsClient.InferRadiologyInsights", OperationFinalStateVia.OperationLocation, context, waitUntil); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + internal HttpMessage CreateInferRadiologyInsightsRequest(RequestContent content, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier202); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/health-insights", false); + uri.AppendPath("/radiology-insights/jobs", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Repeatability-Request-ID", Guid.NewGuid()); + request.Headers.Add("Repeatability-First-Sent", DateTimeOffset.Now, "R"); + request.Headers.Add("Content-Type", "application/json"); + request.Content = content; + return message; + } + + private static RequestContext DefaultRequestContext = new RequestContext(); + internal static RequestContext FromCancellationToken(CancellationToken cancellationToken = default) + { + if (!cancellationToken.CanBeCanceled) + { + return DefaultRequestContext; + } + + return new RequestContext() { CancellationToken = cancellationToken }; + } + + private static ResponseClassifier _responseClassifier202; + private static ResponseClassifier ResponseClassifier202 => _responseClassifier202 ??= new StatusCodeClassifier(stackalloc ushort[] { 202 }); + + private RadiologyInsightsInferenceResult FetchRadiologyInsightsInferenceResultFromRadiologyInsightsResult(Response response) + { + var resultJsonElement = JsonDocument.Parse(response.Content).RootElement.GetProperty("result"); + return RadiologyInsightsInferenceResult.DeserializeRadiologyInsightsInferenceResult(resultJsonElement); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsClientOptions.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsClientOptions.cs new file mode 100644 index 0000000000000..14716cdb426db --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsClientOptions.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> Client options for RadiologyInsightsClient. </summary> + public partial class RadiologyInsightsClientOptions : ClientOptions + { + private const ServiceVersion LatestVersion = ServiceVersion.V2023_09_01_Preview; + + /// <summary> The version of the service to use. </summary> + public enum ServiceVersion + { + /// <summary> Service version "2023-09-01-preview". </summary> + V2023_09_01_Preview = 1, + } + + internal string Version { get; } + + /// <summary> Initializes new instance of RadiologyInsightsClientOptions. </summary> + public RadiologyInsightsClientOptions(ServiceVersion version = LatestVersion) + { + Version = version switch + { + ServiceVersion.V2023_09_01_Preview => "2023-09-01-preview", + _ => throw new NotSupportedException() + }; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsData.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsData.Serialization.cs new file mode 100644 index 0000000000000..11919b2894918 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsData.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class RadiologyInsightsData : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("patients"u8); + writer.WriteStartArray(); + foreach (var item in Patients) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + if (Optional.IsDefined(Configuration)) + { + writer.WritePropertyName("configuration"u8); + writer.WriteObjectValue(Configuration); + } + writer.WriteEndObject(); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsData.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsData.cs new file mode 100644 index 0000000000000..f29f5cbf8b495 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsData.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> Contains the list of patients, and configuration data. </summary> + public partial class RadiologyInsightsData + { + /// <summary> Initializes a new instance of <see cref="RadiologyInsightsData"/>. </summary> + /// <param name="patients"> The list of patients, including their clinical information and data. </param> + /// <exception cref="ArgumentNullException"> <paramref name="patients"/> is null. </exception> + public RadiologyInsightsData(IEnumerable<PatientRecord> patients) + { + Argument.AssertNotNull(patients, nameof(patients)); + + Patients = patients.ToList(); + } + + /// <summary> Initializes a new instance of <see cref="RadiologyInsightsData"/>. </summary> + /// <param name="patients"> The list of patients, including their clinical information and data. </param> + /// <param name="configuration"> Configuration affecting the Radiology Insights model's inference. </param> + internal RadiologyInsightsData(IList<PatientRecord> patients, RadiologyInsightsModelConfiguration configuration) + { + Patients = patients; + Configuration = configuration; + } + + /// <summary> The list of patients, including their clinical information and data. </summary> + public IList<PatientRecord> Patients { get; } + /// <summary> Configuration affecting the Radiology Insights model's inference. </summary> + public RadiologyInsightsModelConfiguration Configuration { get; set; } + } +} 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 new file mode 100644 index 0000000000000..f8b85330fed70 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInference.Serialization.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class RadiologyInsightsInference + { + internal static RadiologyInsightsInference DeserializeRadiologyInsightsInference(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + if (element.TryGetProperty("kind", out JsonElement discriminator)) + { + switch (discriminator.GetString()) + { + case "ageMismatch": return AgeMismatchInference.DeserializeAgeMismatchInference(element); + case "sexMismatch": return SexMismatchInference.DeserializeSexMismatchInference(element); + case "lateralityDiscrepancy": return LateralityDiscrepancyInference.DeserializeLateralityDiscrepancyInference(element); + case "completeOrderDiscrepancy": return CompleteOrderDiscrepancyInference.DeserializeCompleteOrderDiscrepancyInference(element); + case "limitedOrderDiscrepancy": return LimitedOrderDiscrepancyInference.DeserializeLimitedOrderDiscrepancyInference(element); + case "finding": return FindingInference.DeserializeFindingInference(element); + case "criticalResult": return CriticalResultInference.DeserializeCriticalResultInference(element); + case "radiologyProcedure": return RadiologyProcedureInference.DeserializeRadiologyProcedureInference(element); + case "followupRecommendation": return FollowupRecommendationInference.DeserializeFollowupRecommendationInference(element); + case "followupCommunication": return FollowupCommunicationInference.DeserializeFollowupCommunicationInference(element); + } + } + return UnknownRadiologyInsightsInference.DeserializeUnknownRadiologyInsightsInference(element); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static RadiologyInsightsInference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRadiologyInsightsInference(document.RootElement); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInference.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInference.cs new file mode 100644 index 0000000000000..8a4fee6572065 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInference.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> + /// An inference made by the Radiology Insights model regarding a patient. + /// - AgeMismatch + /// - SexMismatch + /// - LateralityDiscrepancy + /// - CompleteOrderDiscrepancy + /// - LimitedOrderDiscrepancy + /// - Finding + /// - CriticalResult + /// - FollowupRecommendation + /// - RadiologyProcedure + /// - FollowupCommunication + /// Please note <see cref="RadiologyInsightsInference"/> 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 <see cref="AgeMismatchInference"/>, <see cref="SexMismatchInference"/>, <see cref="LateralityDiscrepancyInference"/>, <see cref="CompleteOrderDiscrepancyInference"/>, <see cref="LimitedOrderDiscrepancyInference"/>, <see cref="FindingInference"/>, <see cref="CriticalResultInference"/>, <see cref="RadiologyProcedureInference"/>, <see cref="FollowupRecommendationInference"/> and <see cref="FollowupCommunicationInference"/>. + /// </summary> + public abstract partial class RadiologyInsightsInference + { + /// <summary> Initializes a new instance of <see cref="RadiologyInsightsInference"/>. </summary> + protected RadiologyInsightsInference() + { + Extension = new ChangeTrackingList<Extension>(); + } + + /// <summary> Initializes a new instance of <see cref="RadiologyInsightsInference"/>. </summary> + /// <param name="kind"> Discriminator. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + internal RadiologyInsightsInference(string kind, IReadOnlyList<Extension> extension) + { + Kind = kind; + Extension = extension; + } + + /// <summary> Discriminator. </summary> + internal string Kind { get; set; } + /// <summary> Additional Content defined by implementations. </summary> + public IReadOnlyList<Extension> Extension { get; } + } +} 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 new file mode 100644 index 0000000000000..fb4a44573ab8d --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInferenceOptions.Serialization.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class RadiologyInsightsInferenceOptions : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(FollowupRecommendation)) + { + writer.WritePropertyName("followupRecommendation"u8); + writer.WriteObjectValue(FollowupRecommendation); + } + if (Optional.IsDefined(Finding)) + { + writer.WritePropertyName("finding"u8); + writer.WriteObjectValue(Finding); + } + writer.WriteEndObject(); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInferenceOptions.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInferenceOptions.cs new file mode 100644 index 0000000000000..598e62a04cf62 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInferenceOptions.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> Options regarding follow up recommendation inferences and finding inferences. </summary> + public partial class RadiologyInsightsInferenceOptions + { + /// <summary> Initializes a new instance of <see cref="RadiologyInsightsInferenceOptions"/>. </summary> + public RadiologyInsightsInferenceOptions() + { + } + + /// <summary> Initializes a new instance of <see cref="RadiologyInsightsInferenceOptions"/>. </summary> + /// <param name="followupRecommendation"> Follow-up recommendation options. </param> + /// <param name="finding"> Finding options. </param> + internal RadiologyInsightsInferenceOptions(FollowupRecommendationOptions followupRecommendation, FindingOptions finding) + { + FollowupRecommendation = followupRecommendation; + Finding = finding; + } + + /// <summary> Follow-up recommendation options. </summary> + public FollowupRecommendationOptions FollowupRecommendation { get; set; } + /// <summary> Finding options. </summary> + public FindingOptions Finding { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInferenceResult.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInferenceResult.Serialization.cs new file mode 100644 index 0000000000000..c31af0df264f1 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInferenceResult.Serialization.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class RadiologyInsightsInferenceResult + { + internal static RadiologyInsightsInferenceResult DeserializeRadiologyInsightsInferenceResult(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IReadOnlyList<RadiologyInsightsPatientResult> patientResults = default; + string modelVersion = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("patientResults"u8)) + { + List<RadiologyInsightsPatientResult> array = new List<RadiologyInsightsPatientResult>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RadiologyInsightsPatientResult.DeserializeRadiologyInsightsPatientResult(item)); + } + patientResults = array; + continue; + } + if (property.NameEquals("modelVersion"u8)) + { + modelVersion = property.Value.GetString(); + continue; + } + } + return new RadiologyInsightsInferenceResult(patientResults, modelVersion); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static RadiologyInsightsInferenceResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRadiologyInsightsInferenceResult(document.RootElement); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInferenceResult.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInferenceResult.cs new file mode 100644 index 0000000000000..447a784487131 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInferenceResult.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> The inference results for the Radiology Insights request. If field 'status' has value 'succeeded', then field 'result' will contain an instance of RadiologyInsightsInferenceResult. </summary> + public partial class RadiologyInsightsInferenceResult + { + /// <summary> Initializes a new instance of <see cref="RadiologyInsightsInferenceResult"/>. </summary> + /// <param name="patientResults"> Results for the patients given in the request. </param> + /// <param name="modelVersion"> The version of the model used for inference, expressed as the model date. </param> + /// <exception cref="ArgumentNullException"> <paramref name="patientResults"/> or <paramref name="modelVersion"/> is null. </exception> + internal RadiologyInsightsInferenceResult(IEnumerable<RadiologyInsightsPatientResult> patientResults, string modelVersion) + { + Argument.AssertNotNull(patientResults, nameof(patientResults)); + Argument.AssertNotNull(modelVersion, nameof(modelVersion)); + + PatientResults = patientResults.ToList(); + ModelVersion = modelVersion; + } + + /// <summary> Initializes a new instance of <see cref="RadiologyInsightsInferenceResult"/>. </summary> + /// <param name="patientResults"> Results for the patients given in the request. </param> + /// <param name="modelVersion"> The version of the model used for inference, expressed as the model date. </param> + internal RadiologyInsightsInferenceResult(IReadOnlyList<RadiologyInsightsPatientResult> patientResults, string modelVersion) + { + PatientResults = patientResults; + ModelVersion = modelVersion; + } + + /// <summary> Results for the patients given in the request. </summary> + public IReadOnlyList<RadiologyInsightsPatientResult> PatientResults { get; } + /// <summary> The version of the model used for inference, expressed as the model date. </summary> + public string ModelVersion { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInferenceType.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInferenceType.cs new file mode 100644 index 0000000000000..3732ff6a8bc1c --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInferenceType.cs @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> A Radiology Insights inference types. </summary> + public readonly partial struct RadiologyInsightsInferenceType : IEquatable<RadiologyInsightsInferenceType> + { + private readonly string _value; + + /// <summary> Initializes a new instance of <see cref="RadiologyInsightsInferenceType"/>. </summary> + /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception> + public RadiologyInsightsInferenceType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AgeMismatchValue = "ageMismatch"; + private const string LateralityDiscrepancyValue = "lateralityDiscrepancy"; + private const string SexMismatchValue = "sexMismatch"; + private const string CompleteOrderDiscrepancyValue = "completeOrderDiscrepancy"; + private const string LimitedOrderDiscrepancyValue = "limitedOrderDiscrepancy"; + private const string FindingValue = "finding"; + private const string CriticalResultValue = "criticalResult"; + private const string FollowupRecommendationValue = "followupRecommendation"; + private const string FollowupCommunicationValue = "followupCommunication"; + private const string RadiologyProcedureValue = "radiologyProcedure"; + + /// <summary> Age mismatch inference type. </summary> + public static RadiologyInsightsInferenceType AgeMismatch { get; } = new RadiologyInsightsInferenceType(AgeMismatchValue); + /// <summary> Laterality discrepancy inference type. </summary> + public static RadiologyInsightsInferenceType LateralityDiscrepancy { get; } = new RadiologyInsightsInferenceType(LateralityDiscrepancyValue); + /// <summary> Sex mismatch inference type. </summary> + public static RadiologyInsightsInferenceType SexMismatch { get; } = new RadiologyInsightsInferenceType(SexMismatchValue); + /// <summary> Complete order discrepancy inference type. </summary> + public static RadiologyInsightsInferenceType CompleteOrderDiscrepancy { get; } = new RadiologyInsightsInferenceType(CompleteOrderDiscrepancyValue); + /// <summary> Limited order discrepancy inference type. </summary> + public static RadiologyInsightsInferenceType LimitedOrderDiscrepancy { get; } = new RadiologyInsightsInferenceType(LimitedOrderDiscrepancyValue); + /// <summary> Finding inference type. </summary> + public static RadiologyInsightsInferenceType Finding { get; } = new RadiologyInsightsInferenceType(FindingValue); + /// <summary> Critical finding inference type. </summary> + public static RadiologyInsightsInferenceType CriticalResult { get; } = new RadiologyInsightsInferenceType(CriticalResultValue); + /// <summary> Recommendation inference type. </summary> + public static RadiologyInsightsInferenceType FollowupRecommendation { get; } = new RadiologyInsightsInferenceType(FollowupRecommendationValue); + /// <summary> Followup Communication inference type. </summary> + public static RadiologyInsightsInferenceType FollowupCommunication { get; } = new RadiologyInsightsInferenceType(FollowupCommunicationValue); + /// <summary> Radiology Procedure inference type. </summary> + public static RadiologyInsightsInferenceType RadiologyProcedure { get; } = new RadiologyInsightsInferenceType(RadiologyProcedureValue); + /// <summary> Determines if two <see cref="RadiologyInsightsInferenceType"/> values are the same. </summary> + public static bool operator ==(RadiologyInsightsInferenceType left, RadiologyInsightsInferenceType right) => left.Equals(right); + /// <summary> Determines if two <see cref="RadiologyInsightsInferenceType"/> values are not the same. </summary> + public static bool operator !=(RadiologyInsightsInferenceType left, RadiologyInsightsInferenceType right) => !left.Equals(right); + /// <summary> Converts a string to a <see cref="RadiologyInsightsInferenceType"/>. </summary> + public static implicit operator RadiologyInsightsInferenceType(string value) => new RadiologyInsightsInferenceType(value); + + /// <inheritdoc /> + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is RadiologyInsightsInferenceType other && Equals(other); + /// <inheritdoc /> + public bool Equals(RadiologyInsightsInferenceType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// <inheritdoc /> + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// <inheritdoc /> + public override string ToString() => _value; + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsModelConfiguration.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsModelConfiguration.Serialization.cs new file mode 100644 index 0000000000000..abb20441a4065 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsModelConfiguration.Serialization.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class RadiologyInsightsModelConfiguration : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Verbose)) + { + writer.WritePropertyName("verbose"u8); + writer.WriteBooleanValue(Verbose.Value); + } + if (Optional.IsDefined(IncludeEvidence)) + { + writer.WritePropertyName("includeEvidence"u8); + writer.WriteBooleanValue(IncludeEvidence.Value); + } + if (Optional.IsCollectionDefined(InferenceTypes)) + { + writer.WritePropertyName("inferenceTypes"u8); + writer.WriteStartArray(); + foreach (var item in InferenceTypes) + { + writer.WriteStringValue(item.ToString()); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(InferenceOptions)) + { + writer.WritePropertyName("inferenceOptions"u8); + writer.WriteObjectValue(InferenceOptions); + } + if (Optional.IsDefined(Locale)) + { + writer.WritePropertyName("locale"u8); + writer.WriteStringValue(Locale); + } + writer.WriteEndObject(); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsModelConfiguration.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsModelConfiguration.cs new file mode 100644 index 0000000000000..5e77cf566fd77 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsModelConfiguration.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> Configuration affecting the Radiology Insights model's inference. </summary> + public partial class RadiologyInsightsModelConfiguration + { + /// <summary> Initializes a new instance of <see cref="RadiologyInsightsModelConfiguration"/>. </summary> + public RadiologyInsightsModelConfiguration() + { + InferenceTypes = new ChangeTrackingList<RadiologyInsightsInferenceType>(); + } + + /// <summary> Initializes a new instance of <see cref="RadiologyInsightsModelConfiguration"/>. </summary> + /// <param name="verbose"> An indication whether the model should produce verbose output. </param> + /// <param name="includeEvidence"> An indication whether the model's output should include evidence for the inferences. </param> + /// <param name="inferenceTypes"> This is a list of inference types to be inferred for the current request. It could be used if only part of the Radiology Insights inferences are required. If this list is omitted or empty, the model will return all the inference types. </param> + /// <param name="inferenceOptions"> Options regarding follow up recommendation inferences and finding inferences. </param> + /// <param name="locale"> Local for the model to use. If not specified, the model will use the default locale. </param> + internal RadiologyInsightsModelConfiguration(bool? verbose, bool? includeEvidence, IList<RadiologyInsightsInferenceType> inferenceTypes, RadiologyInsightsInferenceOptions inferenceOptions, string locale) + { + Verbose = verbose; + IncludeEvidence = includeEvidence; + InferenceTypes = inferenceTypes; + InferenceOptions = inferenceOptions; + Locale = locale; + } + + /// <summary> An indication whether the model should produce verbose output. </summary> + public bool? Verbose { get; set; } + /// <summary> An indication whether the model's output should include evidence for the inferences. </summary> + public bool? IncludeEvidence { get; set; } + /// <summary> This is a list of inference types to be inferred for the current request. It could be used if only part of the Radiology Insights inferences are required. If this list is omitted or empty, the model will return all the inference types. </summary> + public IList<RadiologyInsightsInferenceType> InferenceTypes { get; } + /// <summary> Options regarding follow up recommendation inferences and finding inferences. </summary> + public RadiologyInsightsInferenceOptions InferenceOptions { get; set; } + /// <summary> Local for the model to use. If not specified, the model will use the default locale. </summary> + public string Locale { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsPatientResult.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsPatientResult.Serialization.cs new file mode 100644 index 0000000000000..e86f69a2f7886 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsPatientResult.Serialization.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class RadiologyInsightsPatientResult + { + internal static RadiologyInsightsPatientResult DeserializeRadiologyInsightsPatientResult(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string patientId = default; + IReadOnlyList<RadiologyInsightsInference> inferences = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("patientId"u8)) + { + patientId = property.Value.GetString(); + continue; + } + if (property.NameEquals("inferences"u8)) + { + List<RadiologyInsightsInference> array = new List<RadiologyInsightsInference>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RadiologyInsightsInference.DeserializeRadiologyInsightsInference(item)); + } + inferences = array; + continue; + } + } + return new RadiologyInsightsPatientResult(patientId, inferences); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static RadiologyInsightsPatientResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRadiologyInsightsPatientResult(document.RootElement); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsPatientResult.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsPatientResult.cs new file mode 100644 index 0000000000000..9e90795d7fb0b --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsPatientResult.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> Results of the model's work for a single patient. </summary> + public partial class RadiologyInsightsPatientResult + { + /// <summary> Initializes a new instance of <see cref="RadiologyInsightsPatientResult"/>. </summary> + /// <param name="patientId"> Identifier given for the patient in the request. </param> + /// <param name="inferences"> The model's inferences for the given patient. </param> + /// <exception cref="ArgumentNullException"> <paramref name="patientId"/> or <paramref name="inferences"/> is null. </exception> + internal RadiologyInsightsPatientResult(string patientId, IEnumerable<RadiologyInsightsInference> inferences) + { + Argument.AssertNotNull(patientId, nameof(patientId)); + Argument.AssertNotNull(inferences, nameof(inferences)); + + PatientId = patientId; + Inferences = inferences.ToList(); + } + + /// <summary> Initializes a new instance of <see cref="RadiologyInsightsPatientResult"/>. </summary> + /// <param name="patientId"> Identifier given for the patient in the request. </param> + /// <param name="inferences"> The model's inferences for the given patient. </param> + internal RadiologyInsightsPatientResult(string patientId, IReadOnlyList<RadiologyInsightsInference> inferences) + { + PatientId = patientId; + Inferences = inferences; + } + + /// <summary> Identifier given for the patient in the request. </summary> + public string PatientId { get; } + /// <summary> + /// The model's inferences for the given patient. + /// Please note <see cref="RadiologyInsightsInference"/> 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 <see cref="AgeMismatchInference"/>, <see cref="SexMismatchInference"/>, <see cref="LateralityDiscrepancyInference"/>, <see cref="CompleteOrderDiscrepancyInference"/>, <see cref="LimitedOrderDiscrepancyInference"/>, <see cref="FindingInference"/>, <see cref="CriticalResultInference"/>, <see cref="RadiologyProcedureInference"/>, <see cref="FollowupRecommendationInference"/> and <see cref="FollowupCommunicationInference"/>. + /// </summary> + public IReadOnlyList<RadiologyInsightsInference> Inferences { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyProcedureInference.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyProcedureInference.Serialization.cs new file mode 100644 index 0000000000000..f67e9f6076674 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyProcedureInference.Serialization.cs @@ -0,0 +1,90 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class RadiologyProcedureInference + { + internal static RadiologyProcedureInference DeserializeRadiologyProcedureInference(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional<IReadOnlyList<CodeableConcept>> procedureCodes = default; + IReadOnlyList<ImagingProcedure> imagingProcedures = default; + OrderedProcedure orderedProcedure = default; + string kind = default; + Optional<IReadOnlyList<Extension>> extension = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("procedureCodes"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<CodeableConcept> array = new List<CodeableConcept>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(CodeableConcept.DeserializeCodeableConcept(item)); + } + procedureCodes = array; + continue; + } + if (property.NameEquals("imagingProcedures"u8)) + { + List<ImagingProcedure> array = new List<ImagingProcedure>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(ImagingProcedure.DeserializeImagingProcedure(item)); + } + imagingProcedures = array; + continue; + } + if (property.NameEquals("orderedProcedure"u8)) + { + orderedProcedure = OrderedProcedure.DeserializeOrderedProcedure(property.Value); + continue; + } + if (property.NameEquals("kind"u8)) + { + kind = property.Value.GetString(); + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RadiologyInsights.Extension.DeserializeExtension(item)); + } + extension = array; + continue; + } + } + return new RadiologyProcedureInference(kind, Optional.ToList(extension), Optional.ToList(procedureCodes), imagingProcedures, orderedProcedure); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static new RadiologyProcedureInference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRadiologyProcedureInference(document.RootElement); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyProcedureInference.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyProcedureInference.cs new file mode 100644 index 0000000000000..2cff14e1c527c --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyProcedureInference.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> Radiology procedures are the specific imaging studies or examinations ordered for the patient, extracted from the document information and text. </summary> + public partial class RadiologyProcedureInference : RadiologyInsightsInference + { + /// <summary> Initializes a new instance of <see cref="RadiologyProcedureInference"/>. </summary> + /// <param name="imagingProcedures"> Imaging procedures. </param> + /// <param name="orderedProcedure"> Ordered procedure information from the document information or text. </param> + /// <exception cref="ArgumentNullException"> <paramref name="imagingProcedures"/> or <paramref name="orderedProcedure"/> is null. </exception> + internal RadiologyProcedureInference(IEnumerable<ImagingProcedure> imagingProcedures, OrderedProcedure orderedProcedure) + { + Argument.AssertNotNull(imagingProcedures, nameof(imagingProcedures)); + Argument.AssertNotNull(orderedProcedure, nameof(orderedProcedure)); + + Kind = "radiologyProcedure"; + ProcedureCodes = new ChangeTrackingList<CodeableConcept>(); + ImagingProcedures = imagingProcedures.ToList(); + OrderedProcedure = orderedProcedure; + } + + /// <summary> Initializes a new instance of <see cref="RadiologyProcedureInference"/>. </summary> + /// <param name="kind"> Discriminator. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="procedureCodes"> LOINC codes for the procedure. </param> + /// <param name="imagingProcedures"> Imaging procedures. </param> + /// <param name="orderedProcedure"> Ordered procedure information from the document information or text. </param> + internal RadiologyProcedureInference(string kind, IReadOnlyList<Extension> extension, IReadOnlyList<CodeableConcept> procedureCodes, IReadOnlyList<ImagingProcedure> imagingProcedures, OrderedProcedure orderedProcedure) : base(kind, extension) + { + ProcedureCodes = procedureCodes; + ImagingProcedures = imagingProcedures; + OrderedProcedure = orderedProcedure; + } + + /// <summary> LOINC codes for the procedure. </summary> + public IReadOnlyList<CodeableConcept> ProcedureCodes { get; } + /// <summary> Imaging procedures. </summary> + public IReadOnlyList<ImagingProcedure> ImagingProcedures { get; } + /// <summary> Ordered procedure information from the document information or text. </summary> + public OrderedProcedure OrderedProcedure { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Range.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Range.Serialization.cs new file mode 100644 index 0000000000000..aa2422a92c81a --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Range.Serialization.cs @@ -0,0 +1,117 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class Range : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(Low)) + { + writer.WritePropertyName("low"u8); + writer.WriteObjectValue(Low); + } + if (Optional.IsDefined(High)) + { + writer.WritePropertyName("high"u8); + writer.WriteObjectValue(High); + } + writer.WriteEndObject(); + } + + internal static Range DeserializeRange(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional<string> id = default; + Optional<IList<Extension>> extension = default; + Optional<Quantity> low = default; + Optional<Quantity> high = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RadiologyInsights.Extension.DeserializeExtension(item)); + } + extension = array; + continue; + } + if (property.NameEquals("low"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + low = Quantity.DeserializeQuantity(property.Value); + continue; + } + if (property.NameEquals("high"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + high = Quantity.DeserializeQuantity(property.Value); + continue; + } + } + return new Range(id.Value, Optional.ToList(extension), low.Value, high.Value); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static Range FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRange(document.RootElement); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Range.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Range.cs new file mode 100644 index 0000000000000..c70b97d580894 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Range.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> + /// A set of ordered Quantities defined by a low and high limit + /// Based on [FHIR Range](https://www.hl7.org/fhir/R4/datatypes.html#Range) + /// </summary> + public partial class Range + { + /// <summary> Initializes a new instance of <see cref="Range"/>. </summary> + public Range() + { + Extension = new ChangeTrackingList<Extension>(); + } + + /// <summary> Initializes a new instance of <see cref="Range"/>. </summary> + /// <param name="id"> Unique id for inter-element referencing. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="low"> Low limit. </param> + /// <param name="high"> High limit. </param> + internal Range(string id, IList<Extension> extension, Quantity low, Quantity high) + { + Id = id; + Extension = extension; + Low = low; + High = high; + } + + /// <summary> Unique id for inter-element referencing. </summary> + public string Id { get; set; } + /// <summary> Additional Content defined by implementations. </summary> + public IList<Extension> Extension { get; } + /// <summary> Low limit. </summary> + public Quantity Low { get; set; } + /// <summary> High limit. </summary> + public Quantity High { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Ratio.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Ratio.Serialization.cs new file mode 100644 index 0000000000000..1a7d4586b6202 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Ratio.Serialization.cs @@ -0,0 +1,117 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class Ratio : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(Numerator)) + { + writer.WritePropertyName("numerator"u8); + writer.WriteObjectValue(Numerator); + } + if (Optional.IsDefined(Denominator)) + { + writer.WritePropertyName("denominator"u8); + writer.WriteObjectValue(Denominator); + } + writer.WriteEndObject(); + } + + internal static Ratio DeserializeRatio(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional<string> id = default; + Optional<IList<Extension>> extension = default; + Optional<Quantity> numerator = default; + Optional<Quantity> denominator = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RadiologyInsights.Extension.DeserializeExtension(item)); + } + extension = array; + continue; + } + if (property.NameEquals("numerator"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + numerator = Quantity.DeserializeQuantity(property.Value); + continue; + } + if (property.NameEquals("denominator"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + denominator = Quantity.DeserializeQuantity(property.Value); + continue; + } + } + return new Ratio(id.Value, Optional.ToList(extension), numerator.Value, denominator.Value); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static Ratio FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRatio(document.RootElement); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Ratio.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Ratio.cs new file mode 100644 index 0000000000000..482fe4b593e50 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Ratio.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> + /// A ratio of two Quantity values - a numerator and a denominator + /// Based on [FHIR Ratio](https://www.hl7.org/fhir/R4/datatypes.html#Ratio) + /// </summary> + public partial class Ratio + { + /// <summary> Initializes a new instance of <see cref="Ratio"/>. </summary> + public Ratio() + { + Extension = new ChangeTrackingList<Extension>(); + } + + /// <summary> Initializes a new instance of <see cref="Ratio"/>. </summary> + /// <param name="id"> Unique id for inter-element referencing. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="numerator"> Numerator value. </param> + /// <param name="denominator"> Denominator value. </param> + internal Ratio(string id, IList<Extension> extension, Quantity numerator, Quantity denominator) + { + Id = id; + Extension = extension; + Numerator = numerator; + Denominator = denominator; + } + + /// <summary> Unique id for inter-element referencing. </summary> + public string Id { get; set; } + /// <summary> Additional Content defined by implementations. </summary> + public IList<Extension> Extension { get; } + /// <summary> Numerator value. </summary> + public Quantity Numerator { get; set; } + /// <summary> Denominator value. </summary> + public Quantity Denominator { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RecommendationFinding.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RecommendationFinding.Serialization.cs new file mode 100644 index 0000000000000..3168be37a2b76 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RecommendationFinding.Serialization.cs @@ -0,0 +1,78 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class RecommendationFinding + { + internal static RecommendationFinding DeserializeRecommendationFinding(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional<IReadOnlyList<Extension>> extension = default; + Optional<Observation> finding = default; + Optional<CriticalResult> criticalFinding = default; + string recommendationFindingStatus = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RadiologyInsights.Extension.DeserializeExtension(item)); + } + extension = array; + continue; + } + if (property.NameEquals("finding"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + finding = Observation.DeserializeObservation(property.Value); + continue; + } + if (property.NameEquals("criticalFinding"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + criticalFinding = CriticalResult.DeserializeCriticalResult(property.Value); + continue; + } + if (property.NameEquals("recommendationFindingStatus"u8)) + { + recommendationFindingStatus = property.Value.GetString(); + continue; + } + } + return new RecommendationFinding(Optional.ToList(extension), finding.Value, criticalFinding.Value, recommendationFindingStatus); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static RecommendationFinding FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRecommendationFinding(document.RootElement); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RecommendationFinding.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RecommendationFinding.cs new file mode 100644 index 0000000000000..d980c5eb4dafa --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RecommendationFinding.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> Finding reference for recommendation. </summary> + public partial class RecommendationFinding + { + /// <summary> Initializes a new instance of <see cref="RecommendationFinding"/>. </summary> + /// <param name="recommendationFindingStatus"> Recommendation finding status. </param> + /// <exception cref="ArgumentNullException"> <paramref name="recommendationFindingStatus"/> is null. </exception> + internal RecommendationFinding(string recommendationFindingStatus) + { + Argument.AssertNotNull(recommendationFindingStatus, nameof(recommendationFindingStatus)); + + Extension = new ChangeTrackingList<Extension>(); + RecommendationFindingStatus = recommendationFindingStatus; + } + + /// <summary> Initializes a new instance of <see cref="RecommendationFinding"/>. </summary> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="finding"> Finding linked to a recommendation. </param> + /// <param name="criticalFinding"> Critical result linked to a recommendation. </param> + /// <param name="recommendationFindingStatus"> Recommendation finding status. </param> + internal RecommendationFinding(IReadOnlyList<Extension> extension, Observation finding, CriticalResult criticalFinding, string recommendationFindingStatus) + { + Extension = extension; + Finding = finding; + CriticalFinding = criticalFinding; + RecommendationFindingStatus = recommendationFindingStatus; + } + + /// <summary> Additional Content defined by implementations. </summary> + public IReadOnlyList<Extension> Extension { get; } + /// <summary> Finding linked to a recommendation. </summary> + public Observation Finding { get; } + /// <summary> Critical result linked to a recommendation. </summary> + public CriticalResult CriticalFinding { get; } + /// <summary> Recommendation finding status. </summary> + public string RecommendationFindingStatus { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Reference.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Reference.Serialization.cs new file mode 100644 index 0000000000000..fdf4fee99658b --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Reference.Serialization.cs @@ -0,0 +1,135 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class Reference : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(ReferenceProperty)) + { + writer.WritePropertyName("reference"u8); + writer.WriteStringValue(ReferenceProperty); + } + if (Optional.IsDefined(Type)) + { + writer.WritePropertyName("type"u8); + writer.WriteStringValue(Type); + } + if (Optional.IsDefined(Identifier)) + { + writer.WritePropertyName("identifier"u8); + writer.WriteObjectValue(Identifier); + } + if (Optional.IsDefined(Display)) + { + writer.WritePropertyName("display"u8); + writer.WriteStringValue(Display); + } + writer.WriteEndObject(); + } + + internal static Reference DeserializeReference(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional<string> id = default; + Optional<IList<Extension>> extension = default; + Optional<string> reference = default; + Optional<string> type = default; + Optional<Identifier> identifier = default; + Optional<string> display = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RadiologyInsights.Extension.DeserializeExtension(item)); + } + extension = array; + continue; + } + if (property.NameEquals("reference"u8)) + { + reference = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("identifier"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + identifier = Identifier.DeserializeIdentifier(property.Value); + continue; + } + if (property.NameEquals("display"u8)) + { + display = property.Value.GetString(); + continue; + } + } + return new Reference(id.Value, Optional.ToList(extension), reference.Value, type.Value, identifier.Value, display.Value); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static Reference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeReference(document.RootElement); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Reference.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Reference.cs new file mode 100644 index 0000000000000..9c5eac597ecc5 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Reference.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> + /// A reference from one resource to another + /// Based on [FHIR Reference](https://www.hl7.org/fhir/R4/references.html) + /// </summary> + public partial class Reference + { + /// <summary> Initializes a new instance of <see cref="Reference"/>. </summary> + public Reference() + { + Extension = new ChangeTrackingList<Extension>(); + } + + /// <summary> Initializes a new instance of <see cref="Reference"/>. </summary> + /// <param name="id"> Unique id for inter-element referencing. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="referenceProperty"> Literal reference, Relative, internal or absolute URL. </param> + /// <param name="type"> Type the reference refers to (e.g. "Patient"). </param> + /// <param name="identifier"> Logical reference, when literal reference is not known. </param> + /// <param name="display"> Text alternative for the resource. </param> + internal Reference(string id, IList<Extension> extension, string referenceProperty, string type, Identifier identifier, string display) + { + Id = id; + Extension = extension; + ReferenceProperty = referenceProperty; + Type = type; + Identifier = identifier; + Display = display; + } + + /// <summary> Unique id for inter-element referencing. </summary> + public string Id { get; set; } + /// <summary> Additional Content defined by implementations. </summary> + public IList<Extension> Extension { get; } + /// <summary> Literal reference, Relative, internal or absolute URL. </summary> + public string ReferenceProperty { get; set; } + /// <summary> Type the reference refers to (e.g. "Patient"). </summary> + public string Type { get; set; } + /// <summary> Logical reference, when literal reference is not known. </summary> + public Identifier Identifier { get; set; } + /// <summary> Text alternative for the resource. </summary> + public string Display { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Resource.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Resource.Serialization.cs new file mode 100644 index 0000000000000..2c97086f24ca0 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Resource.Serialization.cs @@ -0,0 +1,124 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class Resource : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("resourceType"u8); + writer.WriteStringValue(ResourceType); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsDefined(Meta)) + { + writer.WritePropertyName("meta"u8); + writer.WriteObjectValue(Meta); + } + if (Optional.IsDefined(ImplicitRules)) + { + writer.WritePropertyName("implicitRules"u8); + writer.WriteStringValue(ImplicitRules); + } + if (Optional.IsDefined(Language)) + { + writer.WritePropertyName("language"u8); + writer.WriteStringValue(Language); + } + foreach (var item in AdditionalProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + writer.WriteEndObject(); + } + + internal static Resource DeserializeResource(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string resourceType = default; + Optional<string> id = default; + Optional<Meta> meta = default; + Optional<string> implicitRules = default; + Optional<string> language = default; + IDictionary<string, BinaryData> additionalProperties = default; + Dictionary<string, BinaryData> additionalPropertiesDictionary = new Dictionary<string, BinaryData>(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("resourceType"u8)) + { + resourceType = property.Value.GetString(); + continue; + } + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("meta"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + meta = Meta.DeserializeMeta(property.Value); + continue; + } + if (property.NameEquals("implicitRules"u8)) + { + implicitRules = property.Value.GetString(); + continue; + } + if (property.NameEquals("language"u8)) + { + language = property.Value.GetString(); + continue; + } + additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + additionalProperties = additionalPropertiesDictionary; + return new Resource(resourceType, id.Value, meta.Value, implicitRules.Value, language.Value, additionalProperties); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static Resource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeResource(document.RootElement); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Resource.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Resource.cs new file mode 100644 index 0000000000000..e9aab2b7512ad --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/Resource.cs @@ -0,0 +1,90 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> + /// Resource is the ancestor of DomainResource from which most resources are derived. Bundle, Parameters, and Binary extend Resource directly. + /// Based on [FHIR Resource](https://www.hl7.org/fhir/r4/resource.html + /// </summary> + public partial class Resource + { + /// <summary> Initializes a new instance of <see cref="Resource"/>. </summary> + /// <param name="resourceType"> The type of resource. </param> + /// <exception cref="ArgumentNullException"> <paramref name="resourceType"/> is null. </exception> + public Resource(string resourceType) + { + Argument.AssertNotNull(resourceType, nameof(resourceType)); + + ResourceType = resourceType; + AdditionalProperties = new ChangeTrackingDictionary<string, BinaryData>(); + } + + /// <summary> Initializes a new instance of <see cref="Resource"/>. </summary> + /// <param name="resourceType"> The type of resource. </param> + /// <param name="id"> Resource Id. </param> + /// <param name="meta"> Metadata about the resource. </param> + /// <param name="implicitRules"> A set of rules under which this content was created. </param> + /// <param name="language"> Language of the resource content. </param> + /// <param name="additionalProperties"> Additional Properties. </param> + internal Resource(string resourceType, string id, Meta meta, string implicitRules, string language, IDictionary<string, BinaryData> additionalProperties) + { + ResourceType = resourceType; + Id = id; + Meta = meta; + ImplicitRules = implicitRules; + Language = language; + AdditionalProperties = additionalProperties; + } + + /// <summary> The type of resource. </summary> + public string ResourceType { get; set; } + /// <summary> Resource Id. </summary> + public string Id { get; set; } + /// <summary> Metadata about the resource. </summary> + public Meta Meta { get; set; } + /// <summary> A set of rules under which this content was created. </summary> + public string ImplicitRules { get; set; } + /// <summary> Language of the resource content. </summary> + public string Language { get; set; } + /// <summary> + /// Additional Properties + /// <para> + /// To assign an object to the value of this property use <see cref="BinaryData.FromObjectAsJson{T}(T, System.Text.Json.JsonSerializerOptions?)"/>. + /// </para> + /// <para> + /// To assign an already formatted json string to this property use <see cref="BinaryData.FromString(string)"/>. + /// </para> + /// <para> + /// Examples: + /// <list type="bullet"> + /// <item> + /// <term>BinaryData.FromObjectAsJson("foo")</term> + /// <description>Creates a payload of "foo".</description> + /// </item> + /// <item> + /// <term>BinaryData.FromString("\"foo\"")</term> + /// <description>Creates a payload of "foo".</description> + /// </item> + /// <item> + /// <term>BinaryData.FromObjectAsJson(new { key = "value" })</term> + /// <description>Creates a payload of { "key": "value" }.</description> + /// </item> + /// <item> + /// <term>BinaryData.FromString("{\"key\": \"value\"}")</term> + /// <description>Creates a payload of { "key": "value" }.</description> + /// </item> + /// </list> + /// </para> + /// </summary> + public IDictionary<string, BinaryData> AdditionalProperties { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/SampledData.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/SampledData.Serialization.cs new file mode 100644 index 0000000000000..0348da715e3dc --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/SampledData.Serialization.cs @@ -0,0 +1,167 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class SampledData : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + writer.WritePropertyName("origin"u8); + writer.WriteObjectValue(Origin); + writer.WritePropertyName("period"u8); + writer.WriteNumberValue(Period); + if (Optional.IsDefined(Factor)) + { + writer.WritePropertyName("factor"u8); + writer.WriteNumberValue(Factor.Value); + } + if (Optional.IsDefined(LowerLimit)) + { + writer.WritePropertyName("lowerLimit"u8); + writer.WriteNumberValue(LowerLimit.Value); + } + if (Optional.IsDefined(UpperLimit)) + { + writer.WritePropertyName("upperLimit"u8); + writer.WriteNumberValue(UpperLimit.Value); + } + writer.WritePropertyName("dimensions"u8); + writer.WriteNumberValue(Dimensions); + if (Optional.IsDefined(Data)) + { + writer.WritePropertyName("data"u8); + writer.WriteStringValue(Data); + } + writer.WriteEndObject(); + } + + internal static SampledData DeserializeSampledData(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional<string> id = default; + Optional<IList<Extension>> extension = default; + Quantity origin = default; + decimal period = default; + Optional<decimal> factor = default; + Optional<decimal> lowerLimit = default; + Optional<decimal> upperLimit = default; + int dimensions = default; + Optional<string> data = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RadiologyInsights.Extension.DeserializeExtension(item)); + } + extension = array; + continue; + } + if (property.NameEquals("origin"u8)) + { + origin = Quantity.DeserializeQuantity(property.Value); + continue; + } + if (property.NameEquals("period"u8)) + { + period = property.Value.GetDecimal(); + continue; + } + if (property.NameEquals("factor"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + factor = property.Value.GetDecimal(); + continue; + } + if (property.NameEquals("lowerLimit"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + lowerLimit = property.Value.GetDecimal(); + continue; + } + if (property.NameEquals("upperLimit"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + upperLimit = property.Value.GetDecimal(); + continue; + } + if (property.NameEquals("dimensions"u8)) + { + dimensions = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("data"u8)) + { + data = property.Value.GetString(); + continue; + } + } + return new SampledData(id.Value, Optional.ToList(extension), origin, period, Optional.ToNullable(factor), Optional.ToNullable(lowerLimit), Optional.ToNullable(upperLimit), dimensions, data.Value); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static SampledData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSampledData(document.RootElement); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/SampledData.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/SampledData.cs new file mode 100644 index 0000000000000..9727489f93ce6 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/SampledData.cs @@ -0,0 +1,77 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> + /// A series of measurements taken by a device + /// Based on [FHIR SampledData](https://www.hl7.org/fhir/R4/datatypes.html#SampledData) + /// </summary> + public partial class SampledData + { + /// <summary> Initializes a new instance of <see cref="SampledData"/>. </summary> + /// <param name="origin"> Zero value and units. </param> + /// <param name="period"> Number of milliseconds between samples. </param> + /// <param name="dimensions"> Number of sample points at each time point. </param> + /// <exception cref="ArgumentNullException"> <paramref name="origin"/> is null. </exception> + public SampledData(Quantity origin, decimal period, int dimensions) + { + Argument.AssertNotNull(origin, nameof(origin)); + + Extension = new ChangeTrackingList<Extension>(); + Origin = origin; + Period = period; + Dimensions = dimensions; + } + + /// <summary> Initializes a new instance of <see cref="SampledData"/>. </summary> + /// <param name="id"> Unique id for inter-element referencing. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="origin"> Zero value and units. </param> + /// <param name="period"> Number of milliseconds between samples. </param> + /// <param name="factor"> Multiply data by this before adding to origin. </param> + /// <param name="lowerLimit"> Lower limit of detection. </param> + /// <param name="upperLimit"> Upper limit of detection. </param> + /// <param name="dimensions"> Number of sample points at each time point. </param> + /// <param name="data"> Decimal values with spaces, or "E" | "U" | "L". </param> + internal SampledData(string id, IList<Extension> extension, Quantity origin, decimal period, decimal? factor, decimal? lowerLimit, decimal? upperLimit, int dimensions, string data) + { + Id = id; + Extension = extension; + Origin = origin; + Period = period; + Factor = factor; + LowerLimit = lowerLimit; + UpperLimit = upperLimit; + Dimensions = dimensions; + Data = data; + } + + /// <summary> Unique id for inter-element referencing. </summary> + public string Id { get; set; } + /// <summary> Additional Content defined by implementations. </summary> + public IList<Extension> Extension { get; } + /// <summary> Zero value and units. </summary> + public Quantity Origin { get; set; } + /// <summary> Number of milliseconds between samples. </summary> + public decimal Period { get; set; } + /// <summary> Multiply data by this before adding to origin. </summary> + public decimal? Factor { get; set; } + /// <summary> Lower limit of detection. </summary> + public decimal? LowerLimit { get; set; } + /// <summary> Upper limit of detection. </summary> + public decimal? UpperLimit { get; set; } + /// <summary> Number of sample points at each time point. </summary> + public int Dimensions { get; set; } + /// <summary> Decimal values with spaces, or "E" | "U" | "L". </summary> + public string Data { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/SexMismatchInference.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/SexMismatchInference.Serialization.cs new file mode 100644 index 0000000000000..09fb1d2951818 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/SexMismatchInference.Serialization.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class SexMismatchInference + { + internal static SexMismatchInference DeserializeSexMismatchInference(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + CodeableConcept sexIndication = default; + string kind = default; + Optional<IReadOnlyList<Extension>> extension = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("sexIndication"u8)) + { + sexIndication = CodeableConcept.DeserializeCodeableConcept(property.Value); + continue; + } + if (property.NameEquals("kind"u8)) + { + kind = property.Value.GetString(); + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RadiologyInsights.Extension.DeserializeExtension(item)); + } + extension = array; + continue; + } + } + return new SexMismatchInference(kind, Optional.ToList(extension), sexIndication); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static new SexMismatchInference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSexMismatchInference(document.RootElement); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/SexMismatchInference.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/SexMismatchInference.cs new file mode 100644 index 0000000000000..98669d050d178 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/SexMismatchInference.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> A notification for a sex mismatch is displayed when the gender, personal pronouns, gender-related body parts, or gender-related procedures mentioned in a patient's clinical document are either inconsistent or do not match the gender specified in the patient information. </summary> + public partial class SexMismatchInference : RadiologyInsightsInference + { + /// <summary> Initializes a new instance of <see cref="SexMismatchInference"/>. </summary> + /// <param name="sexIndication"> Sex indication : SNOMED CT code for gender finding. </param> + /// <exception cref="ArgumentNullException"> <paramref name="sexIndication"/> is null. </exception> + internal SexMismatchInference(CodeableConcept sexIndication) + { + Argument.AssertNotNull(sexIndication, nameof(sexIndication)); + + Kind = "sexMismatch"; + SexIndication = sexIndication; + } + + /// <summary> Initializes a new instance of <see cref="SexMismatchInference"/>. </summary> + /// <param name="kind"> Discriminator. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + /// <param name="sexIndication"> Sex indication : SNOMED CT code for gender finding. </param> + internal SexMismatchInference(string kind, IReadOnlyList<Extension> extension, CodeableConcept sexIndication) : base(kind, extension) + { + SexIndication = sexIndication; + } + + /// <summary> Sex indication : SNOMED CT code for gender finding. </summary> + public CodeableConcept SexIndication { get; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/SpecialtyType.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/SpecialtyType.cs new file mode 100644 index 0000000000000..801fc3573e0d2 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/SpecialtyType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> Known values codes that can be used to indicate the type of the Specialty. </summary> + public readonly partial struct SpecialtyType : IEquatable<SpecialtyType> + { + private readonly string _value; + + /// <summary> Initializes a new instance of <see cref="SpecialtyType"/>. </summary> + /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception> + public SpecialtyType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string PathologyValue = "pathology"; + private const string RadiologyValue = "radiology"; + + /// <summary> pathology. </summary> + public static SpecialtyType Pathology { get; } = new SpecialtyType(PathologyValue); + /// <summary> radiology. </summary> + public static SpecialtyType Radiology { get; } = new SpecialtyType(RadiologyValue); + /// <summary> Determines if two <see cref="SpecialtyType"/> values are the same. </summary> + public static bool operator ==(SpecialtyType left, SpecialtyType right) => left.Equals(right); + /// <summary> Determines if two <see cref="SpecialtyType"/> values are not the same. </summary> + public static bool operator !=(SpecialtyType left, SpecialtyType right) => !left.Equals(right); + /// <summary> Converts a string to a <see cref="SpecialtyType"/>. </summary> + public static implicit operator SpecialtyType(string value) => new SpecialtyType(value); + + /// <inheritdoc /> + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is SpecialtyType other && Equals(other); + /// <inheritdoc /> + public bool Equals(SpecialtyType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// <inheritdoc /> + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// <inheritdoc /> + public override string ToString() => _value; + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/TimePeriod.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/TimePeriod.Serialization.cs new file mode 100644 index 0000000000000..80fe9e7e10f7a --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/TimePeriod.Serialization.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + public partial class TimePeriod : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Start)) + { + writer.WritePropertyName("start"u8); + writer.WriteStringValue(Start.Value, "O"); + } + if (Optional.IsDefined(End)) + { + writer.WritePropertyName("end"u8); + writer.WriteStringValue(End.Value, "O"); + } + writer.WriteEndObject(); + } + + /// <summary> Convert into a Utf8JsonRequestContent. </summary> + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/TimePeriod.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/TimePeriod.cs new file mode 100644 index 0000000000000..e448224f060dc --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/TimePeriod.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> A duration of time during which an event is happening. </summary> + public partial class TimePeriod + { + /// <summary> Initializes a new instance of <see cref="TimePeriod"/>. </summary> + public TimePeriod() + { + } + + /// <summary> Initializes a new instance of <see cref="TimePeriod"/>. </summary> + /// <param name="start"> Starting time with inclusive boundary. </param> + /// <param name="end"> End time with inclusive boundary, if not ongoing. </param> + internal TimePeriod(DateTimeOffset? start, DateTimeOffset? end) + { + Start = start; + End = end; + } + + /// <summary> Starting time with inclusive boundary. </summary> + public DateTimeOffset? Start { get; set; } + /// <summary> End time with inclusive boundary, if not ongoing. </summary> + public DateTimeOffset? End { get; set; } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/UnknownProcedureRecommendation.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/UnknownProcedureRecommendation.Serialization.cs new file mode 100644 index 0000000000000..90743d23a1079 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/UnknownProcedureRecommendation.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Text.Json; +using Azure; + +namespace Azure.Health.Insights.RadiologyInsights +{ + internal partial class UnknownProcedureRecommendation + { + internal static UnknownProcedureRecommendation DeserializeUnknownProcedureRecommendation(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string kind = "Unknown"; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("kind"u8)) + { + kind = property.Value.GetString(); + continue; + } + } + return new UnknownProcedureRecommendation(kind); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static new UnknownProcedureRecommendation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownProcedureRecommendation(document.RootElement); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/UnknownProcedureRecommendation.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/UnknownProcedureRecommendation.cs new file mode 100644 index 0000000000000..7c99786c9f069 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/UnknownProcedureRecommendation.cs @@ -0,0 +1,19 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> Unknown version of ProcedureRecommendation. </summary> + internal partial class UnknownProcedureRecommendation : ProcedureRecommendation + { + /// <summary> Initializes a new instance of <see cref="UnknownProcedureRecommendation"/>. </summary> + /// <param name="kind"> Discriminator. </param> + internal UnknownProcedureRecommendation(string kind) : base(kind) + { + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/UnknownRadiologyInsightsInference.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/UnknownRadiologyInsightsInference.Serialization.cs new file mode 100644 index 0000000000000..032936f692290 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/UnknownRadiologyInsightsInference.Serialization.cs @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.Health.Insights.RadiologyInsights +{ + internal partial class UnknownRadiologyInsightsInference + { + internal static UnknownRadiologyInsightsInference DeserializeUnknownRadiologyInsightsInference(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string kind = "Unknown"; + Optional<IReadOnlyList<Extension>> extension = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("kind"u8)) + { + kind = property.Value.GetString(); + continue; + } + if (property.NameEquals("extension"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List<Extension> array = new List<Extension>(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RadiologyInsights.Extension.DeserializeExtension(item)); + } + extension = array; + continue; + } + } + return new UnknownRadiologyInsightsInference(kind, Optional.ToList(extension)); + } + + /// <summary> Deserializes the model from a raw response. </summary> + /// <param name="response"> The response to deserialize the model from. </param> + internal static new UnknownRadiologyInsightsInference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownRadiologyInsightsInference(document.RootElement); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/UnknownRadiologyInsightsInference.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/UnknownRadiologyInsightsInference.cs new file mode 100644 index 0000000000000..60a4080fa8aeb --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/UnknownRadiologyInsightsInference.cs @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Health.Insights.RadiologyInsights +{ + /// <summary> Unknown version of RadiologyInsightsInference. </summary> + internal partial class UnknownRadiologyInsightsInference : RadiologyInsightsInference + { + /// <summary> Initializes a new instance of <see cref="UnknownRadiologyInsightsInference"/>. </summary> + /// <param name="kind"> Discriminator. </param> + /// <param name="extension"> Additional Content defined by implementations. </param> + internal UnknownRadiologyInsightsInference(string kind, IReadOnlyList<Extension> extension) : base(kind, extension) + { + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Properties/AssemblyInfo.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Properties/AssemblyInfo.cs new file mode 100644 index 0000000000000..abdfc901b1f71 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Properties/AssemblyInfo.cs @@ -0,0 +1,11 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Runtime.CompilerServices; + +[assembly: InternalsVisibleTo("Azure.Health.Insights.RadiologyInsights.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100d15ddcb29688295338af4b7686603fe614abd555e09efba8fb88ee09e1f7b1ccaeed2e8f823fa9eef3fdd60217fc012ea67d2479751a0b8c087a4185541b851bd8b16f8d91b840e51b1cb0ba6fe647997e57429265e85ef62d565db50a69ae1647d54d7bd855e4db3d8a91510e5bcbd0edfbbecaa20a7bd9ae74593daa7b11b4")] + +// Replace Microsoft.Test with the correct resource provider namepace for your service and uncomment. +// See https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-services-resource-providers +// for the list of possible values. +[assembly: Azure.Core.AzureResourceProviderNamespace("Microsoft.Template")] diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/tests/Azure.Health.Insights.RadiologyInsights.Tests.csproj b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/tests/Azure.Health.Insights.RadiologyInsights.Tests.csproj new file mode 100644 index 0000000000000..0cebe8e26600c --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/tests/Azure.Health.Insights.RadiologyInsights.Tests.csproj @@ -0,0 +1,20 @@ +<Project Sdk="Microsoft.NET.Sdk"> + <PropertyGroup> + <TargetFrameworks>$(RequiredTargetFrameworks)</TargetFrameworks> + <!--We don't care about XML doc comments on test types and members--> + <NoWarn>$(NoWarn);CS1591</NoWarn> + </PropertyGroup> + + <ItemGroup> + <ProjectReference Include="$(AzureCoreTestFramework)" /> + <ProjectReference Include="..\src\Azure.Health.Insights.RadiologyInsights.csproj" /> + </ItemGroup> + + <ItemGroup> + <PackageReference Include="Azure.Identity" /> + <PackageReference Include="NUnit" /> + <PackageReference Include="NUnit3TestAdapter" /> + <PackageReference Include="Microsoft.NET.Test.Sdk" /> + <PackageReference Include="Moq" /> + </ItemGroup> +</Project> 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 new file mode 100644 index 0000000000000..a689df5adcd73 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/tests/Generated/Samples/Samples_RadiologyInsightsClient.cs @@ -0,0 +1,1112 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// <auto-generated/> + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Health.Insights.RadiologyInsights; +using Azure.Identity; +using NUnit.Framework; + +namespace Azure.Health.Insights.RadiologyInsights.Samples +{ + public partial class Samples_RadiologyInsightsClient + { + [Test] + [Ignore("Only validating compilation of examples")] + public void Example_RadiologyInsightsClient_InferRadiologyInsights_ShortVersion() + { + Uri endpoint = new Uri("<https://my-service.azure.com>"); + AzureKeyCredential credential = new AzureKeyCredential("<key>"); + RadiologyInsightsClient client = new RadiologyInsightsClient(endpoint, credential); + + using RequestContent content = RequestContent.Create(new + { + patients = new object[] + { +new +{ +id = "<id>", +} + }, + }); + Operation<BinaryData> operation = client.InferRadiologyInsights(WaitUntil.Completed, content); + BinaryData responseData = operation.Value; + + JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("patientId").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("kind").ToString()); + Console.WriteLine(result.GetProperty("modelVersion").ToString()); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Example_RadiologyInsightsClient_InferRadiologyInsights_ShortVersion_Async() + { + Uri endpoint = new Uri("<https://my-service.azure.com>"); + AzureKeyCredential credential = new AzureKeyCredential("<key>"); + RadiologyInsightsClient client = new RadiologyInsightsClient(endpoint, credential); + + using RequestContent content = RequestContent.Create(new + { + patients = new object[] + { +new +{ +id = "<id>", +} + }, + }); + Operation<BinaryData> operation = await client.InferRadiologyInsightsAsync(WaitUntil.Completed, content); + BinaryData responseData = operation.Value; + + JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("patientId").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("kind").ToString()); + Console.WriteLine(result.GetProperty("modelVersion").ToString()); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public void Example_RadiologyInsightsClient_InferRadiologyInsights_ShortVersion_Convenience() + { + Uri endpoint = new Uri("<https://my-service.azure.com>"); + AzureKeyCredential credential = new AzureKeyCredential("<key>"); + RadiologyInsightsClient client = new RadiologyInsightsClient(endpoint, credential); + + RadiologyInsightsData radiologyInsightsData = new RadiologyInsightsData(new PatientRecord[] + { +new PatientRecord("<id>") + }); + Operation<RadiologyInsightsInferenceResult> operation = client.InferRadiologyInsights(WaitUntil.Completed, radiologyInsightsData); + RadiologyInsightsInferenceResult responseData = operation.Value; + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Example_RadiologyInsightsClient_InferRadiologyInsights_ShortVersion_Convenience_Async() + { + Uri endpoint = new Uri("<https://my-service.azure.com>"); + AzureKeyCredential credential = new AzureKeyCredential("<key>"); + RadiologyInsightsClient client = new RadiologyInsightsClient(endpoint, credential); + + RadiologyInsightsData radiologyInsightsData = new RadiologyInsightsData(new PatientRecord[] + { +new PatientRecord("<id>") + }); + Operation<RadiologyInsightsInferenceResult> operation = await client.InferRadiologyInsightsAsync(WaitUntil.Completed, radiologyInsightsData); + RadiologyInsightsInferenceResult responseData = operation.Value; + } + + [Test] + [Ignore("Only validating compilation of examples")] + public void Example_RadiologyInsightsClient_InferRadiologyInsights_AllParameters() + { + Uri endpoint = new Uri("<https://my-service.azure.com>"); + AzureKeyCredential credential = new AzureKeyCredential("<key>"); + RadiologyInsightsClient client = new RadiologyInsightsClient(endpoint, credential); + + using RequestContent content = RequestContent.Create(new + { + patients = new object[] + { +new +{ +id = "<id>", +info = new +{ +sex = "female", +birthDate = "2022-05-10", +clinicalInfo = new object[] +{ +new +{ +resourceType = "<resourceType>", +id = "<id>", +meta = new +{ +versionId = "<versionId>", +lastUpdated = "<lastUpdated>", +source = "<source>", +profile = new object[] +{ +"<profile>" +}, +security = new object[] +{ +new +{ +id = "<id>", +extension = new object[] +{ +new +{ +id = "<id>", +extension = new object[] +{ +null +}, +url = "<url>", +valueQuantity = new +{ +id = "<id>", +extension = new object[] +{ +null +}, +value = new object(), +comparator = "<comparator>", +unit = "<unit>", +system = "<system>", +code = "<code>", +}, +valueCodeableConcept = new +{ +id = "<id>", +extension = new object[] +{ +null +}, +coding = new object[] +{ +null +}, +text = "<text>", +}, +valueString = "<valueString>", +valueBoolean = true, +valueInteger = 1234, +valueRange = new +{ +id = "<id>", +extension = new object[] +{ +null +}, +}, +valueRatio = new +{ +id = "<id>", +extension = new object[] +{ +null +}, +}, +valueSampledData = new +{ +id = "<id>", +extension = new object[] +{ +null +}, +period = new object(), +factor = new object(), +lowerLimit = new object(), +upperLimit = new object(), +dimensions = 1234, +data = "<data>", +}, +valueTime = "01:23:45", +valueDateTime = "<valueDateTime>", +valuePeriod = new +{ +id = "<id>", +extension = new object[] +{ +null +}, +start = "<start>", +end = "<end>", +}, +valueReference = new +{ +id = "<id>", +extension = new object[] +{ +null +}, +reference = "<reference>", +type = "<type>", +identifier = new +{ +id = "<id>", +extension = new object[] +{ +null +}, +use = "<use>", +system = "<system>", +value = "<value>", +}, +display = "<display>", +}, +} +}, +system = "<system>", +version = "<version>", +code = "<code>", +display = "<display>", +} +}, +tag = new object[] +{ +null +}, +}, +implicitRules = "<implicitRules>", +language = "<language>", +} +}, +}, +encounters = new object[] +{ +new Dictionary<string, object> +{ +["id"] = "<id>", +["period"] = new +{ +start = "2022-05-10T14:57:31.2311892-04:00", +end = "2022-05-10T14:57:31.2311892-04:00", +}, +["class"] = "inpatient" +} +}, +patientDocuments = new object[] +{ +new +{ +type = "note", +clinicalType = "consultation", +id = "<id>", +language = "<language>", +createdDateTime = "2022-05-10T14:57:31.2311892-04:00", +authors = new object[] +{ +new +{ +id = "<id>", +fullName = "<fullName>", +} +}, +specialtyType = "pathology", +administrativeMetadata = new +{ +orderedProcedures = new object[] +{ +new +{ +extension = new object[] +{ +null +}, +description = "<description>", +} +}, +encounterId = "<encounterId>", +}, +content = new +{ +sourceType = "inline", +value = "<value>", +}, +} +}, +} + }, + configuration = new + { + verbose = true, + includeEvidence = true, + inferenceTypes = new object[] + { +"ageMismatch" + }, + inferenceOptions = new + { + followupRecommendation = new + { + includeRecommendationsWithNoSpecifiedModality = true, + includeRecommendationsInReferences = true, + provideFocusedSentenceEvidence = true, + }, + finding = new + { + provideFocusedSentenceEvidence = true, + }, + }, + locale = "<locale>", + }, + }); + Operation<BinaryData> operation = client.InferRadiologyInsights(WaitUntil.Completed, content); + BinaryData responseData = operation.Value; + + JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("patientId").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("kind").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("url").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("version").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueString").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueBoolean").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueInteger").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("period").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("factor").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("lowerLimit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("upperLimit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("dimensions").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("data").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueTime").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueDateTime").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("start").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("end").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("reference").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("type").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("use").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("version").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("start").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("end").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("modelVersion").ToString()); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Example_RadiologyInsightsClient_InferRadiologyInsights_AllParameters_Async() + { + Uri endpoint = new Uri("<https://my-service.azure.com>"); + AzureKeyCredential credential = new AzureKeyCredential("<key>"); + RadiologyInsightsClient client = new RadiologyInsightsClient(endpoint, credential); + + using RequestContent content = RequestContent.Create(new + { + patients = new object[] + { +new +{ +id = "<id>", +info = new +{ +sex = "female", +birthDate = "2022-05-10", +clinicalInfo = new object[] +{ +new +{ +resourceType = "<resourceType>", +id = "<id>", +meta = new +{ +versionId = "<versionId>", +lastUpdated = "<lastUpdated>", +source = "<source>", +profile = new object[] +{ +"<profile>" +}, +security = new object[] +{ +new +{ +id = "<id>", +extension = new object[] +{ +new +{ +id = "<id>", +extension = new object[] +{ +null +}, +url = "<url>", +valueQuantity = new +{ +id = "<id>", +extension = new object[] +{ +null +}, +value = new object(), +comparator = "<comparator>", +unit = "<unit>", +system = "<system>", +code = "<code>", +}, +valueCodeableConcept = new +{ +id = "<id>", +extension = new object[] +{ +null +}, +coding = new object[] +{ +null +}, +text = "<text>", +}, +valueString = "<valueString>", +valueBoolean = true, +valueInteger = 1234, +valueRange = new +{ +id = "<id>", +extension = new object[] +{ +null +}, +}, +valueRatio = new +{ +id = "<id>", +extension = new object[] +{ +null +}, +}, +valueSampledData = new +{ +id = "<id>", +extension = new object[] +{ +null +}, +period = new object(), +factor = new object(), +lowerLimit = new object(), +upperLimit = new object(), +dimensions = 1234, +data = "<data>", +}, +valueTime = "01:23:45", +valueDateTime = "<valueDateTime>", +valuePeriod = new +{ +id = "<id>", +extension = new object[] +{ +null +}, +start = "<start>", +end = "<end>", +}, +valueReference = new +{ +id = "<id>", +extension = new object[] +{ +null +}, +reference = "<reference>", +type = "<type>", +identifier = new +{ +id = "<id>", +extension = new object[] +{ +null +}, +use = "<use>", +system = "<system>", +value = "<value>", +}, +display = "<display>", +}, +} +}, +system = "<system>", +version = "<version>", +code = "<code>", +display = "<display>", +} +}, +tag = new object[] +{ +null +}, +}, +implicitRules = "<implicitRules>", +language = "<language>", +} +}, +}, +encounters = new object[] +{ +new Dictionary<string, object> +{ +["id"] = "<id>", +["period"] = new +{ +start = "2022-05-10T14:57:31.2311892-04:00", +end = "2022-05-10T14:57:31.2311892-04:00", +}, +["class"] = "inpatient" +} +}, +patientDocuments = new object[] +{ +new +{ +type = "note", +clinicalType = "consultation", +id = "<id>", +language = "<language>", +createdDateTime = "2022-05-10T14:57:31.2311892-04:00", +authors = new object[] +{ +new +{ +id = "<id>", +fullName = "<fullName>", +} +}, +specialtyType = "pathology", +administrativeMetadata = new +{ +orderedProcedures = new object[] +{ +new +{ +extension = new object[] +{ +null +}, +description = "<description>", +} +}, +encounterId = "<encounterId>", +}, +content = new +{ +sourceType = "inline", +value = "<value>", +}, +} +}, +} + }, + configuration = new + { + verbose = true, + includeEvidence = true, + inferenceTypes = new object[] + { +"ageMismatch" + }, + inferenceOptions = new + { + followupRecommendation = new + { + includeRecommendationsWithNoSpecifiedModality = true, + includeRecommendationsInReferences = true, + provideFocusedSentenceEvidence = true, + }, + finding = new + { + provideFocusedSentenceEvidence = true, + }, + }, + locale = "<locale>", + }, + }); + Operation<BinaryData> operation = await client.InferRadiologyInsightsAsync(WaitUntil.Completed, content); + BinaryData responseData = operation.Value; + + JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("patientId").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("kind").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("url").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueQuantity").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("version").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("coding")[0].GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueCodeableConcept").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueString").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueBoolean").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueInteger").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("low").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRange").GetProperty("high").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("numerator").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueRatio").GetProperty("denominator").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("comparator").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("unit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("origin").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("period").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("factor").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("lowerLimit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("upperLimit").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("dimensions").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueSampledData").GetProperty("data").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueTime").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueDateTime").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("start").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valuePeriod").GetProperty("end").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("reference").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("type").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("use").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("version").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("coding")[0].GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("type").GetProperty("text").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("system").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("value").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("id").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("start").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("identifier").GetProperty("period").GetProperty("end").ToString()); + Console.WriteLine(result.GetProperty("patientResults")[0].GetProperty("inferences")[0].GetProperty("extension")[0].GetProperty("valueReference").GetProperty("display").ToString()); + Console.WriteLine(result.GetProperty("modelVersion").ToString()); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public void Example_RadiologyInsightsClient_InferRadiologyInsights_AllParameters_Convenience() + { + Uri endpoint = new Uri("<https://my-service.azure.com>"); + AzureKeyCredential credential = new AzureKeyCredential("<key>"); + RadiologyInsightsClient client = new RadiologyInsightsClient(endpoint, credential); + + RadiologyInsightsData radiologyInsightsData = new RadiologyInsightsData(new PatientRecord[] + { +new PatientRecord("<id>") +{ +Info = new PatientInfo +{ +Sex = PatientInfoSex.Female, +BirthDate = DateTimeOffset.Parse("2022-05-10"), +ClinicalInfo = {new Resource("<resourceType>") +{ +Id = "<id>", +Meta = new Meta +{ +VersionId = "<versionId>", +LastUpdated = "<lastUpdated>", +Source = "<source>", +Profile = {"<profile>"}, +Security = {new Coding +{ +Id = "<id>", +Extension = {new Extension("<url>") +{ +Id = "<id>", +ExtensionProperty = {default}, +ValueQuantity = new Quantity +{ +Id = "<id>", +Extension = {default}, +Value = default, +Comparator = "<comparator>", +Unit = "<unit>", +System = "<system>", +Code = "<code>", +}, +ValueCodeableConcept = new CodeableConcept +{ +Id = "<id>", +Extension = {default}, +Coding = {default}, +Text = "<text>", +}, +ValueString = "<valueString>", +ValueBoolean = true, +ValueInteger = 1234, +ValueRange = new Range +{ +Id = "<id>", +Extension = {default}, +Low = default, +High = default, +}, +ValueRatio = new Ratio +{ +Id = "<id>", +Extension = {default}, +Numerator = default, +Denominator = default, +}, +ValueSampledData = new SampledData(default, default, 1234) +{ +Id = "<id>", +Extension = {default}, +Factor = default, +LowerLimit = default, +UpperLimit = default, +Data = "<data>", +}, +ValueTime = TimeSpan.Parse("01:23:45"), +ValueDateTime = "<valueDateTime>", +ValuePeriod = new Period +{ +Id = "<id>", +Extension = {default}, +Start = "<start>", +End = "<end>", +}, +ValueReference = new Reference +{ +Id = "<id>", +Extension = {default}, +ReferenceProperty = "<reference>", +Type = "<type>", +Identifier = new Identifier +{ +Id = "<id>", +Extension = {default}, +Use = "<use>", +Type = default, +System = "<system>", +Value = "<value>", +Period = default, +Assigner = default, +}, +Display = "<display>", +}, +}}, +System = "<system>", +Version = "<version>", +Code = "<code>", +Display = "<display>", +}}, +Tag = {default}, +}, +ImplicitRules = "<implicitRules>", +Language = "<language>", +}}, +}, +Encounters = {new Encounter("<id>") +{ +Period = new TimePeriod +{ +Start = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), +End = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), +}, +Class = EncounterClass.InPatient, +}}, +PatientDocuments = {new PatientDocument(DocumentType.Note, "<id>", new DocumentContent(DocumentContentSourceType.Inline, "<value>")) +{ +ClinicalType = ClinicalDocumentType.Consultation, +Language = "<language>", +CreatedDateTime = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), +Authors = {new DocumentAuthor +{ +Id = "<id>", +FullName = "<fullName>", +}}, +SpecialtyType = SpecialtyType.Pathology, +AdministrativeMetadata = new DocumentAdministrativeMetadata +{ +OrderedProcedures = {new OrderedProcedure +{ +Extension = {default}, +Code = default, +Description = "<description>", +}}, +EncounterId = "<encounterId>", +}, +}}, +} + }) + { + Configuration = new RadiologyInsightsModelConfiguration + { + Verbose = true, + IncludeEvidence = true, + InferenceTypes = { RadiologyInsightsInferenceType.AgeMismatch }, + InferenceOptions = new RadiologyInsightsInferenceOptions + { + FollowupRecommendation = new FollowupRecommendationOptions + { + IncludeRecommendationsWithNoSpecifiedModality = true, + IncludeRecommendationsInReferences = true, + ProvideFocusedSentenceEvidence = true, + }, + Finding = new FindingOptions + { + ProvideFocusedSentenceEvidence = true, + }, + }, + Locale = "<locale>", + }, + }; + Operation<RadiologyInsightsInferenceResult> operation = client.InferRadiologyInsights(WaitUntil.Completed, radiologyInsightsData); + RadiologyInsightsInferenceResult responseData = operation.Value; + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Example_RadiologyInsightsClient_InferRadiologyInsights_AllParameters_Convenience_Async() + { + Uri endpoint = new Uri("<https://my-service.azure.com>"); + AzureKeyCredential credential = new AzureKeyCredential("<key>"); + RadiologyInsightsClient client = new RadiologyInsightsClient(endpoint, credential); + + RadiologyInsightsData radiologyInsightsData = new RadiologyInsightsData(new PatientRecord[] + { +new PatientRecord("<id>") +{ +Info = new PatientInfo +{ +Sex = PatientInfoSex.Female, +BirthDate = DateTimeOffset.Parse("2022-05-10"), +ClinicalInfo = {new Resource("<resourceType>") +{ +Id = "<id>", +Meta = new Meta +{ +VersionId = "<versionId>", +LastUpdated = "<lastUpdated>", +Source = "<source>", +Profile = {"<profile>"}, +Security = {new Coding +{ +Id = "<id>", +Extension = {new Extension("<url>") +{ +Id = "<id>", +ExtensionProperty = {default}, +ValueQuantity = new Quantity +{ +Id = "<id>", +Extension = {default}, +Value = default, +Comparator = "<comparator>", +Unit = "<unit>", +System = "<system>", +Code = "<code>", +}, +ValueCodeableConcept = new CodeableConcept +{ +Id = "<id>", +Extension = {default}, +Coding = {default}, +Text = "<text>", +}, +ValueString = "<valueString>", +ValueBoolean = true, +ValueInteger = 1234, +ValueRange = new Range +{ +Id = "<id>", +Extension = {default}, +Low = default, +High = default, +}, +ValueRatio = new Ratio +{ +Id = "<id>", +Extension = {default}, +Numerator = default, +Denominator = default, +}, +ValueSampledData = new SampledData(default, default, 1234) +{ +Id = "<id>", +Extension = {default}, +Factor = default, +LowerLimit = default, +UpperLimit = default, +Data = "<data>", +}, +ValueTime = TimeSpan.Parse("01:23:45"), +ValueDateTime = "<valueDateTime>", +ValuePeriod = new Period +{ +Id = "<id>", +Extension = {default}, +Start = "<start>", +End = "<end>", +}, +ValueReference = new Reference +{ +Id = "<id>", +Extension = {default}, +ReferenceProperty = "<reference>", +Type = "<type>", +Identifier = new Identifier +{ +Id = "<id>", +Extension = {default}, +Use = "<use>", +Type = default, +System = "<system>", +Value = "<value>", +Period = default, +Assigner = default, +}, +Display = "<display>", +}, +}}, +System = "<system>", +Version = "<version>", +Code = "<code>", +Display = "<display>", +}}, +Tag = {default}, +}, +ImplicitRules = "<implicitRules>", +Language = "<language>", +}}, +}, +Encounters = {new Encounter("<id>") +{ +Period = new TimePeriod +{ +Start = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), +End = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), +}, +Class = EncounterClass.InPatient, +}}, +PatientDocuments = {new PatientDocument(DocumentType.Note, "<id>", new DocumentContent(DocumentContentSourceType.Inline, "<value>")) +{ +ClinicalType = ClinicalDocumentType.Consultation, +Language = "<language>", +CreatedDateTime = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), +Authors = {new DocumentAuthor +{ +Id = "<id>", +FullName = "<fullName>", +}}, +SpecialtyType = SpecialtyType.Pathology, +AdministrativeMetadata = new DocumentAdministrativeMetadata +{ +OrderedProcedures = {new OrderedProcedure +{ +Extension = {default}, +Code = default, +Description = "<description>", +}}, +EncounterId = "<encounterId>", +}, +}}, +} + }) + { + Configuration = new RadiologyInsightsModelConfiguration + { + Verbose = true, + IncludeEvidence = true, + InferenceTypes = { RadiologyInsightsInferenceType.AgeMismatch }, + InferenceOptions = new RadiologyInsightsInferenceOptions + { + FollowupRecommendation = new FollowupRecommendationOptions + { + IncludeRecommendationsWithNoSpecifiedModality = true, + IncludeRecommendationsInReferences = true, + ProvideFocusedSentenceEvidence = true, + }, + Finding = new FindingOptions + { + ProvideFocusedSentenceEvidence = true, + }, + }, + Locale = "<locale>", + }, + }; + Operation<RadiologyInsightsInferenceResult> operation = await client.InferRadiologyInsightsAsync(WaitUntil.Completed, radiologyInsightsData); + RadiologyInsightsInferenceResult responseData = operation.Value; + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/tsp-location.yaml b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/tsp-location.yaml new file mode 100644 index 0000000000000..c476e87bfc1be --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/tsp-location.yaml @@ -0,0 +1,7 @@ +repo: Azure/azure-rest-api-specs +commit: 3025b3f6f47b628c17b60d5d5c553cf123845ecd +directory: specification/ai/HealthInsights/HealthInsights.RadiologyInsights +additionalDirectories: +- specification/ai/HealthInsights/HealthInsights.Common/ +- specification/ai/HealthInsights/HealthInsights.OpenAPI/ +