Skip to content

Commit

Permalink
feat(my-pages): add location to vaccination detail (#16464)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
disaerna and kodiakhq[bot] authored Oct 21, 2024
1 parent e384cdc commit 9c1d3f1
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 93 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export class HealthDirectorateService {
url: vaccination.vaccineUrl,
comment: vaccination.generalComment,
rejected: vaccination.rejected,
location: vaccination.vaccinationLocation,
}
},
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ export class Info {

@Field(() => Boolean, { nullable: true })
rejected?: boolean

@Field({ nullable: true })
location?: string
}

@ObjectType('HealthDirectorateVaccination')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -572,29 +572,6 @@
"tags": ["diseases"]
}
},
"/v1/vaccines": {
"get": {
"operationId": "VaccineController_getVaccines",
"parameters": [],
"responses": { "200": { "description": "" } },
"tags": ["vaccines"]
}
},
"/v1/vaccines/{vaccineId}": {
"get": {
"operationId": "VaccineController_getVaccineById",
"parameters": [
{
"name": "vaccineId",
"required": true,
"in": "path",
"schema": { "type": "number" }
}
],
"responses": { "200": { "description": "" } },
"tags": ["vaccines"]
}
},
"/v1/visualizer/diseases/{diseaseId}": {
"get": {
"operationId": "VisualizerController_getStatus",
Expand Down Expand Up @@ -713,6 +690,7 @@
"type": "string",
"example": "2021-01-01"
},
"vaccinationLocation": { "type": "string" },
"vaccinationAge": {
"type": "object",
"example": { "years": 1, "months": 2 }
Expand All @@ -727,10 +705,9 @@
"vaccineCodingSystem",
"vaccineCodeDescription",
"vaccineCodeDescriptionShort",
"vaccineUrl",
"vaccinationDate",
"vaccinationLocation",
"vaccinationAge",
"generalComment",
"rejected"
]
},
Expand Down Expand Up @@ -804,24 +781,15 @@
"comments"
]
},
"VaccineDto": {
"VaccineDiseaseDto": {
"type": "object",
"properties": {
"id": { "type": "number" },
"code": { "type": "string" },
"codingSystem": { "type": "string", "example": "ATC" },
"name": { "type": "string" },
"description": { "type": "string" },
"diseases": { "type": "array", "items": { "type": "string" } }
"diseaseId": { "type": "string" },
"useInCalculations": { "type": "boolean" }
},
"required": [
"id",
"code",
"codingSystem",
"name",
"description",
"diseases"
]
"required": ["code", "codingSystem", "diseaseId", "useInCalculations"]
},
"Locale": { "type": "string", "enum": ["en", "is"] },
"DiseaseRuleTranslationDto": {
Expand Down Expand Up @@ -859,33 +827,14 @@
}
}
},
"required": [
"id",
"diseaseId",
"order",
"type",
"cond1Type",
"cond1Min",
"cond1Max",
"cond2Type",
"cond2Min",
"cond2Max",
"cond3Type",
"cond3Min",
"cond3Max",
"status",
"statusName",
"internalComment",
"publicComment",
"translations"
]
"required": ["id", "diseaseId", "order", "type", "translations"]
},
"DiseaseTranslationDto": {
"type": "object",
"properties": {
"locale": { "$ref": "#/components/schemas/Locale" },
"name": { "type": "string" },
"description": { "type": "string" }
"description": { "type": "object" }
},
"required": ["locale", "name", "description"]
},
Expand All @@ -895,17 +844,11 @@
"id": { "type": "string" },
"name": { "type": "string" },
"description": { "type": "string" },
"doseSchedule": {
"description": "Array of numbers representing at which dates (in months) the doses should be administered",
"example": [2, 4, 6],
"type": "array",
"items": { "type": "number" }
},
"isFeatured": { "type": "boolean" },
"isVisible": { "type": "boolean" },
"vaccines": {
"type": "array",
"items": { "$ref": "#/components/schemas/VaccineDto" }
"items": { "$ref": "#/components/schemas/VaccineDiseaseDto" }
},
"rules": {
"type": "array",
Expand All @@ -919,8 +862,6 @@
"required": [
"id",
"name",
"description",
"doseSchedule",
"isFeatured",
"isVisible",
"vaccines",
Expand All @@ -934,12 +875,6 @@
"id": { "type": "string" },
"name": { "type": "string" },
"description": { "type": "string" },
"doseSchedule": {
"description": "Array of numbers representing at which dates (in months) the doses should be administered",
"example": [2, 4, 6],
"type": "array",
"items": { "type": "number" }
},
"isFeatured": { "type": "boolean" },
"isVisible": { "type": "boolean" },
"rules": {
Expand Down Expand Up @@ -977,24 +912,7 @@
}
}
},
"required": [
"order",
"type",
"cond1Type",
"cond1Min",
"cond1Max",
"cond2Type",
"cond2Min",
"cond2Max",
"cond3Type",
"cond3Min",
"cond3Max",
"status",
"statusName",
"internalComment",
"publicComment",
"translations"
]
"required": ["order", "type", "translations"]
},
"UpdateDiseaseRuleDto": {
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ query getVaccinations {
url
comment
rejected
location
}
comments
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const SortedVaccinationsTable = ({ data }: Props) => {
url: vaccination.url ?? '',
},
{
value: vaccination.comment ?? '',
value: vaccination.location ?? '',
},
]
},
Expand Down

0 comments on commit 9c1d3f1

Please sign in to comment.