Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No se puede pedir una nueva PCR cuando el Lab pone "Inconcluso" como resultado #28

Open
alu0100966589 opened this issue May 10, 2021 · 1 comment
Assignees

Comments

@alu0100966589
Copy link
Collaborator

Cuando el Lab nos pone que el resultado de la PCR es inconclusa no hay manera de volver a pedir PCR, podríamos dejar esa responsabilidad al lab y que a nuestro sistema solo nos diga si el resultado termina siendo positivo o negativo, pero hay que verlo

@bcuestav
Copy link
Contributor

bcuestav commented May 10, 2021

He probado a actualizar una PCR con "UNKNOWN" y a posteriori crear una nueva solicitud y no me ha dado problema. La petición de creación de PCR ha sido la siguiente:

curl --location --request GET 'http://localhost:7082/insurances'
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyLCJyb2xlIjoidGFrZXIiLCJpc3MiOiJVTEwifQ.kBqHISpWyPbW5uNnadqCe4BlwyGbULrJHRGv0V-VLQ4'

Después al consultar la póliza, el resultado ha sido el siguiente (una UNKNOWN y otra UNDEFINED):

[
    {
        "taker": {
            "takerId": "d290f1ee-6c54-4b01-90e6-d701748f0852",
            "takerNif": "12345678H",
            "takerContactPostalCode": "38001",
            "takerContactTown": "My town",
            "takerContactLocation": "My location",
            "takerContactTelephone": "555123456",
            "takerContactMobile": "646123456",
            "takerIBAN": "ES7921000813610123456789",
            "takerFullName": "My taker full name",
            "takerContactAddress": "Example Street, 1",
            "takerContactEmail": "[email protected]"
        },
        "id": "0a8e228d-dc2b-4582-a961-1c52cd316eb2",
        "sinisterCompensation": 500,
        "startDate": "2021-04-12T18:22:47.000Z",
        "finishDate": "2021-05-30T18:22:47.000Z",
        "contractDate": "2021-04-12T18:22:47.000Z",
        "assuredPrice": 50,
        "daysToCompensate": 10,
        "positivePcr": false,
        "paymentEmitted": false,
        "customers": [
            {
                "customerId": "c4f40996-9d12-11eb-a8b3-0242ac130003",
                "negativePcrHash": "0x141f85f5eca63041632cfb6f591d4906019a23fa39be0615e6417da06bf747ce",
                "negativePcrDate": "2021-05-09T18:22:47.000Z"
            }
        ],
        "pcrRequests": [
            {
                "id": "d290f1ee-6c54-4b01-90e6-d701748f0853",
                "resultDate": "2021-05-10T11:49:49.000Z",
                "requestDate": "2021-05-10T11:46:45.000Z",
                "customerId": "c4f40996-9d12-11eb-a8b3-0242ac130003",
                "result": "UNKNOWN"
            },
            {
                "id": "2eecd0f8-2d00-4182-a755-8432e54498ad",
                "resultDate": "1970-01-01T00:00:00.000Z",
                "requestDate": "2021-05-10T11:50:47.000Z",
                "customerId": "c4f40996-9d12-11eb-a8b3-0242ac130003",
                "result": "UNDEFINED"
            }
        ]
    }
]

En la web solo se ve la PCR que está "UNKNOWN", por lo que parece que el problema está en la capa de presentación.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants