Uploaded image for project: 'PhenoTips'
  1. PT-2471 Push dialog should display consented fields only
  2. PT-3339

Modify the JSON serialization of consent objects to include the actual fields affected by the consent, if any

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4-milestone-3
    • Component/s: None
    • Labels:
      None
    • Sprint:

      Description

      Currently, making a request to the "receivePatientData" service with action "get_server_info" returns a JSON including the list of consents configured on the remote server, each consent object containing the list of UIX extensions not shown in the form if that consent is affecting any fields. Example:

      {
        "isRequired": false,
        "id": "genetic",
        "label": "I confirm that consent has been obtained to share this patient's genetic sequencing data (e.g., a VCF file) on restricted access databases.",
        "formFields": ["org.phenotips.patientSheet.field.vcf", "org.phenotips.patientSheet.field.variantdisplay"],
        "status": "not_set"
      }
      

      This list of UIX extensions is useless on the local server, because sections and fields may be configured differently. Instead (or in addition, for backwards compatibility), the remote server should send the actual list of fields form the fields parameter of each affected UIX, which has become mandatory in 1.3.

      Suggested JSON format for consents:

      {
        "isRequired": false,
        "id": "genetic",
        "label": "I confirm that consent has been obtained to share this patient's genetic sequencing data (e.g., a VCF file) on restricted access databases.",
        "formFields": ["org.phenotips.patientSheet.field.vcf", "org.phenotips.patientSheet.field.variantdisplay"],
        "dataFields" : ["VCF", "genes"],
        "status": "not_set"
      }
      

      (added: dataFields, an array with all the values present in the fields parameter of the UI extensions listed in formFields).

      Change in:

      (See also the Push API documentation for more information about the Push protocol)

        Attachments

          Activity

            People

            • Assignee:
              veronikaslc Veronika Koltunova
              Reporter:
              marta Marta Girdea
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: