Skip to content
This repository has been archived by the owner on Jun 20, 2022. It is now read-only.

Commit

Permalink
Merge branch 'dev' into feature/225-state-table
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonard Koll committed May 11, 2020
2 parents af80010 + d4c2c05 commit 746002e
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 33 deletions.
74 changes: 44 additions & 30 deletions client/src/api/SwaggerApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,15 @@ export interface CreatePatientDTO {
preIllnesses?: string[];
quarantineUntil?: string;
riskAreas?: string[];
riskOccupation?: "NO_RISK_OCCUPATION" | "FIRE_FIGHTER" | "DOCTOR" | "CAREGIVER" | "NURSE";
riskOccupation?:
| "NO_RISK_OCCUPATION"
| "FIRE_FIGHTER_POLICE"
| "TEACHER"
| "PUBLIC_ADMINISTRATION"
| "STUDENT"
| "DOCTOR"
| "CAREGIVER"
| "NURSE";
speedOfSymptomsOutbreak?: string;
stayCity?: string;
stayCountry?: string;
Expand Down Expand Up @@ -320,7 +328,15 @@ export interface Patient {
preIllnesses?: string[];
quarantineUntil?: string;
riskAreas?: string[];
riskOccupation?: "NO_RISK_OCCUPATION" | "FIRE_FIGHTER" | "DOCTOR" | "CAREGIVER" | "NURSE";
riskOccupation?:
| "NO_RISK_OCCUPATION"
| "FIRE_FIGHTER_POLICE"
| "TEACHER"
| "PUBLIC_ADMINISTRATION"
| "STUDENT"
| "DOCTOR"
| "CAREGIVER"
| "NURSE";
speedOfSymptomsOutbreak?: string;
stayCity?: string;
stayCountry?: string;
Expand Down Expand Up @@ -949,72 +965,70 @@ export class Api<SecurityDataType = any> extends HttpClient<SecurityDataType> {
error = {
/**
* @tags basic-error-controller
* @name errorUsingGET
* @summary error
* @name errorHtmlUsingGET
* @summary errorHtml
* @request GET:/error
* @secure
*/
errorUsingGet: (params?: RequestParams) =>
this.request<Record<string, object>, any>(`/error`, "GET", params, null, true),
errorHtmlUsingGet: (params?: RequestParams) => this.request<ModelAndView, any>(`/error`, "GET", params, null, true),

/**
* @tags basic-error-controller
* @name errorUsingHEAD
* @summary error
* @name errorHtmlUsingHEAD
* @summary errorHtml
* @request HEAD:/error
* @secure
*/
errorUsingHead: (params?: RequestParams) =>
this.request<Record<string, object>, any>(`/error`, "HEAD", params, null, true),
errorHtmlUsingHead: (params?: RequestParams) =>
this.request<ModelAndView, any>(`/error`, "HEAD", params, null, true),

/**
* @tags basic-error-controller
* @name errorUsingPOST
* @summary error
* @name errorHtmlUsingPOST
* @summary errorHtml
* @request POST:/error
* @secure
*/
errorUsingPost: (params?: RequestParams) =>
this.request<Record<string, object>, any>(`/error`, "POST", params, null, true),
errorHtmlUsingPost: (params?: RequestParams) =>
this.request<ModelAndView, any>(`/error`, "POST", params, null, true),

/**
* @tags basic-error-controller
* @name errorUsingPUT
* @summary error
* @name errorHtmlUsingPUT
* @summary errorHtml
* @request PUT:/error
* @secure
*/
errorUsingPut: (params?: RequestParams) =>
this.request<Record<string, object>, any>(`/error`, "PUT", params, null, true),
errorHtmlUsingPut: (params?: RequestParams) => this.request<ModelAndView, any>(`/error`, "PUT", params, null, true),

/**
* @tags basic-error-controller
* @name errorUsingDELETE
* @summary error
* @name errorHtmlUsingDELETE
* @summary errorHtml
* @request DELETE:/error
* @secure
*/
errorUsingDelete: (params?: RequestParams) =>
this.request<Record<string, object>, any>(`/error`, "DELETE", params, null, true),
errorHtmlUsingDelete: (params?: RequestParams) =>
this.request<ModelAndView, any>(`/error`, "DELETE", params, null, true),

/**
* @tags basic-error-controller
* @name errorUsingOPTIONS
* @summary error
* @name errorHtmlUsingOPTIONS
* @summary errorHtml
* @request OPTIONS:/error
* @secure
*/
errorUsingOptions: (params?: RequestParams) =>
this.request<Record<string, object>, any>(`/error`, "OPTIONS", params, null, true),
errorHtmlUsingOptions: (params?: RequestParams) =>
this.request<ModelAndView, any>(`/error`, "OPTIONS", params, null, true),

/**
* @tags basic-error-controller
* @name errorUsingPATCH
* @summary error
* @name errorHtmlUsingPATCH
* @summary errorHtml
* @request PATCH:/error
* @secure
*/
errorUsingPatch: (params?: RequestParams) =>
this.request<Record<string, object>, any>(`/error`, "PATCH", params, null, true),
errorHtmlUsingPatch: (params?: RequestParams) =>
this.request<ModelAndView, any>(`/error`, "PATCH", params, null, true),
};
}
10 changes: 9 additions & 1 deletion client/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,15 @@ export type PatientStatus = 'REGISTERED'
| 'PATIENT_DEAD'
| 'DOCTORS_VISIT'
| 'QUARANTINE_MANDATED';
export type RiskOccupation = 'NO_RISK_OCCUPATION' | 'FIRE_FIGHTER' | 'DOCTOR' | 'CAREGIVER' | 'NURSE'
export type RiskOccupation =
'NO_RISK_OCCUPATION'
| 'FIRE_FIGHTER_POLICE'
| 'TEACHER'
| 'PUBLIC_ADMINISTRATION'
| 'STUDENT'
| 'DOCTOR'
| 'CAREGIVER'
| 'NURSE'

export interface Option {
label: string;
Expand Down
5 changes: 4 additions & 1 deletion client/src/models/risk-occupation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ export interface RiskOccupationOption {
}

export const RISK_OCCUPATIONS: RiskOccupationOption[] = [
{ value: 'FIRE_FIGHTER', label: 'Feuerwehrmann/frau' },
{ value: 'PUBLIC_ADMINISTRATION', label: 'Öffentliche Verwaltung' },
{ value: 'STUDENT', label: 'Schüler' },
{ value: 'TEACHER', label: 'Lehrer' },
{ value: 'FIRE_FIGHTER_POLICE', label: 'Gefahrenabwehr (Polizei, Feuerwehr usw.)' },
{ value: 'DOCTOR', label: 'Arzt/Ärztin' },
{ value: 'NURSE', label: 'Pflegepersonal' },
{ value: 'CAREGIVER', label: 'Altenpflege' },
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package de.coronavirus.imis.domain;

public enum RiskOccupation {
NO_RISK_OCCUPATION, FIRE_FIGHTER, DOCTOR, CAREGIVER, NURSE
NO_RISK_OCCUPATION, FIRE_FIGHTER_POLICE, TEACHER, PUBLIC_ADMINISTRATION, STUDENT, DOCTOR, CAREGIVER, NURSE
}

0 comments on commit 746002e

Please sign in to comment.