Topicus Healthcare Kotlin DSL for FHIR resource construction
val task = task {
intent = PLAN
id = TEST_ID
description = "Nice stuff"
status = COMPLETED
owner {
literalReference = "https://example.org/test/owner/reference"
}
basedOn {
identifier = identifier("https://example.org/test/uuid", "08733627-8a73-4408-add5-912e61030fbd")
}
requester {
literalReference= "https://example.org/test/requester/reference"
}
}