PATCH api/v1/diagnosis/by-id/{diagnosisId}?domain={domain}&key={key}&provider_unit={provider_unit}&roles={roles}

Update a given diagnosis for patient. New in 8.12.10.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
domain

The domain ID. This is the name of the municipality's meta domain that the API is reading writing data to.

string

Required

key

The API license key.

string

Required

provider_unit

Not in use

string

None.

roles

Not in use

string

None.

diagnosisId

integer

Required

Body Parameters

Diagnosis
NameDescriptionTypeAdditional information
PatientId

Patient id (Gerica id or national identity number)

string

None.

EmployeeId

Employee id (Gerica id or national identity number).

string

None.

Classification

Diagnosis registry for this diagnosis

DiagnosisClassification

None.

Code

Diagnosis code within ICPC2 or ICD10

string

None.

StartTime

Time of diagnosis

date

None.

EndTime

End time of diagnosis (can be null)

date

None.

Text

Free text (can be null)

string

None.

Physician

Lege, HPR-nummer (can be null). If doctor is not found by HPR number search, this will be unset. A flag will be set in the response to indicate this error.

string

None.

Locked

Locked journal entry?

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "PatientId": "sample string 1",
  "EmployeeId": "sample string 2",
  "Classification": "Icpc2",
  "Code": "sample string 3",
  "StartTime": "2024-11-22T20:01:12.3308869+01:00",
  "EndTime": "2024-11-22T20:01:12.3308869+01:00",
  "Text": "sample string 4",
  "Physician": "sample string 5",
  "Locked": true
}

application/xml, text/xml

Sample:
<Diagnosis xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://lifecare.tieto.com/ec/no/v1">
  <Classification>Icpc2</Classification>
  <Code>sample string 3</Code>
  <EmployeeId>sample string 2</EmployeeId>
  <EndTime>2024-11-22T20:01:12.3308869+01:00</EndTime>
  <Locked>true</Locked>
  <PatientId>sample string 1</PatientId>
  <Physician>sample string 5</Physician>
  <StartTime>2024-11-22T20:01:12.3308869+01:00</StartTime>
  <Text>sample string 4</Text>
</Diagnosis>

Response Information

Resource Description

Update a given diagnosis for patient. New in 8.12.10.

CreateDiagnosisResponse
NameDescriptionTypeAdditional information
DiagnosisId

Journal id of the new diagnosis. Use to update diagnosis later.

integer

None.

PhysicianFound

True iff the doctor is found using HPR number search.

boolean

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.