Skip to content

Commit ec8a178

Browse files
authored
Enable-WriteCore-for-Azure.Health.Insights.CancerProfiling (Azure#46858)
1 parent d4fca91 commit ec8a178

15 files changed

+122
-25
lines changed

sdk/healthinsights/Azure.Health.Insights.CancerProfiling/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Features Added
66

77
- Introduced model factory `Azure.Health.Insights.CancerProfiling.AzureHealthInsightsModelFactory` for mocking.
8+
- Exposed `JsonModelWriteCore` for model serialization procedure.
89

910
### Breaking Changes
1011

sdk/healthinsights/Azure.Health.Insights.CancerProfiling/api/Azure.Health.Insights.CancerProfiling.netstandard2.0.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public ClinicalCodedElement(string system, string code) { }
2626
public string Name { get { throw null; } set { } }
2727
public string System { get { throw null; } set { } }
2828
public string Value { get { throw null; } set { } }
29+
protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
2930
Azure.Health.Insights.CancerProfiling.ClinicalCodedElement System.ClientModel.Primitives.IJsonModel<Azure.Health.Insights.CancerProfiling.ClinicalCodedElement>.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
3031
void System.ClientModel.Primitives.IJsonModel<Azure.Health.Insights.CancerProfiling.ClinicalCodedElement>.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
3132
Azure.Health.Insights.CancerProfiling.ClinicalCodedElement System.ClientModel.Primitives.IPersistableModel<Azure.Health.Insights.CancerProfiling.ClinicalCodedElement>.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
@@ -63,6 +64,7 @@ internal ClinicalNoteEvidence() { }
6364
public int Length { get { throw null; } }
6465
public int Offset { get { throw null; } }
6566
public string Text { get { throw null; } }
67+
protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
6668
Azure.Health.Insights.CancerProfiling.ClinicalNoteEvidence System.ClientModel.Primitives.IJsonModel<Azure.Health.Insights.CancerProfiling.ClinicalNoteEvidence>.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
6769
void System.ClientModel.Primitives.IJsonModel<Azure.Health.Insights.CancerProfiling.ClinicalNoteEvidence>.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
6870
Azure.Health.Insights.CancerProfiling.ClinicalNoteEvidence System.ClientModel.Primitives.IPersistableModel<Azure.Health.Insights.CancerProfiling.ClinicalNoteEvidence>.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
@@ -74,6 +76,7 @@ public partial class DocumentContent : System.ClientModel.Primitives.IJsonModel<
7476
public DocumentContent(Azure.Health.Insights.CancerProfiling.DocumentContentSourceType sourceType, string value) { }
7577
public Azure.Health.Insights.CancerProfiling.DocumentContentSourceType SourceType { get { throw null; } }
7678
public string Value { get { throw null; } }
79+
protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
7780
Azure.Health.Insights.CancerProfiling.DocumentContent System.ClientModel.Primitives.IJsonModel<Azure.Health.Insights.CancerProfiling.DocumentContent>.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
7881
void System.ClientModel.Primitives.IJsonModel<Azure.Health.Insights.CancerProfiling.DocumentContent>.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
7982
Azure.Health.Insights.CancerProfiling.DocumentContent System.ClientModel.Primitives.IPersistableModel<Azure.Health.Insights.CancerProfiling.DocumentContent>.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
@@ -134,6 +137,7 @@ internal InferenceEvidence() { }
134137
public float? Importance { get { throw null; } }
135138
public Azure.Health.Insights.CancerProfiling.ClinicalNoteEvidence PatientDataEvidence { get { throw null; } }
136139
public Azure.Health.Insights.CancerProfiling.ClinicalCodedElement PatientInfoEvidence { get { throw null; } }
140+
protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
137141
Azure.Health.Insights.CancerProfiling.InferenceEvidence System.ClientModel.Primitives.IJsonModel<Azure.Health.Insights.CancerProfiling.InferenceEvidence>.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
138142
void System.ClientModel.Primitives.IJsonModel<Azure.Health.Insights.CancerProfiling.InferenceEvidence>.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
139143
Azure.Health.Insights.CancerProfiling.InferenceEvidence System.ClientModel.Primitives.IPersistableModel<Azure.Health.Insights.CancerProfiling.InferenceEvidence>.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
@@ -145,6 +149,7 @@ public partial class OncoPhenotypeData : System.ClientModel.Primitives.IJsonMode
145149
public OncoPhenotypeData(System.Collections.Generic.IEnumerable<Azure.Health.Insights.CancerProfiling.PatientRecord> patients) { }
146150
public Azure.Health.Insights.CancerProfiling.OncoPhenotypeModelConfiguration Configuration { get { throw null; } set { } }
147151
public System.Collections.Generic.IList<Azure.Health.Insights.CancerProfiling.PatientRecord> Patients { get { throw null; } }
152+
protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
148153
Azure.Health.Insights.CancerProfiling.OncoPhenotypeData System.ClientModel.Primitives.IJsonModel<Azure.Health.Insights.CancerProfiling.OncoPhenotypeData>.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
149154
void System.ClientModel.Primitives.IJsonModel<Azure.Health.Insights.CancerProfiling.OncoPhenotypeData>.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
150155
Azure.Health.Insights.CancerProfiling.OncoPhenotypeData System.ClientModel.Primitives.IPersistableModel<Azure.Health.Insights.CancerProfiling.OncoPhenotypeData>.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
@@ -160,6 +165,7 @@ internal OncoPhenotypeInference() { }
160165
public System.Collections.Generic.IReadOnlyList<Azure.Health.Insights.CancerProfiling.InferenceEvidence> Evidence { get { throw null; } }
161166
public Azure.Health.Insights.CancerProfiling.OncoPhenotypeInferenceType Type { get { throw null; } }
162167
public string Value { get { throw null; } }
168+
protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
163169
Azure.Health.Insights.CancerProfiling.OncoPhenotypeInference System.ClientModel.Primitives.IJsonModel<Azure.Health.Insights.CancerProfiling.OncoPhenotypeInference>.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
164170
void System.ClientModel.Primitives.IJsonModel<Azure.Health.Insights.CancerProfiling.OncoPhenotypeInference>.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
165171
Azure.Health.Insights.CancerProfiling.OncoPhenotypeInference System.ClientModel.Primitives.IPersistableModel<Azure.Health.Insights.CancerProfiling.OncoPhenotypeInference>.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
@@ -197,6 +203,7 @@ public OncoPhenotypeModelConfiguration() { }
197203
public bool? IncludeEvidence { get { throw null; } set { } }
198204
public System.Collections.Generic.IList<Azure.Health.Insights.CancerProfiling.OncoPhenotypeInferenceType> InferenceTypes { get { throw null; } }
199205
public bool? Verbose { get { throw null; } set { } }
206+
protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
200207
Azure.Health.Insights.CancerProfiling.OncoPhenotypeModelConfiguration System.ClientModel.Primitives.IJsonModel<Azure.Health.Insights.CancerProfiling.OncoPhenotypeModelConfiguration>.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
201208
void System.ClientModel.Primitives.IJsonModel<Azure.Health.Insights.CancerProfiling.OncoPhenotypeModelConfiguration>.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
202209
Azure.Health.Insights.CancerProfiling.OncoPhenotypeModelConfiguration System.ClientModel.Primitives.IPersistableModel<Azure.Health.Insights.CancerProfiling.OncoPhenotypeModelConfiguration>.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
@@ -208,6 +215,7 @@ public partial class OncoPhenotypePatientResult : System.ClientModel.Primitives.
208215
internal OncoPhenotypePatientResult() { }
209216
public string Id { get { throw null; } }
210217
public System.Collections.Generic.IReadOnlyList<Azure.Health.Insights.CancerProfiling.OncoPhenotypeInference> Inferences { get { throw null; } }
218+
protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
211219
Azure.Health.Insights.CancerProfiling.OncoPhenotypePatientResult System.ClientModel.Primitives.IJsonModel<Azure.Health.Insights.CancerProfiling.OncoPhenotypePatientResult>.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
212220
void System.ClientModel.Primitives.IJsonModel<Azure.Health.Insights.CancerProfiling.OncoPhenotypePatientResult>.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
213221
Azure.Health.Insights.CancerProfiling.OncoPhenotypePatientResult System.ClientModel.Primitives.IPersistableModel<Azure.Health.Insights.CancerProfiling.OncoPhenotypePatientResult>.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
@@ -219,6 +227,7 @@ public partial class OncoPhenotypeResults : System.ClientModel.Primitives.IJsonM
219227
internal OncoPhenotypeResults() { }
220228
public string ModelVersion { get { throw null; } }
221229
public System.Collections.Generic.IReadOnlyList<Azure.Health.Insights.CancerProfiling.OncoPhenotypePatientResult> Patients { get { throw null; } }
230+
protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
222231
Azure.Health.Insights.CancerProfiling.OncoPhenotypeResults System.ClientModel.Primitives.IJsonModel<Azure.Health.Insights.CancerProfiling.OncoPhenotypeResults>.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
223232
void System.ClientModel.Primitives.IJsonModel<Azure.Health.Insights.CancerProfiling.OncoPhenotypeResults>.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
224233
Azure.Health.Insights.CancerProfiling.OncoPhenotypeResults System.ClientModel.Primitives.IPersistableModel<Azure.Health.Insights.CancerProfiling.OncoPhenotypeResults>.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
@@ -234,6 +243,7 @@ public PatientDocument(Azure.Health.Insights.CancerProfiling.DocumentType type,
234243
public string Id { get { throw null; } }
235244
public string Language { get { throw null; } set { } }
236245
public Azure.Health.Insights.CancerProfiling.DocumentType Type { get { throw null; } }
246+
protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
237247
Azure.Health.Insights.CancerProfiling.PatientDocument System.ClientModel.Primitives.IJsonModel<Azure.Health.Insights.CancerProfiling.PatientDocument>.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
238248
void System.ClientModel.Primitives.IJsonModel<Azure.Health.Insights.CancerProfiling.PatientDocument>.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
239249
Azure.Health.Insights.CancerProfiling.PatientDocument System.ClientModel.Primitives.IPersistableModel<Azure.Health.Insights.CancerProfiling.PatientDocument>.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
@@ -246,6 +256,7 @@ public PatientInfo() { }
246256
public System.DateTimeOffset? BirthDate { get { throw null; } set { } }
247257
public System.Collections.Generic.IList<Azure.Health.Insights.CancerProfiling.ClinicalCodedElement> ClinicalInfo { get { throw null; } }
248258
public Azure.Health.Insights.CancerProfiling.PatientInfoSex? Sex { get { throw null; } set { } }
259+
protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
249260
Azure.Health.Insights.CancerProfiling.PatientInfo System.ClientModel.Primitives.IJsonModel<Azure.Health.Insights.CancerProfiling.PatientInfo>.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
250261
void System.ClientModel.Primitives.IJsonModel<Azure.Health.Insights.CancerProfiling.PatientInfo>.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
251262
Azure.Health.Insights.CancerProfiling.PatientInfo System.ClientModel.Primitives.IPersistableModel<Azure.Health.Insights.CancerProfiling.PatientInfo>.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
@@ -277,6 +288,7 @@ public PatientRecord(string id) { }
277288
public System.Collections.Generic.IList<Azure.Health.Insights.CancerProfiling.PatientDocument> Data { get { throw null; } }
278289
public string Id { get { throw null; } }
279290
public Azure.Health.Insights.CancerProfiling.PatientInfo Info { get { throw null; } set { } }
291+
protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
280292
Azure.Health.Insights.CancerProfiling.PatientRecord System.ClientModel.Primitives.IJsonModel<Azure.Health.Insights.CancerProfiling.PatientRecord>.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
281293
void System.ClientModel.Primitives.IJsonModel<Azure.Health.Insights.CancerProfiling.PatientRecord>.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
282294
Azure.Health.Insights.CancerProfiling.PatientRecord System.ClientModel.Primitives.IPersistableModel<Azure.Health.Insights.CancerProfiling.PatientRecord>.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }

sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/ClinicalCodedElement.Serialization.cs

Lines changed: 9 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/ClinicalNoteEvidence.Serialization.cs

Lines changed: 9 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)