Class Library
- java.lang.Object
-
- org.hl7.fhir.dstu2016may.model.Base
-
- org.hl7.fhir.dstu2016may.model.BaseResource
-
- org.hl7.fhir.dstu2016may.model.Resource
-
- org.hl7.fhir.dstu2016may.model.DomainResource
-
- org.hl7.fhir.dstu2016may.model.Library
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement,Serializable,org.hl7.fhir.instance.model.api.IAnyResource,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseHasExtensions,org.hl7.fhir.instance.model.api.IBaseHasModifierExtensions,org.hl7.fhir.instance.model.api.IBaseResource,org.hl7.fhir.instance.model.api.IDomainResource
public class Library extends DomainResource
The Library resource provides a representation container for knowledge artifact component definitions. It is effectively an exposure of the header information for a CQL/ELM library.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLibrary.LibraryCodeSystemComponentstatic classLibrary.LibraryLibraryComponentstatic classLibrary.LibraryModelComponentstatic classLibrary.LibraryValueSetComponent
-
Field Summary
Fields Modifier and Type Field Description protected List<Library.LibraryCodeSystemComponent>codeSystemA code system definition used within the library.protected List<DataRequirement>dataRequirementThe dataRequirement element specifies a data requirement used by some expression within the library.static ca.uhn.fhir.rest.gclient.StringClientParamDESCRIPTIONFluent Client search parameter constant for descriptionprotected AttachmentdocumentThe content of the library as an Attachment.static ca.uhn.fhir.rest.gclient.TokenClientParamIDENTIFIERFluent Client search parameter constant for identifierprotected List<Library.LibraryLibraryComponent>libraryA library element describes a library referenced by this library.protected List<Library.LibraryModelComponent>modelA model element describes the model and version used by the library.protected ModuleMetadatamoduleMetadataThe metadata for the library, including publishing, life-cycle, version, documentation, and supporting evidence.protected List<ParameterDefinition>parameterThe parameter element defines parameters used by the library.static StringSP_DESCRIPTIONSearch parameter: descriptionstatic StringSP_IDENTIFIERSearch parameter: identifierstatic StringSP_STATUSSearch parameter: statusstatic StringSP_TITLESearch parameter: titlestatic StringSP_TOPICSearch parameter: topicstatic StringSP_VERSIONSearch parameter: versionstatic ca.uhn.fhir.rest.gclient.TokenClientParamSTATUSFluent Client search parameter constant for statusstatic ca.uhn.fhir.rest.gclient.StringClientParamTITLEFluent Client search parameter constant for titlestatic ca.uhn.fhir.rest.gclient.TokenClientParamTOPICFluent Client search parameter constant for topicprotected List<Library.LibraryValueSetComponent>valueSetA value set definition referenced by the library.static ca.uhn.fhir.rest.gclient.StringClientParamVERSIONFluent Client search parameter constant for version-
Fields inherited from class org.hl7.fhir.dstu2016may.model.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class org.hl7.fhir.dstu2016may.model.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description Library()ConstructorLibrary(Attachment document)Constructor
-
Method Summary
-
Methods inherited from class org.hl7.fhir.dstu2016may.model.DomainResource
addContained, addExtension, addExtension, addModifierExtension, addModifierExtension, copyValues, getContained, getExtension, getExtensionsByUrl, getModifierExtension, getModifierExtensionsByUrl, getText, hasContained, hasExtension, hasModifierExtension, hasText, setText
-
Methods inherited from class org.hl7.fhir.dstu2016may.model.Resource
copyValues, getId, getIdElement, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMeta
-
Methods inherited from class org.hl7.fhir.dstu2016may.model.BaseResource
getStructureFhirVersionEnum, setId
-
Methods inherited from class org.hl7.fhir.dstu2016may.model.Base
castToActionDefinition, castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToModuleMetadata, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToTriggerDefinition, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINN
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
getId, getIdElement, getLanguageElement, getUserData, setId, setUserData
-
-
-
-
Field Detail
-
moduleMetadata
protected ModuleMetadata moduleMetadata
The metadata for the library, including publishing, life-cycle, version, documentation, and supporting evidence.
-
model
protected List<Library.LibraryModelComponent> model
A model element describes the model and version used by the library.
-
library
protected List<Library.LibraryLibraryComponent> library
A library element describes a library referenced by this library.
-
codeSystem
protected List<Library.LibraryCodeSystemComponent> codeSystem
A code system definition used within the library.
-
valueSet
protected List<Library.LibraryValueSetComponent> valueSet
A value set definition referenced by the library.
-
parameter
protected List<ParameterDefinition> parameter
The parameter element defines parameters used by the library.
-
dataRequirement
protected List<DataRequirement> dataRequirement
The dataRequirement element specifies a data requirement used by some expression within the library.
-
document
protected Attachment document
The content of the library as an Attachment. The content may be a reference to a url, or may be directly embedded as a base-64 string. Either way, the content is expected to be a CQL or ELM document.
-
SP_TOPIC
public static final String SP_TOPIC
Search parameter: topicDescription: Topics associated with the module
Type: token
Path: Library.moduleMetadata.topic
- See Also:
- Constant Field Values
-
TOPIC
public static final ca.uhn.fhir.rest.gclient.TokenClientParam TOPIC
Fluent Client search parameter constant for topicDescription: Topics associated with the module
Type: token
Path: Library.moduleMetadata.topic
-
SP_TITLE
public static final String SP_TITLE
Search parameter: titleDescription: Text search against the title
Type: string
Path: Library.moduleMetadata.title
- See Also:
- Constant Field Values
-
TITLE
public static final ca.uhn.fhir.rest.gclient.StringClientParam TITLE
Fluent Client search parameter constant for titleDescription: Text search against the title
Type: string
Path: Library.moduleMetadata.title
-
SP_STATUS
public static final String SP_STATUS
Search parameter: statusDescription: Status of the module
Type: token
Path: Library.moduleMetadata.status
- See Also:
- Constant Field Values
-
STATUS
public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS
Fluent Client search parameter constant for statusDescription: Status of the module
Type: token
Path: Library.moduleMetadata.status
-
SP_DESCRIPTION
public static final String SP_DESCRIPTION
Search parameter: descriptionDescription: Text search against the description
Type: string
Path: Library.moduleMetadata.description
- See Also:
- Constant Field Values
-
DESCRIPTION
public static final ca.uhn.fhir.rest.gclient.StringClientParam DESCRIPTION
Fluent Client search parameter constant for descriptionDescription: Text search against the description
Type: string
Path: Library.moduleMetadata.description
-
SP_IDENTIFIER
public static final String SP_IDENTIFIER
Search parameter: identifierDescription: Logical identifier for the module (e.g. CMS-143)
Type: token
Path: Library.moduleMetadata.identifier
- See Also:
- Constant Field Values
-
IDENTIFIER
public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER
Fluent Client search parameter constant for identifierDescription: Logical identifier for the module (e.g. CMS-143)
Type: token
Path: Library.moduleMetadata.identifier
-
SP_VERSION
public static final String SP_VERSION
Search parameter: versionDescription: Version of the module (e.g. 1.0.0)
Type: string
Path: Library.moduleMetadata.version
- See Also:
- Constant Field Values
-
VERSION
public static final ca.uhn.fhir.rest.gclient.StringClientParam VERSION
Fluent Client search parameter constant for versionDescription: Version of the module (e.g. 1.0.0)
Type: string
Path: Library.moduleMetadata.version
-
-
Constructor Detail
-
Library
public Library()
Constructor
-
Library
public Library(Attachment document)
Constructor
-
-
Method Detail
-
getModuleMetadata
public ModuleMetadata getModuleMetadata()
- Returns:
moduleMetadata(The metadata for the library, including publishing, life-cycle, version, documentation, and supporting evidence.)
-
hasModuleMetadata
public boolean hasModuleMetadata()
-
setModuleMetadata
public Library setModuleMetadata(ModuleMetadata value)
- Parameters:
value-moduleMetadata(The metadata for the library, including publishing, life-cycle, version, documentation, and supporting evidence.)
-
getModel
public List<Library.LibraryModelComponent> getModel()
- Returns:
model(A model element describes the model and version used by the library.)
-
hasModel
public boolean hasModel()
-
addModel
public Library.LibraryModelComponent addModel()
- Returns:
model(A model element describes the model and version used by the library.)
-
addModel
public Library addModel(Library.LibraryModelComponent t)
-
getLibrary
public List<Library.LibraryLibraryComponent> getLibrary()
- Returns:
library(A library element describes a library referenced by this library.)
-
hasLibrary
public boolean hasLibrary()
-
addLibrary
public Library.LibraryLibraryComponent addLibrary()
- Returns:
library(A library element describes a library referenced by this library.)
-
addLibrary
public Library addLibrary(Library.LibraryLibraryComponent t)
-
getCodeSystem
public List<Library.LibraryCodeSystemComponent> getCodeSystem()
- Returns:
codeSystem(A code system definition used within the library.)
-
hasCodeSystem
public boolean hasCodeSystem()
-
addCodeSystem
public Library.LibraryCodeSystemComponent addCodeSystem()
- Returns:
codeSystem(A code system definition used within the library.)
-
addCodeSystem
public Library addCodeSystem(Library.LibraryCodeSystemComponent t)
-
getValueSet
public List<Library.LibraryValueSetComponent> getValueSet()
- Returns:
valueSet(A value set definition referenced by the library.)
-
hasValueSet
public boolean hasValueSet()
-
addValueSet
public Library.LibraryValueSetComponent addValueSet()
- Returns:
valueSet(A value set definition referenced by the library.)
-
addValueSet
public Library addValueSet(Library.LibraryValueSetComponent t)
-
getParameter
public List<ParameterDefinition> getParameter()
- Returns:
parameter(The parameter element defines parameters used by the library.)
-
hasParameter
public boolean hasParameter()
-
addParameter
public ParameterDefinition addParameter()
- Returns:
parameter(The parameter element defines parameters used by the library.)
-
addParameter
public Library addParameter(ParameterDefinition t)
-
getDataRequirement
public List<DataRequirement> getDataRequirement()
- Returns:
dataRequirement(The dataRequirement element specifies a data requirement used by some expression within the library.)
-
hasDataRequirement
public boolean hasDataRequirement()
-
addDataRequirement
public DataRequirement addDataRequirement()
- Returns:
dataRequirement(The dataRequirement element specifies a data requirement used by some expression within the library.)
-
addDataRequirement
public Library addDataRequirement(DataRequirement t)
-
getDocument
public Attachment getDocument()
- Returns:
document(The content of the library as an Attachment. The content may be a reference to a url, or may be directly embedded as a base-64 string. Either way, the content is expected to be a CQL or ELM document.)
-
hasDocument
public boolean hasDocument()
-
setDocument
public Library setDocument(Attachment value)
- Parameters:
value-document(The content of the library as an Attachment. The content may be a reference to a url, or may be directly embedded as a base-64 string. Either way, the content is expected to be a CQL or ELM document.)
-
listChildren
protected void listChildren(List<Property> childrenList)
- Overrides:
listChildrenin classDomainResource
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public void setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
Description copied from class:Basemake an instance of a property. If the property is a repeating property, make a new instance. if the property is not repeating, return the property- Overrides:
makePropertyin classDomainResource- Returns:
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
addChildin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
fhirType
public String fhirType()
- Specified by:
fhirTypein interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
fhirTypein classDomainResource
-
copy
public Library copy()
- Specified by:
copyin classDomainResource
-
equalsDeep
public boolean equalsDeep(Base other)
- Overrides:
equalsDeepin classDomainResource
-
equalsShallow
public boolean equalsShallow(Base other)
- Overrides:
equalsShallowin classDomainResource
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
isEmptyin classDomainResource
-
getResourceType
public ResourceType getResourceType()
- Specified by:
getResourceTypein classResource
-
-