mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-14 06:40:50 +00:00
Merge branch 'v143/links' into release/v1.43.0
# Conflicts: # docs/api/openapi.yaml # src/__tests__/contract-stub-inventory.test.ts # src/app/api/medications/[id]/route.ts # src/components/medications/detail/medication-detail-tabs.tsx # src/lib/export/backup-plan.ts
This commit is contained in:
commit
0dd634c9c8
64 files changed
+3445
-119
No files matched your search
+115
-8
@@ -15771,7 +15771,8 @@ paths:
|
||||
- Records
|
||||
summary: File targets against a visit
|
||||
description: "Adds links. Idempotent: a pair that already exists succeeds and changes nothing. Session-authenticated
|
||||
only, matching document link and unlink."
|
||||
only, matching document link and unlink. Since v1.43 `targetKind` also takes `medication` and `vaccination`;
|
||||
those links show in the visit's `related` list (`GET /api/encounters/{id}`), not in `links`."
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
@@ -16384,9 +16385,11 @@ paths:
|
||||
post:
|
||||
tags:
|
||||
- Records
|
||||
summary: File documents against a vaccination
|
||||
summary: File documents or a visit against a vaccination
|
||||
description: "Adds links. Idempotent: a pair that already exists succeeds and changes nothing. Session-authenticated
|
||||
only, matching document and visit link and unlink."
|
||||
only, matching document and visit link and unlink. Since v1.43 `targetKind` also takes `encounter` (the visit
|
||||
the dose was given at); that link shows in the dose's `related` list (`GET /api/vaccinations/{id}`), not in
|
||||
`documents`."
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
@@ -16413,7 +16416,7 @@ paths:
|
||||
delete:
|
||||
tags:
|
||||
- Records
|
||||
summary: Unfile documents from a vaccination
|
||||
summary: Unfile documents or a visit from a vaccination
|
||||
description: Removes links. Idempotent, and it still works for a page the account has since deleted — refusing would
|
||||
leave a filing nobody can clear.
|
||||
parameters:
|
||||
@@ -24601,7 +24604,6 @@ paths:
|
||||
$ref: "#/components/schemas/ErrorEnvelope"
|
||||
"422": *a4
|
||||
"429": *a5
|
||||
"501": *a69
|
||||
delete:
|
||||
tags:
|
||||
- Links
|
||||
@@ -24637,7 +24639,6 @@ paths:
|
||||
$ref: "#/components/schemas/ErrorEnvelope"
|
||||
"422": *a4
|
||||
"429": *a5
|
||||
"501": *a69
|
||||
/api/labs/{id}/links:
|
||||
post:
|
||||
tags:
|
||||
@@ -24674,7 +24675,6 @@ paths:
|
||||
$ref: "#/components/schemas/ErrorEnvelope"
|
||||
"422": *a4
|
||||
"429": *a5
|
||||
"501": *a69
|
||||
delete:
|
||||
tags:
|
||||
- Links
|
||||
@@ -24710,7 +24710,6 @@ paths:
|
||||
$ref: "#/components/schemas/ErrorEnvelope"
|
||||
"422": *a4
|
||||
"429": *a5
|
||||
"501": *a69
|
||||
/api/bugreport:
|
||||
post:
|
||||
security: []
|
||||
@@ -31672,6 +31671,8 @@ components:
|
||||
- document
|
||||
- labResult
|
||||
- conditionEpisode
|
||||
- medication
|
||||
- vaccination
|
||||
targetIds:
|
||||
minItems: 1
|
||||
maxItems: 100
|
||||
@@ -32080,6 +32081,7 @@ components:
|
||||
type: string
|
||||
enum:
|
||||
- document
|
||||
- encounter
|
||||
targetIds:
|
||||
minItems: 1
|
||||
maxItems: 100
|
||||
@@ -42198,6 +42200,106 @@ components:
|
||||
- targetId
|
||||
- createdAt
|
||||
additionalProperties: {}
|
||||
labResultDocumentLinks:
|
||||
default: []
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
labResultId:
|
||||
type: string
|
||||
minLength: 1
|
||||
documentId:
|
||||
type: string
|
||||
minLength: 1
|
||||
createdAt:
|
||||
type: string
|
||||
minLength: 1
|
||||
required:
|
||||
- labResultId
|
||||
- documentId
|
||||
- createdAt
|
||||
additionalProperties: {}
|
||||
encounterMedicationLinks:
|
||||
default: []
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
encounterId:
|
||||
type: string
|
||||
minLength: 1
|
||||
medicationId:
|
||||
type: string
|
||||
minLength: 1
|
||||
createdAt:
|
||||
type: string
|
||||
minLength: 1
|
||||
required:
|
||||
- encounterId
|
||||
- medicationId
|
||||
- createdAt
|
||||
additionalProperties: {}
|
||||
encounterVaccinationLinks:
|
||||
default: []
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
encounterId:
|
||||
type: string
|
||||
minLength: 1
|
||||
vaccinationId:
|
||||
type: string
|
||||
minLength: 1
|
||||
createdAt:
|
||||
type: string
|
||||
minLength: 1
|
||||
required:
|
||||
- encounterId
|
||||
- vaccinationId
|
||||
- createdAt
|
||||
additionalProperties: {}
|
||||
medicationDocumentLinks:
|
||||
default: []
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
medicationId:
|
||||
type: string
|
||||
minLength: 1
|
||||
documentId:
|
||||
type: string
|
||||
minLength: 1
|
||||
createdAt:
|
||||
type: string
|
||||
minLength: 1
|
||||
required:
|
||||
- medicationId
|
||||
- documentId
|
||||
- createdAt
|
||||
additionalProperties: {}
|
||||
medicationConditionLinks:
|
||||
default: []
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
medicationId:
|
||||
type: string
|
||||
minLength: 1
|
||||
episodeId:
|
||||
type: string
|
||||
minLength: 1
|
||||
createdAt:
|
||||
type: string
|
||||
minLength: 1
|
||||
required:
|
||||
- medicationId
|
||||
- episodeId
|
||||
- createdAt
|
||||
additionalProperties: {}
|
||||
coachConversations:
|
||||
default: []
|
||||
type: array
|
||||
@@ -43422,6 +43524,11 @@ components:
|
||||
- customVaccines
|
||||
- vaccinations
|
||||
- vaccinationDocumentLinks
|
||||
- labResultDocumentLinks
|
||||
- encounterMedicationLinks
|
||||
- encounterVaccinationLinks
|
||||
- medicationDocumentLinks
|
||||
- medicationConditionLinks
|
||||
- coachConversations
|
||||
- mentalHealthAssessments
|
||||
- consentReceipts
|
||||
|
||||
Reference in new issue
Block a user