Consent expiry notification coming before consent data expiry date

Hi @IntegrationSupport,

Consent Init request:

{
    "requestId": "52cc8092-8bef-4649-9c54-6d3c6f001f4d",
    "timestamp": "2023-01-09T06:21:38.000000",
    "consent": {
        "purpose": {
            "text": "test",
            "code": "CAREMGT"
        },
        "patient": {
            "id": "kashyap.anand86@sbx"
        },
        "hiu": {
            "id": "muzaffarpur-district-uat-hiu"
        },
        "requester": {
            "name": "Dr. Subodh  Jha"
        },
        "hiTypes": [
            "Prescription",
            "DiagnosticReport",
            "OPConsultation",
            "DischargeSummary",
            "ImmunizationRecord",
            "HealthDocumentRecord",
            "WellnessRecord"
        ],
        "permission": {
            "accessMode": "VIEW",
            "dateRange": {
                "from": "2022-07-12T18:30:00.000Z",
                "to": "2023-01-09T18:29:59.000Z"
            },
            "dataEraseAt": "2023-02-08T18:29:59.000Z",
            "frequency": {
                "unit": "HOUR",
                "value": "1",
                "repeats": 6
            }
        }
    }
}

Consent on init request:

{
    "requestId": "5e49a423-f044-48f4-aa21-1715a107d36f",
    "timestamp": "2023-01-09T06:21:38.920099",
    "consentRequest": {
        "id": "ae32c7f0-4d1c-4111-aab0-605be32a93da"
    },
    "error": null,
    "resp": {
        "requestId": "52cc8092-8bef-4649-9c54-6d3c6f001f4d"
    }
}

Consent notify request:

{
    "timestamp": "2023-01-09T13:01:01.593055",
    "requestId": "a2adfed0-f37a-47b2-a745-0e6f36a11d68",
    "notification": {
        "consentRequestId": "ae32c7f0-4d1c-4111-aab0-605be32a93da",
        "status": "EXPIRED",
        "consentArtefacts": []
    }
}

Consent request was not approved & after a while we received consent notify request with status EXPIRED.

Thanks

Hi @shubham_1745 kindly check again.

Thanks