Skip to content

Commit ddd0683

Browse files
[Health Insights] Project structure updates (#27545)
* move main files under service dir * regen openapi + move examples * update client.tsp files * tsp format * update tspconfig.yaml
1 parent c9279c7 commit ddd0683

22 files changed

+31
-29
lines changed

specification/ai/HealthInsights/HealthInsights.Common/model.common.fhir.elements.tsp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
using TypeSpec.Rest;
32

43
namespace Fhir.R4;
@@ -106,7 +105,6 @@ Concept - reference to a terminology or just text
106105
Based on [FHIR CodeableConcept](https://www.hl7.org/fhir/R4/datatypes.html#CodeableConcept)
107106
""")
108107
model CodeableConcept is Element {
109-
110108
@doc("Code defined by a terminology system")
111109
coding?: Array<Coding>;
112110

@@ -175,7 +173,7 @@ model Reference is Element {
175173
An identifier intended for computation
176174
Based on [FHIR Identifier](https://www.hl7.org/fhir/R4/identifier.html)
177175
""")
178-
model Identifier is Element {
176+
model Identifier is Element {
179177
@doc("usual | official | temp | secondary | old (If known)")
180178
use?: string;
181179

specification/ai/HealthInsights/HealthInsights.OncoPhenotype/client.tsp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ import "./route.oncophenotype.tsp";
33

44
import "@typespec/rest";
55
import "@typespec/http";
6-
import "../HealthInsights.OpenAPI/service.tsp";
6+
import "../service.tsp";
77

88
using Azure.ClientGenerator.Core;
99

10-
@TypeSpec.Versioning.useDependency(Azure.Core.Versions.v1_0_Preview_1)
11-
@TypeSpec.Versioning.useDependency(AzureHealthInsights.ApiVersion.v2023_09_01_Preview)
10+
@TypeSpec.Versioning.useDependency(
11+
AzureHealthInsights.ApiVersion.v2023_09_01_Preview
12+
)
1213
namespace ClientForAzureHealthInsights;
1314

1415
@client({

specification/ai/HealthInsights/HealthInsights.OpenAPI/main.tsp

Lines changed: 0 additions & 11 deletions
This file was deleted.

specification/ai/HealthInsights/HealthInsights.PatientTimeline/client.tsp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ import "./route.patienttimeline.tsp";
33

44
import "@typespec/rest";
55
import "@typespec/http";
6-
import "../HealthInsights.OpenAPI/service.tsp";
6+
import "../service.tsp";
77

88
using Azure.ClientGenerator.Core;
99

10-
@TypeSpec.Versioning.useDependency(Azure.Core.Versions.v1_0_Preview_1)
11-
@TypeSpec.Versioning.useDependency(AzureHealthInsights.ApiVersion.v2023_09_01_Preview)
10+
@TypeSpec.Versioning.useDependency(
11+
AzureHealthInsights.ApiVersion.v2023_09_01_Preview
12+
)
1213
namespace ClientForAzureHealthInsights;
1314

1415
@client({

specification/ai/HealthInsights/HealthInsights.RadiologyInsights/client.tsp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ import "./route.radiologyinsights.tsp";
33

44
import "@typespec/rest";
55
import "@typespec/http";
6-
import "../HealthInsights.OpenAPI/service.tsp";
6+
import "../service.tsp";
77

88
using Azure.ClientGenerator.Core;
99

10-
@TypeSpec.Versioning.useDependency(Azure.Core.Versions.v1_0_Preview_1)
11-
@TypeSpec.Versioning.useDependency(AzureHealthInsights.ApiVersion.v2023_09_01_Preview)
10+
@TypeSpec.Versioning.useDependency(
11+
AzureHealthInsights.ApiVersion.v2023_09_01_Preview
12+
)
1213
namespace ClientForAzureHealthInsights;
1314

1415
@client({

specification/ai/HealthInsights/HealthInsights.RadiologyInsights/model.radiologyinsights.tsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ An inference made by the Radiology Insights model regarding a patient.
9494
- FollowupCommunication
9595
""")
9696
@discriminator("kind")
97-
model RadiologyInsightsInference is Fhir.R4.Extendible {}
97+
model RadiologyInsightsInference is Fhir.R4.Extendible;
9898

9999
@doc("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.")
100100
model AgeMismatchInference extends RadiologyInsightsInference {

specification/ai/HealthInsights/HealthInsights.TrialMatcher/client.tsp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ import "./route.trialmatcher.tsp";
33

44
import "@typespec/rest";
55
import "@typespec/http";
6-
import "../HealthInsights.OpenAPI/service.tsp";
6+
import "../service.tsp";
77

88
using Azure.ClientGenerator.Core;
99

10-
@TypeSpec.Versioning.useDependency(Azure.Core.Versions.v1_0_Preview_1)
11-
@TypeSpec.Versioning.useDependency(AzureHealthInsights.ApiVersion.v2023_09_01_Preview)
10+
@TypeSpec.Versioning.useDependency(
11+
AzureHealthInsights.ApiVersion.v2023_09_01_Preview
12+
)
1213
namespace ClientForAzureHealthInsights;
1314

1415
@client({

specification/ai/HealthInsights/HealthInsights.OpenAPI/examples/2023-03-01-preview/SuccessfulOncoPhenotypeRequest.json renamed to specification/ai/HealthInsights/examples/2023-03-01-preview/SuccessfulOncoPhenotypeRequest.json

File renamed without changes.

specification/ai/HealthInsights/HealthInsights.OpenAPI/examples/2023-03-01-preview/SuccessfulOncoPhenotypeResponse.json renamed to specification/ai/HealthInsights/examples/2023-03-01-preview/SuccessfulOncoPhenotypeResponse.json

File renamed without changes.

specification/ai/HealthInsights/HealthInsights.OpenAPI/examples/2023-03-01-preview/SuccessfulTrialMatcherRequest.json renamed to specification/ai/HealthInsights/examples/2023-03-01-preview/SuccessfulTrialMatcherRequest.json

File renamed without changes.

0 commit comments

Comments
 (0)