diff --git a/tooling/src/main/java/org/opencds/cqf/tooling/library/LibraryProcessor.java b/tooling/src/main/java/org/opencds/cqf/tooling/library/LibraryProcessor.java index 11a950e65..f817fa78d 100644 --- a/tooling/src/main/java/org/opencds/cqf/tooling/library/LibraryProcessor.java +++ b/tooling/src/main/java/org/opencds/cqf/tooling/library/LibraryProcessor.java @@ -11,6 +11,7 @@ import org.apache.commons.io.FilenameUtils; import org.hl7.fhir.instance.model.api.IBaseResource; +import org.hl7.fhir.r4b.model.Enumerations; import org.hl7.fhir.r5.model.CodeableConcept; import org.hl7.fhir.r5.model.Coding; import org.hl7.fhir.r5.model.Attachment; @@ -212,6 +213,8 @@ private List internalRefreshGeneratedContent(List sourceLibrar if (existingLibrary == null) { Library newLibrary = new Library(); newLibrary.setName(fileInfo.getIdentifier().getId()); + newLibrary.setTitle((newLibrary.getName())); + newLibrary.setDescription(String.format("%s: %s", Enumerations.ResourceTypeEnum.LIBRARY.getDisplay(), newLibrary.getTitle())); newLibrary.setVersion(fileInfo.getIdentifier().getVersion()); newLibrary.setUrl(String.format("%s/Library/%s", (newLibrary.getName().equals("FHIRHelpers") ? "http://hl7.org/fhir" : canonicalBase), fileInfo.getIdentifier().getId())); newLibrary.setId(newLibrary.getName() + (versioned ? "-" + newLibrary.getVersion() : ""));