Skip to content

Commit

Permalink
chore:align with spec file (#686)
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverD3 authored Nov 8, 2024
1 parent ab1d064 commit d57cf64
Show file tree
Hide file tree
Showing 30 changed files with 135 additions and 2,347 deletions.
1,155 changes: 93 additions & 1,062 deletions api/oh.yaml

Large diffs are not rendered by default.

18 changes: 0 additions & 18 deletions src/generated/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -87,36 +87,18 @@ models\PageLabWithRowsDTO.ts
models\PageOpdDTO.ts
models\PagePatientDTO.ts
models\PagePatientExaminationDTO.ts
models\Patient.ts
models\PatientConsensus.ts
models\PatientConsensusDTO.ts
models\PatientDTO.ts
models\PatientExaminationDTO.ts
models\PatientProfilePhoto.ts
models\PatientProfilePhotoPhotoAsImage.ts
models\PatientProfilePhotoPhotoAsImageGraphics.ts
models\PatientProfilePhotoPhotoAsImageGraphicsClip.ts
models\PatientProfilePhotoPhotoAsImageGraphicsClipBounds.ts
models\PatientProfilePhotoPhotoAsImageGraphicsClipBoundsBounds2D.ts
models\PatientProfilePhotoPhotoAsImageGraphicsClipBoundsLocation.ts
models\PatientProfilePhotoPhotoAsImageGraphicsClipBoundsSize.ts
models\PatientProfilePhotoPhotoAsImageGraphicsColor.ts
models\PatientProfilePhotoPhotoAsImageGraphicsColorColorSpace.ts
models\PatientProfilePhotoPhotoAsImageGraphicsFont.ts
models\PatientProfilePhotoPhotoAsImageGraphicsFontMetrics.ts
models\PatientProfilePhotoPhotoAsImageGraphicsFontMetricsFontRenderContext.ts
models\PatientProfilePhotoPhotoAsImageGraphicsFontTransform.ts
models\PatientVaccineDTO.ts
models\PermissionDTO.ts
models\PregnantTreatmentTypeDTO.ts
models\PriceDTO.ts
models\PriceList.ts
models\PriceListDTO.ts
models\PricesOthersDTO.ts
models\SmsDTO.ts
models\SupplierDTO.ts
models\TherapyDTO.ts
models\TherapyRow.ts
models\TherapyRowDTO.ts
models\TokenRefreshRequest.ts
models\UserDTO.ts
Expand Down
10 changes: 5 additions & 5 deletions src/generated/apis/AdmissionsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export interface GetDischargesRequest {
size?: number;
}

export interface GetNextYProgRequest {
export interface GetNextYearProgressiveIdRequest {
wardcode: string;
}

Expand Down Expand Up @@ -240,10 +240,10 @@ export class AdmissionsApi extends BaseAPI {

/**
*/
getNextYProg({ wardcode }: GetNextYProgRequest): Observable<number>
getNextYProg({ wardcode }: GetNextYProgRequest, opts?: OperationOpts): Observable<RawAjaxResponse<number>>
getNextYProg({ wardcode }: GetNextYProgRequest, opts?: OperationOpts): Observable<number | RawAjaxResponse<number>> {
throwIfNullOrUndefined(wardcode, 'wardcode', 'getNextYProg');
getNextYearProgressiveId({ wardcode }: GetNextYearProgressiveIdRequest): Observable<number>
getNextYearProgressiveId({ wardcode }: GetNextYearProgressiveIdRequest, opts?: OperationOpts): Observable<RawAjaxResponse<number>>
getNextYearProgressiveId({ wardcode }: GetNextYearProgressiveIdRequest, opts?: OperationOpts): Observable<number | RawAjaxResponse<number>> {
throwIfNullOrUndefined(wardcode, 'wardcode', 'getNextYearProgressiveId');

const headers: HttpHeaders = {
...(this.configuration.username != null && this.configuration.password != null ? { Authorization: `Basic ${btoa(this.configuration.username + ':' + this.configuration.password)}` } : undefined),
Expand Down
10 changes: 5 additions & 5 deletions src/generated/apis/DischargeTypeApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export interface NewDischargeTypeRequest {
dischargeTypeDTO: DischargeTypeDTO;
}

export interface UpdateDischargeTypetRequest {
export interface UpdateDischargeTypeRequest {
dischargeTypeDTO: DischargeTypeDTO;
}

Expand Down Expand Up @@ -90,10 +90,10 @@ export class DischargeTypeApi extends BaseAPI {

/**
*/
updateDischargeTypet({ dischargeTypeDTO }: UpdateDischargeTypetRequest): Observable<DischargeTypeDTO>
updateDischargeTypet({ dischargeTypeDTO }: UpdateDischargeTypetRequest, opts?: OperationOpts): Observable<RawAjaxResponse<DischargeTypeDTO>>
updateDischargeTypet({ dischargeTypeDTO }: UpdateDischargeTypetRequest, opts?: OperationOpts): Observable<DischargeTypeDTO | RawAjaxResponse<DischargeTypeDTO>> {
throwIfNullOrUndefined(dischargeTypeDTO, 'dischargeTypeDTO', 'updateDischargeTypet');
updateDischargeType({ dischargeTypeDTO }: UpdateDischargeTypeRequest): Observable<DischargeTypeDTO>
updateDischargeType({ dischargeTypeDTO }: UpdateDischargeTypeRequest, opts?: OperationOpts): Observable<RawAjaxResponse<DischargeTypeDTO>>
updateDischargeType({ dischargeTypeDTO }: UpdateDischargeTypeRequest, opts?: OperationOpts): Observable<DischargeTypeDTO | RawAjaxResponse<DischargeTypeDTO>> {
throwIfNullOrUndefined(dischargeTypeDTO, 'dischargeTypeDTO', 'updateDischargeType');

const headers: HttpHeaders = {
'Content-Type': 'application/json',
Expand Down
8 changes: 4 additions & 4 deletions src/generated/apis/DiseaseTypesApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ export class DiseaseTypesApi extends BaseAPI {

/**
*/
deleteDiseaseType({ code }: DeleteDiseaseTypeRequest): Observable<{ [key: string]: boolean; }>
deleteDiseaseType({ code }: DeleteDiseaseTypeRequest, opts?: OperationOpts): Observable<RawAjaxResponse<{ [key: string]: boolean; }>>
deleteDiseaseType({ code }: DeleteDiseaseTypeRequest, opts?: OperationOpts): Observable<{ [key: string]: boolean; } | RawAjaxResponse<{ [key: string]: boolean; }>> {
deleteDiseaseType({ code }: DeleteDiseaseTypeRequest): Observable<boolean>
deleteDiseaseType({ code }: DeleteDiseaseTypeRequest, opts?: OperationOpts): Observable<RawAjaxResponse<boolean>>
deleteDiseaseType({ code }: DeleteDiseaseTypeRequest, opts?: OperationOpts): Observable<boolean | RawAjaxResponse<boolean>> {
throwIfNullOrUndefined(code, 'code', 'deleteDiseaseType');

const headers: HttpHeaders = {
...(this.configuration.username != null && this.configuration.password != null ? { Authorization: `Basic ${btoa(this.configuration.username + ':' + this.configuration.password)}` } : undefined),
};

return this.request<{ [key: string]: boolean; }>({
return this.request<boolean>({
url: '/diseasetypes/{code}'.replace('{code}', encodeURI(code)),
method: 'DELETE',
headers,
Expand Down
8 changes: 4 additions & 4 deletions src/generated/apis/DiseasesApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,16 @@ export class DiseasesApi extends BaseAPI {

/**
*/
deleteDisease({ code }: DeleteDiseaseRequest): Observable<{ [key: string]: boolean; }>
deleteDisease({ code }: DeleteDiseaseRequest, opts?: OperationOpts): Observable<RawAjaxResponse<{ [key: string]: boolean; }>>
deleteDisease({ code }: DeleteDiseaseRequest, opts?: OperationOpts): Observable<{ [key: string]: boolean; } | RawAjaxResponse<{ [key: string]: boolean; }>> {
deleteDisease({ code }: DeleteDiseaseRequest): Observable<boolean>
deleteDisease({ code }: DeleteDiseaseRequest, opts?: OperationOpts): Observable<RawAjaxResponse<boolean>>
deleteDisease({ code }: DeleteDiseaseRequest, opts?: OperationOpts): Observable<boolean | RawAjaxResponse<boolean>> {
throwIfNullOrUndefined(code, 'code', 'deleteDisease');

const headers: HttpHeaders = {
...(this.configuration.username != null && this.configuration.password != null ? { Authorization: `Basic ${btoa(this.configuration.username + ':' + this.configuration.password)}` } : undefined),
};

return this.request<{ [key: string]: boolean; }>({
return this.request<boolean>({
url: '/diseases/{code}'.replace('{code}', encodeURI(code)),
method: 'DELETE',
headers,
Expand Down
16 changes: 8 additions & 8 deletions src/generated/apis/ExaminationsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,17 +179,17 @@ export class ExaminationsApi extends BaseAPI {

/**
*/
newPatientExamination({ patientExaminationDTO }: NewPatientExaminationRequest): Observable<boolean>
newPatientExamination({ patientExaminationDTO }: NewPatientExaminationRequest, opts?: OperationOpts): Observable<RawAjaxResponse<boolean>>
newPatientExamination({ patientExaminationDTO }: NewPatientExaminationRequest, opts?: OperationOpts): Observable<boolean | RawAjaxResponse<boolean>> {
newPatientExamination({ patientExaminationDTO }: NewPatientExaminationRequest): Observable<PatientExaminationDTO>
newPatientExamination({ patientExaminationDTO }: NewPatientExaminationRequest, opts?: OperationOpts): Observable<RawAjaxResponse<PatientExaminationDTO>>
newPatientExamination({ patientExaminationDTO }: NewPatientExaminationRequest, opts?: OperationOpts): Observable<PatientExaminationDTO | RawAjaxResponse<PatientExaminationDTO>> {
throwIfNullOrUndefined(patientExaminationDTO, 'patientExaminationDTO', 'newPatientExamination');

const headers: HttpHeaders = {
'Content-Type': 'application/json',
...(this.configuration.username != null && this.configuration.password != null ? { Authorization: `Basic ${btoa(this.configuration.username + ':' + this.configuration.password)}` } : undefined),
};

return this.request<boolean>({
return this.request<PatientExaminationDTO>({
url: '/examinations',
method: 'POST',
headers,
Expand All @@ -199,9 +199,9 @@ export class ExaminationsApi extends BaseAPI {

/**
*/
updateExamination({ id, patientExaminationDTO }: UpdateExaminationRequest): Observable<boolean>
updateExamination({ id, patientExaminationDTO }: UpdateExaminationRequest, opts?: OperationOpts): Observable<RawAjaxResponse<boolean>>
updateExamination({ id, patientExaminationDTO }: UpdateExaminationRequest, opts?: OperationOpts): Observable<boolean | RawAjaxResponse<boolean>> {
updateExamination({ id, patientExaminationDTO }: UpdateExaminationRequest): Observable<PatientExaminationDTO>
updateExamination({ id, patientExaminationDTO }: UpdateExaminationRequest, opts?: OperationOpts): Observable<RawAjaxResponse<PatientExaminationDTO>>
updateExamination({ id, patientExaminationDTO }: UpdateExaminationRequest, opts?: OperationOpts): Observable<PatientExaminationDTO | RawAjaxResponse<PatientExaminationDTO>> {
throwIfNullOrUndefined(id, 'id', 'updateExamination');
throwIfNullOrUndefined(patientExaminationDTO, 'patientExaminationDTO', 'updateExamination');

Expand All @@ -210,7 +210,7 @@ export class ExaminationsApi extends BaseAPI {
...(this.configuration.username != null && this.configuration.password != null ? { Authorization: `Basic ${btoa(this.configuration.username + ':' + this.configuration.password)}` } : undefined),
};

return this.request<boolean>({
return this.request<PatientExaminationDTO>({
url: '/examinations/{id}'.replace('{id}', encodeURI(id)),
method: 'PUT',
headers,
Expand Down
10 changes: 5 additions & 5 deletions src/generated/apis/OpdsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export interface GetOpdToDayOrWeekRequest {
oneWeek?: boolean;
}

export interface GetProgYear1Request {
export interface GetProgressiveYearRequest {
year: number;
}

Expand Down Expand Up @@ -198,10 +198,10 @@ export class OpdsApi extends BaseAPI {

/**
*/
getProgYear1({ year }: GetProgYear1Request): Observable<number>
getProgYear1({ year }: GetProgYear1Request, opts?: OperationOpts): Observable<RawAjaxResponse<number>>
getProgYear1({ year }: GetProgYear1Request, opts?: OperationOpts): Observable<number | RawAjaxResponse<number>> {
throwIfNullOrUndefined(year, 'year', 'getProgYear1');
getProgressiveYear({ year }: GetProgressiveYearRequest): Observable<number>
getProgressiveYear({ year }: GetProgressiveYearRequest, opts?: OperationOpts): Observable<RawAjaxResponse<number>>
getProgressiveYear({ year }: GetProgressiveYearRequest, opts?: OperationOpts): Observable<number | RawAjaxResponse<number>> {
throwIfNullOrUndefined(year, 'year', 'getProgressiveYear');

const headers: HttpHeaders = {
...(this.configuration.username != null && this.configuration.password != null ? { Authorization: `Basic ${btoa(this.configuration.username + ':' + this.configuration.password)}` } : undefined),
Expand Down
9 changes: 4 additions & 5 deletions src/generated/apis/TherapiesApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { BaseAPI, HttpHeaders, throwIfNullOrUndefined, encodeURI, OperationOpts,
import {
MedicalDTO,
TherapyDTO,
TherapyRow,
TherapyRowDTO,
} from '../models';

Expand Down Expand Up @@ -171,17 +170,17 @@ export class TherapiesApi extends BaseAPI {

/**
*/
replaceTherapies({ therapyRowDTO }: ReplaceTherapiesRequest): Observable<TherapyRow>
replaceTherapies({ therapyRowDTO }: ReplaceTherapiesRequest, opts?: OperationOpts): Observable<RawAjaxResponse<TherapyRow>>
replaceTherapies({ therapyRowDTO }: ReplaceTherapiesRequest, opts?: OperationOpts): Observable<TherapyRow | RawAjaxResponse<TherapyRow>> {
replaceTherapies({ therapyRowDTO }: ReplaceTherapiesRequest): Observable<TherapyRowDTO>
replaceTherapies({ therapyRowDTO }: ReplaceTherapiesRequest, opts?: OperationOpts): Observable<RawAjaxResponse<TherapyRowDTO>>
replaceTherapies({ therapyRowDTO }: ReplaceTherapiesRequest, opts?: OperationOpts): Observable<TherapyRowDTO | RawAjaxResponse<TherapyRowDTO>> {
throwIfNullOrUndefined(therapyRowDTO, 'therapyRowDTO', 'replaceTherapies');

const headers: HttpHeaders = {
'Content-Type': 'application/json',
...(this.configuration.username != null && this.configuration.password != null ? { Authorization: `Basic ${btoa(this.configuration.username + ':' + this.configuration.password)}` } : undefined),
};

return this.request<TherapyRow>({
return this.request<TherapyRowDTO>({
url: '/therapies/replace',
method: 'POST',
headers,
Expand Down
Loading

0 comments on commit d57cf64

Please sign in to comment.