Java Code Examples for org.hl7.fhir.dstu3.model.StructureDefinition#SP_NAME

The following examples show how to use org.hl7.fhir.dstu3.model.StructureDefinition#SP_NAME . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: StructureDefinitionDao.java    From careconnect-reference-implementation with Apache License 2.0 6 votes vote down vote up
public List<StructureDefinition> search (FhirContext ctx,
									  @OptionalParam(name = StructureDefinition.SP_NAME) StringParam name,
									  @OptionalParam(name = StructureDefinition.SP_PUBLISHER) StringParam publisher,
									  @OptionalParam(name = StructureDefinition.SP_URL) UriParam url
) {
	List<StructureDefinitionEntity> qryResults = searchEntity(ctx,name,publisher, url);
	List<StructureDefinition> results = new ArrayList<>();

	for (StructureDefinitionEntity structureDefinitionEntity : qryResults)
	{

		StructureDefinition structureDefinition = structureDefinitionEntityToFHIRStructureDefinitionTransformer.transform(structureDefinitionEntity, ctx);

		results.add(structureDefinition);

	}
	return results;
}
 
Example 2
Source File: StructureDefinitionProvider.java    From careconnect-reference-implementation with Apache License 2.0 5 votes vote down vote up
@Search
public List<StructureDefinition> search(HttpServletRequest theRequest,
                                        @OptionalParam(name = StructureDefinition.SP_NAME) StringParam name,
                                        @OptionalParam(name = StructureDefinition.SP_PUBLISHER) StringParam publisher,
                                        @OptionalParam(name = StructureDefinition.SP_URL) UriParam url
) {
    return structureDefinitionDao.search(ctx, name, publisher, url);
}