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 |
| id : OrganizationTransactionBundle1 |
| meta |
| profile : http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationTransactionBundle |
| entry |
| request |
| method : POST |
| url : Organization |
| resource |
| id : 2b215323-5606-4dc0-bdfb-961654e394f7 |
| meta |
| profile : http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationalUnit |
| alias : Medicin och akutsjukvård Linköping |
| identifier |
| system : urn:oid:1.2.752.29.4.19 |
| value : SE2321000040-E234515111154 |
| extension |
| url : http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationActiveStatusExtension |
| value : True |
| extension |
| value |
| 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 |
| identifier |
| 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 |
| contact |
| purpose |
| coding |
| code : ADMIN |
| system : http://terminology.hl7.org/CodeSystem/contactentity-type |
| address |
| line : Linköpings centralsjukhus |
| line : Verksamhet medicin och akutsjukvård |
| line : 589 57 |
| line : Linköping |
| contact |
| 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 |
{
"http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationTransactionBundle"
]
},
{
},
},
"Medicin och akutsjukvård Linköping"
],
],
{
"url": "http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationActiveStatusExtension",
},
{
},
}
],
{
{
}
]
}
],
},
{
{
}
]
},
]
},
{
]
},
"Linköpings centralsjukhus",
"Verksamhet medicin och akutsjukvård",
"589 57",
"Linköping"
]
}
},
{
{
}
]
},
]
}
],
}
}
],
}
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 |
| 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]"
],
}
]
}