Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TypeSpec] Suppress "documentation-required" lint rule #24297

Merged
merged 16 commits into from
Jun 6, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Replace "Legacy API"
  • Loading branch information
mikeharder committed Jun 5, 2023
commit 73b8176af4718f08ef2ecb6e7295e5924b85c229
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ model PatientInfo {
clinicalInfo?: ClinicalCodedElement[];
}

#suppress "@azure-tools/typespec-azure-core/documentation-required" "Legacy API"
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
@doc("The patient's sex.")
enum PatientInfoSex {
Female: "female",
Male: "male",
Unspecified: "unspecified",
}

#suppress "@azure-tools/typespec-azure-core/documentation-required" "Legacy API"
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
@doc("The type of the patient document, such as 'note' (text document) or 'fhirBundle' (FHIR JSON document).")
enum DocumentType {
Note: "note",
Expand All @@ -63,7 +63,7 @@ enum DocumentType {
GenomicSequencing: "genomicSequencing",
}

#suppress "@azure-tools/typespec-azure-core/documentation-required" "Legacy API"
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
@doc("The type of the clinical document.")
enum ClinicalDocumentType {
Consultation: "consultation",
Expand All @@ -76,7 +76,7 @@ enum ClinicalDocumentType {
Pathology: "pathology",
}

#suppress "@azure-tools/typespec-azure-core/documentation-required" "Legacy API"
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
@doc("""
The type of the content's source.
In case the source type is 'inline', the content is given as a string (for instance, text).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ An indication whether to perform a preliminary step on the patient's documents t



#suppress "@azure-tools/typespec-azure-core/documentation-required" "Legacy API"
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
@doc("The type of the Onco Phenotype inference.")
enum OncoPhenotypeInferenceType {
TumorSite: "tumorSite",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,23 +330,23 @@ model ClinicalTrialResearchFacility {
...GeographicLocation;
}

#suppress "@azure-tools/typespec-azure-core/documentation-required" "Legacy API"
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
@doc("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.")
enum ClinicalTrialAcceptedSex {
All: "all",
Female: "female",
Male: "male"
}

#suppress "@azure-tools/typespec-azure-core/documentation-required" "Legacy API"
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
@doc("Possible units for a person's age.")
enum AgeUnit {
Years: "years",
Months: "months",
Days: "days",
}

#suppress "@azure-tools/typespec-azure-core/documentation-required" "Legacy API"
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
@doc("Possible phases of a clinical trial.")
enum ClinicalTrialPhase {
NotApplicable: "notApplicable",
Expand All @@ -357,7 +357,7 @@ enum ClinicalTrialPhase {
Phase4: "phase4",
}

#suppress "@azure-tools/typespec-azure-core/documentation-required" "Legacy API"
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
@doc("Possible study types of a clinical trial.")
enum ClinicalTrialStudyType {
Interventional: "interventional",
Expand All @@ -366,15 +366,15 @@ enum ClinicalTrialStudyType {
PatientRegistries: "patientRegistries",
}

#suppress "@azure-tools/typespec-azure-core/documentation-required" "Legacy API"
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
@doc("Possible recruitment status of a clinical trial.")
enum ClinicalTrialRecruitmentStatus {
UnknownStatus: "unknownStatus",
NotYetRecruiting: "notYetRecruiting",
Recruiting: "recruiting",
EnrollingByInvitation: "enrollingByInvitation",
}
#suppress "@azure-tools/typespec-azure-core/documentation-required" "Legacy API"
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
@doc("Possible purposes of a clinical trial.")
enum ClinicalTrialPurpose {
NotApplicable: "notApplicable",
Expand All @@ -389,32 +389,32 @@ enum ClinicalTrialPurpose {
Other: "other",
}

#suppress "@azure-tools/typespec-azure-core/documentation-required" "Legacy API"
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
@doc("Possible sources of a clinical trial.")
enum ClinicalTrialSource {
Custom: "custom",
ClinicaltrialsGov: "clinicaltrials.gov",
}

#suppress "@azure-tools/typespec-azure-core/documentation-required" "Legacy API"
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
@doc("`GeoJSON` type.")
enum GeoJsonType {
Feature: "Feature",
}

#suppress "@azure-tools/typespec-azure-core/documentation-required" "Legacy API"
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
@doc("`GeoJSON` geometry type.")
enum GeoJsonGeometryType {
Point: "Point",
}

#suppress "@azure-tools/typespec-azure-core/documentation-required" "Legacy API"
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
@doc("`GeoJSON` object sub-type.")
enum GeoJsonPropertiesSubType {
Circle: "Circle",
}

#suppress "@azure-tools/typespec-azure-core/documentation-required" "Legacy API"
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
@doc("The type of the Trial Matcher inference.")
enum TrialMatcherInferenceType {
TrialEligibility: "trialEligibility",
Expand Down