Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Introduce the validUntil property in the valueSetValues object #26

Closed
skounis opened this issue Oct 14, 2021 · 1 comment
Closed

Introduce the validUntil property in the valueSetValues object #26

skounis opened this issue Oct 14, 2021 · 1 comment

Comments

@skounis
Copy link
Contributor

skounis commented Oct 14, 2021

This change would be required for the EU DCC Gateway rather soon (first half of October), in order to handle the synchronization of RAT tests correctly, now that HSC is planning to apply grace periods.

Task

Adjust the schema for describing the validUntil as an optional string property with date format for the valueSetValues object.

Background

How the synchronisation procedure works now?

JRC maintains an online Common List of RATs and exposes it in the JSON format. The list is frequently updated and is available at the URI:

A synchronization script is run by the EU DCC Gateway every 24 hours, collecting information from the JSON and publishing it in a different (simplified) format at the Gateway.

Values Mapping

The following table describes the mapping of the values between the JSON structures of the RAT value set as distributed by the Gateway and the JRC API (JSON).

Value set Common List Comments
valueSetId   covid-19-lab-test-manufacturer-and-name   The value is hardcoded
valueSetDate .extracted_on[0:10] Use the first 10 characters
     
valueSetValues    
display manufacturer.name + ", " + commercial_name  
lang   en   the value is hardcoded
active hsc_list_history.in_common_list The most recent record
system   https://covid-19-diagnostics.jrc.ec.europa.eu/devices   The value is hardcoded
version last_updated     hsc_list_history.list_date If the latest entry in the history is “in_common_list” (true)   If the latest entry in the history is NOT “in_common_list” (false)

How the synchronisation procedure should work after the change?

JRC will change the handling of the JSON file, not only listing changes performed to the status of a RAT test in the past, but also including an upcoming change (which is in the future). The information will become a new event in the hsc_list_history construct.

The flags (true/false) in the JRC database hsc_common_list and hsc_mutual_recognition will continue conveying correct information about the status of the RAT test at every single moment.

The updated synchronisation procedure with described below with changes highlighted.

Value set Common List Comments
valueSetId   covid-19-lab-test-manufacturer-and-name   The value is hardcoded
valueSetDate .extracted_on[0:10] Use the first 10 characters
     
valueSetValues    
display manufacturer.name + ", " + commercial_name  
lang   en   the value is hardcoded
active hsc_list_history.in_common_list The most recent record that is not in the future.
valid_until (new attribute) hsc_list_history.list_date Implementation remark: The addition of this attribute is optional (useful mainly for issuance apps) and depends on the possibility to implement in such a short time frame.   Null, if the most recent record is in the past. If the most recent record is in the future, value from list_date.
system   https://covid-19-diagnostics.jrc.ec.europa.eu/devices   The value is hardcoded
version last_updated     hsc_list_history.list_date If the latest entry in the history is “in_common_list” (true)   If the latest entry in the history is NOT “in_common_list” (false)   Value from the latest entry in the history that is not in the future.
skounis pushed a commit to skounis/ehn-dcc-valuesets that referenced this issue Oct 14, 2021
ryanbnl pushed a commit that referenced this issue Feb 22, 2023
@ryanbnl
Copy link
Contributor

ryanbnl commented Feb 24, 2023

This was added to the schema as optional. At this point in the life-cycle we will not make a change to the valuesets themselves.

@ryanbnl ryanbnl closed this as completed Feb 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants