Page Status: draft 2025-08-06
Examples of error messages
This page contains examples of HVOOperationOutcome in order to demonstrate how a return body might look like after an operation results in warnings or errors. See Error handling for more information on error handling.
Warning
This is an example of HVOOperationOutcome containing information about warnings that occured as a result of an operation.
OperationOutcome |
id : OperationResultedInWarnings |
issue |
details |
coding |
code : 2-34-317 |
system : http://electronichealth.se/CodeSystem/error-codes |
display : Tidpunkt har angetts för dateTime 2025-02-28T09:48:00 men endast datum lagras |
severity : warning |
code : invalid |
{
{
{
}
]
},
}
]
}
Failed transaction Bundle
This is an example of HVOOperationOutcome containing information about errors that occured as a result of HVOOrganizationTransactionBundle. See this example for how a request body might look like.
Note that the issue.expression field is used to indicate which entry the issue belongs to, where Bundle.entry[0] references the first entry in the Bundle.
OperationOutcome |
id : FailedHVOOrganizationTransactionBundle |
issue |
details |
coding |
code : 2-34-303 |
system : http://electronichealth.se/CodeSystem/error-codes |
display : 12345-6789 är ett ogiltigt format för organisationsnummer |
expression : Bundle.entry[0] |
severity : error |
code : invalid |
issue |
details |
coding |
code : 2-34-301 |
system : http://electronichealth.se/CodeSystem/error-codes |
display : Organisationsnumret 1234567890 är inte registrerat hos Bolagsverket |
expression : Bundle.entry[2] |
severity : error |
code : business-rule |
{
{
{
}
]
},
"Bundle.entry[0]"
],
},
{
{
}
]
},
"Bundle.entry[2]"
],
}
]
}