From 3a66d5991709aaddf92340fcce70c7a794dee741 Mon Sep 17 00:00:00 2001 From: Svyatoslav Krivosheev Date: Thu, 8 Feb 2024 14:11:36 +0000 Subject: [PATCH] GITBOOK-3134: change request with no subject merged in GitBook --- .../custom-resources-using-aidbox-project.md | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/modules-1/custom-resources/custom-resources-using-aidbox-project.md b/modules-1/custom-resources/custom-resources-using-aidbox-project.md index 295abd1f..1d4402bc 100644 --- a/modules-1/custom-resources/custom-resources-using-aidbox-project.md +++ b/modules-1/custom-resources/custom-resources-using-aidbox-project.md @@ -250,3 +250,61 @@ In this example, the OurType schema will be used to validate OurType resource, r +
+ +Extending USCore patient + +``` +{ns main + import #{aidbox.index.v1 + aidbox.search-parameter.v1 + aidbox.search-parameter.draft + aidbox + aidbox.repository.v1 + hl7-fhir-us-core.us-core-patient + hl7-fhir-r4-core.string + zen.fhir + awf.task + awf.executor} + + + patient + {:zen/tags #{zen/schema zen.fhir/nested-schema} + :type zen/map + :zen.fhir/type "Patient" + :zen.fhir/version "0.5.11" + :confirms #{hl7-fhir-us-core.us-core-patient/schema} + :keys {:name {:type zen/vector + :every {:type zen/map + :keys {:otherName + {:confirms #{hl7-fhir-r4-core.string/schema} + :fhir/extensionUri "http://someurl/r4/StructureDefinition/Patient-name-otherName"}}}} + :someField {:confirms #{hl7-fhir-r4-core.string/schema} + :fhir/extensionUri "http://someurl/r4/StructureDefinition/Patient-someField"}}} + + patient-repository + {:zen/tags #{aidbox.repository.v1/repository} + :resourceType "Patient" + :base-profile patient + :indexes #{} + :extra-parameter-sources :all + :search-parameters #{my-parameter}} + + repositories + {:zen/tags #{aidbox/service} + :engine aidbox.repository.v1/engine + :repositories #{patient-repository} + :load-default true} + + box {:zen/tags #{aidbox/system} + :services + {:repositories repositories + :task-service awf.task/task-service + :task-executor aidbox/aidbox-long-pool-executor-service + :decisions-executor aidbox/aidbox-decisions-pool-executor-service}}} +``` + +
+ + +