Docs tweak
This commit is contained in:
parent
ba63f65115
commit
5961fde2dd
|
@ -341,12 +341,20 @@ public class ValidatorExamples {
|
|||
DefaultProfileValidationSupport defaultSupport = new DefaultProfileValidationSupport(ctx);
|
||||
supportChain.addValidationSupport(defaultSupport);
|
||||
|
||||
// This module supplies several code systems that are commonly used in validation
|
||||
supportChain.addValidationSupport(new CommonCodeSystemsTerminologyService(ctx));
|
||||
|
||||
// This module implements terminology services for in-memory code validation
|
||||
supportChain.addValidationSupport(new InMemoryTerminologyServerValidationSupport(ctx));
|
||||
|
||||
// Create a PrePopulatedValidationSupport which can be used to load custom definitions.
|
||||
// In this example we're loading two things, but in a real scenario we might
|
||||
// load many StructureDefinitions, ValueSets, CodeSystems, etc.
|
||||
PrePopulatedValidationSupport prePopulatedSupport = new PrePopulatedValidationSupport(ctx);
|
||||
prePopulatedSupport.addStructureDefinition(someStructureDefnition);
|
||||
prePopulatedSupport.addValueSet(someValueSet);
|
||||
|
||||
// Add the custom definitions to the chain
|
||||
supportChain.addValidationSupport(prePopulatedSupport);
|
||||
|
||||
// Wrap the chain in a cache to improve performance
|
||||
|
|
|
@ -1,19 +1,3 @@
|
|||
/*
|
||||
Copyright 2021 Marcel Parciak <marcel.parciak@med.uni-goettingen.de>
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
package org.hl7.fhir.common.hapi.validation.validator;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
@ -36,6 +20,15 @@ import ca.uhn.fhir.context.FhirContext;
|
|||
import ca.uhn.fhir.context.RuntimeCompositeDatatypeDefinition;
|
||||
import ca.uhn.fhir.context.RuntimePrimitiveDatatypeDefinition;
|
||||
|
||||
/**
|
||||
* This class can be used to generate resources using FHIRPath expressions.
|
||||
*
|
||||
* Note that this is an experimental feature and the API is expected to change. Ideally
|
||||
* this will be made version independent and moved out of the validation module
|
||||
* in a future release.
|
||||
*
|
||||
* @author Marcel Parciak <marcel.parciak@med.uni-goettingen.de>
|
||||
*/
|
||||
public class FHIRPathResourceGeneratorR4<T extends Resource> {
|
||||
|
||||
private FhirContext ctx;
|
||||
|
|
Loading…
Reference in New Issue