Class ChEmedRatioWithEmedUnits
java.lang.Object
org.hl7.fhir.r4.model.Base
org.hl7.fhir.r4.model.Element
org.hl7.fhir.r4.model.Type
org.hl7.fhir.r4.model.Ratio
org.projecthusky.fhir.emed.ch.epr.datatypes.ChEmedRatioWithEmedUnits
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement
,Serializable
,org.hl7.fhir.instance.model.api.IBase
,org.hl7.fhir.instance.model.api.IBaseDatatype
,org.hl7.fhir.instance.model.api.IBaseElement
,org.hl7.fhir.instance.model.api.IBaseHasExtensions
,org.hl7.fhir.instance.model.api.ICompositeType
public class ChEmedRatioWithEmedUnits
extends org.hl7.fhir.r4.model.Ratio
The HAPI custom structure for CH-EMED-RatioWithEmedUnits.
- Author:
- Ronaldo Loureiro
- See Also:
-
Field Summary
Fields inherited from class org.hl7.fhir.r4.model.Ratio
denominator, numerator
Fields inherited from class org.hl7.fhir.r4.model.Element
extension, id
-
Constructor Summary
ConstructorDescriptionEmpty constructor for the parser.ChEmedRatioWithEmedUnits
(ChEmedQuantityWithEmedUnits numerator, ChEmedQuantityWithEmedUnits denominator) Empty constructor for the parser. -
Method Summary
Modifier and TypeMethodDescriptioncopy()
@Nullable ChEmedQuantityWithEmedUnits
@Nullable ChEmedQuantityWithEmedUnits
Resolves the numerator quantity ornull
.setDenominator
(ChEmedQuantityWithEmedUnits denominator) Sets the denominator quantity.setNumerator
(ChEmedQuantityWithEmedUnits numerator) Sets the numerator quantity.Methods inherited from class org.hl7.fhir.r4.model.Ratio
addChild, copyValues, equalsDeep, equalsShallow, fhirType, getDenominator, getNamedProperty, getNumerator, getProperty, getTypesForProperty, hasDenominator, hasNumerator, isEmpty, listChildren, makeProperty, removeChild, setDenominator, setNumerator, setProperty, setProperty, typedCopy
Methods inherited from class org.hl7.fhir.r4.model.Element
addExtension, addExtension, addExtension, copyExtensions, copyNewExtensions, copyValues, getExtension, getExtensionByUrl, getExtensionFirstRep, getExtensionsByUrl, getExtensionsByUrl, getExtensionString, getId, getIdBase, getIdElement, hasExtension, hasExtension, hasExtension, hasExtension, hasId, hasIdElement, isDisallowExtensions, noExtensions, removeExtension, setDisallowExtensions, setExtension, setId, setIdBase, setIdElement
Methods inherited from class org.hl7.fhir.r4.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCanonical, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExpression, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMarketingStatus, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPopulation, castToPositiveInt, castToProdCharacteristic, castToProductShelfLife, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToSubstanceAmount, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUrl, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, copyValues, dateTimeValue, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, getXhtml, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isDateTime, isMetadataBased, isPrimitive, isResource, 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.IBase
getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
Methods inherited from interface org.hl7.fhir.instance.model.api.IBaseElement
getUserData, setUserData
-
Constructor Details
-
ChEmedRatioWithEmedUnits
public ChEmedRatioWithEmedUnits()Empty constructor for the parser. -
ChEmedRatioWithEmedUnits
public ChEmedRatioWithEmedUnits(ChEmedQuantityWithEmedUnits numerator, ChEmedQuantityWithEmedUnits denominator) Empty constructor for the parser.
-
-
Method Details
-
resolveNumerator
@ExpectsValidResource public @Nullable ChEmedQuantityWithEmedUnits resolveNumerator() throws InvalidEmedContentExceptionResolves the numerator quantity ornull
.- Returns:
- the numerator quantity or
null
. - Throws:
InvalidEmedContentException
- if the numerator quantity isn't of the right type.
-
resolveDenominator
@ExpectsValidResource public @Nullable ChEmedQuantityWithEmedUnits resolveDenominator() throws InvalidEmedContentException- Throws:
InvalidEmedContentException
-
setNumerator
Sets the numerator quantity.- Parameters:
numerator
- the numerator quantity.- Returns:
- this.
-
setDenominator
Sets the denominator quantity.- Parameters:
denominator
- the denominator quantity.- Returns:
- this.
-
copy
- Overrides:
copy
in classorg.hl7.fhir.r4.model.Ratio
-