use of org.openmrs.module.metadatadeploy.builder.ConceptMapBuilder in project openmrs-module-pihcore by PIH.
the class MockConcepts method diagnosis.
private Concept diagnosis(String name, ConceptSource source, String mapping) {
Concept concept = diagnosis(name);
concept.addConceptMapping(new ConceptMapBuilder(uuid()).type(sameAs).ensureTerm(source, mapping).build());
return concept;
}
use of org.openmrs.module.metadatadeploy.builder.ConceptMapBuilder in project openmrs-module-pihcore by PIH.
the class MockConcepts method finding.
private Concept finding(String name, ConceptDatatype datatype, ConceptSource source, String mapping) {
Concept concept = baseConcept(name);
concept.setDatatype(datatype);
concept.setConceptClass(finding);
concept.addConceptMapping(new ConceptMapBuilder(uuid()).type(sameAs).ensureTerm(source, mapping).build());
return concept;
}
use of org.openmrs.module.metadatadeploy.builder.ConceptMapBuilder in project openmrs-module-pihcore by PIH.
the class ConceptsFromMetadataSharing method diagnosis.
private Concept diagnosis(String name, ConceptSource source, String mapping) {
Concept concept = diagnosis(name);
concept.addConceptMapping(new ConceptMapBuilder(uuid()).type(sameAs).ensureTerm(source, mapping).build());
return concept;
}
use of org.openmrs.module.metadatadeploy.builder.ConceptMapBuilder in project openmrs-module-pihcore by PIH.
the class ConceptsFromMetadataSharing method question.
private Concept question(String name, ConceptDatatype datatype, ConceptSource source, String mapping) {
Concept concept = baseConcept(name);
concept.setDatatype(datatype);
concept.setConceptClass(question);
concept.addConceptMapping(new ConceptMapBuilder(uuid()).type(sameAs).ensureTerm(source, mapping).build());
return concept;
}
use of org.openmrs.module.metadatadeploy.builder.ConceptMapBuilder in project openmrs-module-pihcore by PIH.
the class ConceptsFromMetadataSharing method finding.
private Concept finding(String name, ConceptDatatype datatype, ConceptSource source, String mapping) {
Concept concept = baseConcept(name);
concept.setDatatype(datatype);
concept.setConceptClass(finding);
concept.addConceptMapping(new ConceptMapBuilder(uuid()).type(sameAs).ensureTerm(source, mapping).build());
return concept;
}
Aggregations