Page Status: draft updated 2025-11-12

Create/Update organization hierarchy (HVOOrganizationTransactionBundle)

See HVOOrganizationTransactionBundle for information about how to use the Bundle.

Examples

Create a hierarchy with a healthcare unit

Bundle
{
"resourceType": "Bundle",
"id": "OrganizationTransactionBundle1",
"meta": {
"profile": [
"http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationTransactionBundle"
]
},
"entry": [
{
"request": {
"method": "POST",
"url": "Organization"
},
"resourceType": "Organization",
"id": "2b215323-5606-4dc0-bdfb-961654e394f7",
"meta": {
"profile": [
"http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationalUnit"
]
},
"alias": [
"Medicin och akutsjukvård Linköping"
],
{
"system": "urn:oid:1.2.752.29.4.19",
"value": "SE2321000040-E234515111154"
}
],
{
"url": "http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationActiveStatusExtension",
"valueBoolean": true
},
{
"start": "1970-01-01"
},
"url": "http://hl7.org/fhir/StructureDefinition/organization-period"
}
],
"type": [
{
"coding": [
{
"code": "43741000",
"system": "http://snomed.info/sct",
"version": "http://snomed.info/sct/45991000052106"
}
]
}
],
"partOf": {
"system": "urn:oid:2.5.4.97",
"value": "2948377738"
},
"reference": "123-456-789"
},
"contact": [
{
"purpose": {
"coding": [
{
"code": "CATADMIN",
"system": "http://electronichealth.se/CodeSystem/fhir/hvo-extended-contact-entity-type"
}
]
},
"telecom": [
{
"system": "email",
"value": "admin.lcs@linkoping.com"
}
]
},
{
"purpose": {
"coding": [
{
"code": "ADMIN",
"system": "http://terminology.hl7.org/CodeSystem/contactentity-type"
}
]
},
"address": {
"line": [
"Linköpings centralsjukhus",
"Verksamhet medicin och akutsjukvård",
"589 57",
"Linköping"
]
}
},
{
"purpose": {
"coding": [
{
"code": "PROF",
"system": "http://electronichealth.se/CodeSystem/fhir/hvo-extended-contact-entity-type"
}
]
},
"telecom": [
{
"system": "phone",
"value": "+46426165677"
}
]
}
],
"name": "Medicin och akutsjukvård, Linköping"
}
}
],
"type": "transaction"
}

HVOOperationOutcome returned with errors

The example below shows how a HVOOperationOutcome might look like if any entries in the Bundle contains errors. 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
{
"resourceType": "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"
}
]
},
"Bundle.entry[0]"
],
"severity": "error",
"code": "invalid"
},
{
"details": {
"coding": [
{
"code": "2-34-301",
"system": "http://electronichealth.se/CodeSystem/error-codes",
"display": "Organisationsnumret 1234567890 är inte registrerat hos Bolagsverket"
}
]
},
"Bundle.entry[2]"
],
"severity": "error",
"code": "business-rule"
}
]
}