Cumuluz Translate Implementation Guide
0.1.0 - ci-build
Cumuluz Translate Implementation Guide - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
POST /fhir/r4/$validate
This endpoint validates an R4 resource against a requested target profile.
The service validates on the R4 side only. It does not expose source-side STU3 validation as part of the public contract.
The validation surface accepts either:
Parameters request with resource and profilemeta.profileThe Parameters form is the clearest and is the preferred form for clients.
{
"resourceType": "Parameters",
"parameter": [
{
"name": "resource",
"resource": {
"resourceType": "Patient",
"meta": {
"profile": [
"http://nictiz.nl/fhir/StructureDefinition/nl-core-Patient"
]
}
}
},
{
"name": "profile",
"valueCanonical": "http://nictiz.nl/fhir/StructureDefinition/nl-core-Patient"
}
]
}
The service also exposes type-level validation routes for currently supported R4 resource types:
POST /fhir/r4/Patient/$validatePOST /fhir/r4/Condition/$validatePOST /fhir/r4/Procedure/$validatePOST /fhir/r4/Observation/$validatePOST /fhir/r4/AllergyIntolerance/$validatePOST /fhir/r4/Encounter/$validatePOST /fhir/r4/CareTeam/$validatePOST /fhir/r4/Appointment/$validatePOST /fhir/r4/MedicationRequest/$validatePOST /fhir/r4/MedicationStatement/$validatePOST /fhir/r4/MedicationDispense/$validatePOST /fhir/r4/Provenance/$validateThese routes reject mismatched resource types.
For example, POST /fhir/r4/Procedure/$validate rejects a Patient body with an OperationOutcome.
The validation response is a FHIR OperationOutcome.
Current HTTP behavior is:
200 when the outcome contains only information or warning400 when the outcome contains error or fatalThat means clients should inspect both:
OperationOutcomeThe validator is intentionally useful for target-side quality checks, but not every warning means the translation failed.
Current known behavior includes:
ig/input/examples/patient-validate-request.jsonig/input/examples/patient-validate-response.jsonClients that need a strict go/no-go decision should treat error and fatal as blocking and review warnings according to their own policy.
Validation follows the same target families as translation.
nl-core 2020 when the translated output is meant to fit the Dutch profile familyeu-base when the translated output is meant to fit the European profile familyFor background on the target families themselves, see Target Profiles.
GET /fhir/r4/metadata returns a FHIR CapabilityStatement describing the R4-facing validation surface and the supported target profiles per resource type.