# Changelog

## v1.0.2 (2025-03-11)
### First release
* Initial release

## v1.0.6 (2025-03-14)
### vidis-delivered-medication-detail:
* Fix package import
### vidis-diarynote:
* Hide filters when there aren't any data

## v1.1.0 (2025-05-07)
* Implementing the demo mode
### vidis-medication-scheme:
* Redesign of the vidis medication scheme web component
* Split up vidis-medication-scheme into a list and detail web component
* Add full list of medication on list view, with filters for 'full list', 'current' and 'future'
### vidis-prescription-list
* Add onPrintPrescriptions output, with parameters:
	* base64Pdf: this is a base64 version of the pdf that needs to be printed
	* printerOptions: this is an object with `name` this is the file name and `orientation` this is the orientation the printing should happen
### vidis-prescription-detail
* Add onPrintDetail output, with parameters:
	* base64Pdf: this is a base64 version of the pdf that needs to be printed
	* printerOptions: this is an object with `name` this is the file name and `orientation` this is the orientation the printing should happen

## v1.1.1 (2025-05-07)
* Technical release. No new features or bug fixes.

## v1.1.2 (2025-05-07)
### vidis-medication-scheme-list:
* Bugfix package.json

## v1.1.3 (2025-05-16)
* Bugfixes

## v2.0.0 (2025-06-06)
* Update to Angular v19
* Update Design Kit to v2.5
* Remove title and back button

### vidis-medication-scheme-list:
* Label correction
* Your filtering is saved when you go back from an other component

### vidis-diarynote-list
* Add getTotalItems output

### vidis-prescription-list
* Add getTotalItems output
* Change `onPrintPrescriptions` output to `onPrint` and type from `{base64Pdf: string, printOptions: {filename: string, orientation: 'portrait'}}` to `{title: string, content: string}`

### vidis-prescription-detail
* Change `onPrintDetail` output to `onPrint` and type from `{base64Pdf: string, printOptions: {filename: string, orientation: 'portrait'}}` to `{title: string, content: string}`

## v3.0.0 (2025-08-06)

* Using external fonts

### vidis-delivered-medication-list:
* Support professional. If professional adds 2 params: key 'professional' = 'true' and 'ssin'= ssinPatient
* Support offline mode.

### vidis-delivered-medication-detail:
* Support professional. If professional adds 2 params: key 'professional' = 'true' and 'ssin'= ssinPatient
* Support offline mode.

### vidis-prescription-list:
* Support professional. If professional add 2 params : key 'professional' = 'true' and 'ssin'= ssinPatient
* Support offline mode.

### vidis-prescription-detail:
* Support professional. If professional add 2 params : key 'professional' = 'true' and 'ssin'= ssinPatient
* Support offline mode.
* prescription reservation :
	* Add a checkbox to include hospital pharmacies
	* Add the type of pharmacy in the screen
	* Add a "select" button on pharmacies, to make it more accessible and obvious to end user

### vidis-diary-note:
* Support offline mode.

## v3.0.1 (2025-08-19)

* Fix demo mode + updating documentation 
* Bugfix offline mode

### vidis-medication-scheme-detail:
* Support offline mode.

### vidis-medication-scheme-list:
* Support offline mode.

## v3.1.0 (2025-09-15)

* Update demo mode + documentation
* Error reporting component.
* Fix loading status that no longer appears.

### vidis-medication-scheme-detail:
* Adding exchangeClientId parametter.
* Error reporting component.
* Adding id to data from backend

### vidis-medication-scheme-list:
* Adding exchangeClientId parametter.
* improve display message for users without medicationscheme (patient and professional).

### vidis-diary-note:
* Adding exchangeClientId parametter.

### vidis-delivered-medication-list:
* Remove patient column from desktop and mobile view.

## v3.2.0 (2025-09-26)

* Bugfix offline mode
### vidis-delivered-medication-list:
* fix spinner loading

## v3.3.0 (2025-10-07)
### vidis-prescription-list:
* Replace dropdown sorting by a toggle sorting
* Bugfix offline mode

## v3.3.1 (2025-10-09)
* Hide CRUD action buttons in offline mode

### vidis-diary-note:
* Disable download attachment in offline mode
* Fix create diarynote when user is connected as mandator

## v3.3.2 (2025-10-24)

* reusable component for all cards on mobile view.

### vidis-medication-scheme-list:
* new design for cards on mobile view.
* Add new disclaimer for mobile view.

## v3.4.0 (2025-11-05)
### vidis-medication-scheme-list:
* Display temporality in medication scheme detail
* Display hour for last apdated infos and disclaimer
* Update message at the bottom of the page (mobile view)
* Display warning when there are incorrect elements in the medication scheme

### vidis-medication-scheme-detail:
* Display temporality in medication scheme detail
* Display warning when there are incorrect elements in the medication scheme

### vidis-diary-note:
* Display hour of creation on diary note card
* Removing sorting and filtering when user is offline
* Emit file name, content and mime type of the diary note attachment

### vidis-prescription-list:
* Adding infinite scrolling to load the new prescriptions
* Removing sorting when user is offline

## v3.4.1 (2025-11-06)

### vidis-delivered-medication-detail:
* Fix leaflet download for ios

## v3.4.2 (2025-12-17)
### vidis-prescription-detail
* Mobile view : Redesign the prescription details page to provide a more structured overview.

### vidis-delivered-medication-list
* redesign of information banner, aligned to design kit
* make banner expanded by default for desktop view and collapsed for mobile view

### vidis-medication-scheme-list:
* Change the type of `onSelectMedication` output : new type `{ id: string; date?: string; }`, old type : `id: string`.
* Mobile view: the if necessary panel is expanded by default and other closed. Same behavior if you change date.

### vidis-medication-scheme-detail:
* Mobile view : Redesign the Medicationscheme details page to provide a more structured overview.
* Remove of `id` input.
* Add of `detail` input, with the type : `{ id: string; date?: string; }`

## v3.5.0 (2026-02-20)
* `onError` to be emitted after reporting an error (in all webcoponents).
### vidis-prescription-detail
* Masanté Demo mode data: Modify instructions in 2 languages
* Bugfix: hide reservation button when prescription is already reserved
* Add 2 new outputs navigate to the new components in mobile view, both have the data for the `info` input:
	* `clickReserve` to navigate to the new reservation component
	* `clickVisibility` to navigate to the new visibility component
* Add 2 new components for reservation and changing visibility of a prescription for mobile view:
	* `vidis-pharmacy-reservation` with input `info` and output `finishReservation`
	* `vidis-prescription-visibility` with input `info` and output `finishVisibility`
* Bugfix: replace ‘patient’ with ‘beneficiary’ in the translation for mobile view

### vidis-diarynote
* Add snackbar confirmation when a note is created
* Redesign of the sorting, adding and filtering diarynote, aligned to design kit
* Redesign of the cards
* Add new spinner when attachments are downloading

### vidis-prescription-list:
* Redesign of the cards
* Improve accessibility for the cards

### vidis-medication-scheme-detail:
* Bugfix: add comment section in the mobile view
* Not permitted value for therapeutic suspension isn't displayed
* Remove if needed tag and in posology

### vidis-medication-scheme-list:
* Add a tag "Last day" on the medication card when it is the last day that patient should take the medication
* Set disclaimer on the top of the page
* Add new tag "Suspended" on medication when it is suspended (definitive and temporary), only visibile on list view and daily view
* fix crash when there is no medicationscheme
* Remove if needed tag

## v3.5.2 (2026-03-13)
### vidis-diary-note:
* Do not display the errors (if exist) when the response is OK.
* Remove the display of the author ssin.
* Update the rule to delete a note (using `ownNote` field).

### vidis-prescription-list:
* Change frequency type (from enum to string)

### vidis-prescription-detail
* Change frequency type (from enum to string)

## v4.0.0 (2026-05-21)
* Migration to V5 specification
* Prefetching of prescriptions
* Prefetching of medication scheme
* Prefetching of delivered medications
* Prefetching of diarynotes

## v4.0.1 (2026-05-27)
* documenting inputs and outputs for all webcomponents

## v4.1.0 (2026-06-10)

* Adapt Web Component backgrounds to be transparent in lists with cards (prescriptions, delivered medications, journal notes, medication scheme), sort & filter screens, prescription reservation flow, and manage visibility flow.
* Ensure internal content (cards, dropdowns, info alerts, and form elements) remains opaque.

### vidis-prescription-list:
* Bugfix : Cached prescriptions from previous profile remain displayed after profile switch.
* Bugfix : Medication prescriptions list is truncated after scrolling to the bottom then refresh.
* Bugfix : Prescriptions from previous profile briefly displayed after switching profile.

## __RELEASE_VERSION__ (__RELEASE_DATE__)
