Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleResponse example
Code Block
{
  "data": {
    "status": "pending",
    "eta": "2018-08-02T10:45:16.000Z",
    "links": [
      {
        "entity": "job",
        "href": "/Jobs/NBXk9EyErUZv1RhXgyvgg"
      }
    ]
  },
  "meta": {
    "code": 202,
    "url": "http://example.com/resource",
    "type": "object",
    "request_id": "req-adasdoijasdojsda"
  }
}

HTTP status codes

HTTP status code

Message

What caused the error

400

Invalid signed content

400

Person is not found

401

Invalid access token

403

Access denied. Party is deceased

403

Access denied. Party is not verified

403

Your scope does not allow to access this resource. Missing allowances: specimen:write

404

Person is not found

409

client_id refers to legal entity that is not active

409

Patient is not verified

409

Person is not active

422

Collected quantity must not be exceeded by the specimen quantity distributed among the containers

422

Date must be greater than <current date - SPECIMEN_MAX_DAYS_PASSED>

422

Does not match the code of the collected quantity

422

Does not match the signer drfo

422

Employee doesn't belong to your legal entity

422

Employee with such ID is not found

422

End date must be greater than or equal the start date

422

End date must be in past

422

Identifier already exists in the specimen

422

In case collector is patient it must be the current patient

422

Invalid employee status

422

Invalid signed content

422

Invalid specimen status

422

Legal entity not found

422

Managing_organization does not correspond to user's legal_entity

422

must be greater than 0

422

Must be in past

422

Only one of the parameters must be present

422

Person is not active

422

Person is not found

422

schema validation error

422

Service request expiration date must be greater than or equal to current date

422

Service request is not active or in progress

422

Service request must be related to the same legal entity

422

Service request not found

422

Specimen not found

422

Specimen with id <id> already exists

422

Start date must be in past

422

User is not allowed to register a specimen for the employee

422

value is not allowed in enum

422

value must be greater than 0