DWVv0.37.0

tests/dicom

Source: dataElement.test.js:14


Instance Methods

dataElementClass()

Tests for DataElement using simple DICOM data.

dicomCodeClass()

Tests for DicomCode using simple DICOM data.

dictionary()

Tests for DicomCode dictionary.

getsegmentationcode()

Tests for getSegmentationCode.

getconceptnamecode()

Tests for getConceptNameCode.

getmeasurementunitscode()

Tests for getMeasurementUnitsCode.

getdateobj()

Tests for getDateObj.

gettimeobj()

Tests for getTimeObj.

gettimeinseconds()

Tests for getTimeInSeconds.

getdate()

Tests for getDate.

getdatetimeobj()

Tests for getDateTimeObj.

datetodateobj()

Tests for dateToDateObj.

datetotimeobj()

Tests for dateToTimeObj.

getdicomdate()

Tests for getDicomDate.

getdicomtime()

Tests for getDicomTime.

getdicomdatetime()

Tests for getDicomDateTime.

dump()

Tests for dcmdump using simple DICOM data. Using remote file for CI integration.

dumpSequence()

Tests for dcmdump using DICOM data with sequences: explicit and undefined length sequences and items, nested sequences. The expected dump matches the DCMTK one (apart from its UID names).

dumpPixelSequence()

Tests for dcmdump using encapsulated pixel data.

dumpNoChange()

Tests that dcmdump does not modify its input.

dicomFunctionalGroupClass()

Tests for DicomFunctionalGroup using simple DICOM data.

getpixelspacing()

Tests for getPixelSpacing.

ismonochrome()

Tests for isMonochrome.

getImage2DSize()

Tests for getImage2DSize.

getPixelAspectRatio()

Tests for getPixelAspectRatio.

getSpacingFromMeasure()

Tests for getSpacingFromMeasure.

getTagPixelUnit()

Tests for getTagPixelUnit.

getOrientationMatrix()

Tests for (@link getOrientationMatrix}.

getDicomMeasureItem()

Tests for getDicomMeasureItem.

getDicomPlaneOrientationItem()

Tests for getDicomPlaneOrientationItem.

getPhotometricInterpretation()

Tests for getPhotometricInterpretation.

isSecondatyCapture()

Tests for isSecondatyCapture.

getReferencedSeriesUID()

Tests for getReferencedSeriesUID.

imagereferenceWithUndefined()

Tests for ImageReference with undefined.

imagereferenceClass()

Tests for ImageReference.

imagereferenceRoundTrip()

Tests for getDicomImageReferenceItem and getImageReference.

getimagereferenceGoodInput()

Tests for getImageReference.

getimagereferenceIncompleteInput()

Tests for getImageReference with incomplete input.

getimagereferenceEmptyInput()

Tests for getImageReference with empty input.

getdicomimagereferenceitemGoodInput()

Tests for getDicomImageReferenceItem.

getdicomimagereferenceitemUndefinedInput()

Tests for getDicomImageReferenceItem with undefined input.

getmanufacturerGoodInput()

Tests for getManufacturer.

getmanufacturerReturnsFirst()

Tests for getManufacturer returns first.

getmanufacturerNoTag()

Tests for getManufacturer with no tag.

getmanufacturerNoValue()

Tests for getManufacturer with no value.

getmanufacturerUndefinedValue()

Tests for getManufacturer with undefined value.

getmanufacturerUndefinedTag()

Tests for getManufacturer with undefined tag.

getnormalisedmanufacturerGe()

Tests for getNormalisedManufacturer for GE.

getnormalisedmanufacturerSiemens()

Tests for getNormalisedManufacturer for Siemens.

getnormalisedmanufacturerPhilips()

Tests for getNormalisedManufacturer for Philipss.

getnormalisedmanufacturerHitachi()

Tests for getNormalisedManufacturer for Hitachi.

getnormalisedmanufacturerUnknown()

Tests for getNormalisedManufacturer for unknown.

getnormalisedmanufacturerEmpty()

Tests for getNormalisedManufacturer for empty.

getnormalisedmanufacturerNoValue()

Tests for getNormalisedManufacturer no value.

getnormalisedmanufacturerReturnsFirst()

Tests for getNormalisedManufacturer returns first.

measuredvalueEmpty()

Tests for empty MeasuredValue.

measuredvalueTostring()

Tests for MeasuredValue toString.

measuredvalueRoundTrip()

Tests for MeasuredValue round trip.

getmeasuredvalueNumeric()

Tests for getMeasuredValue numeric.

getmeasuredvalueFloat()

Tests for getMeasuredValue float.

getmeasuredvalueRational()

Tests for getMeasuredValue rational.

getmeasuredvalueCode()

Tests for getMeasuredValue code.

getmeasuredvalueAll()

Tests for getMeasuredValue all.

getmeasuredvalueNoTag()

Tests for getMeasuredValue no tag.

getdicommeasuredvalueitemNumeric()

Tests for getDicomMeasuredValueItem numeric.

getdicommeasuredvalueitemFloat()

Tests for getDicomMeasuredValueItem float.

getdicommeasuredvalueitemRational()

Tests for getDicomMeasuredValueItem rational.

getdicommeasuredvalueitemCode()

Tests for getDicomMeasuredValueItem code.

getdicommeasuredvalueitemAll()

Tests for getDicomMeasuredValueItem all.

getdicommeasuredvalueitemUndefined()

Tests for getDicomMeasuredValueItem undefined.

getdicommeasuredvalueitemEmpty()

Tests for getDicomMeasuredValueItem empty.

numericmeasurementUndefined()

Tests for NumericMeasurement with undefined.

numericmeasurementValueTostring()

Tests for NumericMeasurement value toString.

numericmeasurementTostring()

Tests for NumericMeasurement toString.

numericmeasurementCodeTostring()

Tests for NumericMeasurement code toString.

numericmeasurementUndefinedTostring()

Tests for NumericMeasurement undefined toString.

numericmeasurementRoundTrip()

Tests for NumericMeasurement round trip.

getnumericmeasurementValue()

Tests for getNumericMeasurement value.

getnumericmeasurementCode()

Tests for getNumericMeasurement code.

getnumericmeasurementGoodInput()

Tests for getNumericMeasurement.

getnumericmeasurementUndefined()

Tests for getNumericMeasurement undefined.

getdicomnumericmeasurementitemValue()

Tests for getDicomNumericMeasurementItem value.

getdicomnumericmeasurementitemCode()

Tests for getDicomNumericMeasurementItem code.

getdicomnumericmeasurementitemGoodInput()

Tests for getDicomNumericMeasurementItem.

getdicomnumericmeasurementitemUndefined()

Tests for getDicomNumericMeasurementItem undefined.

getimplementationclassuid()

Tests for getImplementationClassUID.

compareversions()

Tests for compareVersions.

isversioninbounds()

Tests for isVersionInBounds.

simpleDicomParsing()

Tests for DicomParser using simple DICOM data. Using remote file for CI integration.

simpleDicomParsingUntilTag()

Tests for DicomParser using simple DICOM data. Using remote file for CI integration.

dicomSequenceParsing()

Tests for DicomParser using sequence test DICOM data. Using remote file for CI integration.

charSetCodeExtensions()

Tests for SpecificCharacterSet ISO 2022 IR 149 (Korean) with code extensions.

cleanstring()

Tests for cleanString.

dicomdirParsing()

Tests for DicomParser using DICOMDIR data. Using remote file for CI integration.

integer32PixelData()

Tests for 32 bits integer pixel data parsing.

floatPixelData()

Tests for float pixel data parsing.

getTypedArrayLike()

Tests for getTypedArrayLike.

transferSyntax()

Tests for getTransferSyntaxName and getSyntaxDecompressionName.

dictionary()

Tests for the dictionary edition.

getsuvfactorNoCorrected()

Tests for getSuvFactor without corrected image.

getsuvfactorNoDecay()

Tests for getSuvFactor without decay correction.

getsuvfactorNoUnits()

Tests for getSuvFactor without Units.

getsuvfactorNoWeight()

Tests for getSuvFactor without PatientWeight.

getsuvfactorNoRadio()

Tests for getSuvFactor without RadiopharmaceuticalInformationSequence.

getsuvfactorNoTotalDose()

Tests for getSuvFactor without RadionuclideTotalDose.

getsuvfactorNoHalfLife()

Tests for getSuvFactor without RadionuclideHalfLife.

getsuvfactorGoodInput()

Tests for getSuvFactor.

getsuvfactorRadioStartDate()

Tests for getSuvFactor with RadiopharmaceuticalStartDateTime.

getsuvfactorInvalidWeight()

Tests for getSuvFactor with invalid PatientWeight.

getsuvfactorCorrect()

Tests for getSuvFactor correct.

getcontenttemplate()

Tests for getContentTemplate undefined.

dicomsrcontentTostringHasheader()

Tests for DicomSRContent toString and hasHeader.

isequalcontentitem()

Tests for isEqualContentItem.

getsrcontent()

Tests for getSRContent.

getdicomsrcontentitem()

Tests for getDicomSRContentItem.

getsrcontentCode()

Tests for getSRContent with code value type.

dicomSegmentClass()

Tests for MaskSegment using simple DICOM data.

sopinstancereferenceGoodInput()

Tests for SopInstanceReference.

sopinstancereferenceTostring()

Tests for SopInstanceReference toString.

sopinstancereferenceTostringSopinstance()

Tests for SopInstanceReference toString only SOPInstanceUID.

sopinstancereferenceTostringSopclass()

Tests for SopInstanceReference toString only SOPClassUID.

sopinstancereferenceUndefinedTostring()

Tests for SopInstanceReference undefined toString.

sopinstancereferenceRoundTrip()

Tests for SopInstanceReference round trip.

getsopinstancereferenceGoodInput()

Tests for getSopInstanceReference.

getsopinstancereferenceSopclass()

Tests for getSopInstanceReference only SOPClassUID.

getsopinstancereferenceSopinstance()

Tests for getSopInstanceReference only SOPInstanceUID.

getsopinstancereferenceEmpty()

Tests for getSopInstanceReference empty.

getsopinstancereferenceOtherTag()

Tests for getSopInstanceReference other tag.

getsopinstancereferenceMultiple()

Tests for getSopInstanceReference multiple.

getdicomsopinstancereferenceitemGoodInput()

Tests for getDicomSopInstanceReferenceItem.

getdicomsopinstancereferenceitemSopclass()

Tests for getDicomSopInstanceReferenceItem with SOPClassUID.

getdicomsopinstancereferenceitemSopinstance()

Tests for getDicomSopInstanceReferenceItem with SOPInstanceUID.

getdicomsopinstancereferenceitemUndefined()

Tests for getDicomSopInstanceReferenceItem undefined.

getdicomsopinstancereferenceitemMapping()

Tests for getDicomSopInstanceReferenceItem name mapping.

spatialcoordinateUndefined()

Tests for SpatialCoordinate undefined.

spatialcoordinateTostringPoint()

Tests for SpatialCoordinate toString with POINT.

spatialcoordinateTostringPolyline()

Tests for SpatialCoordinate toString with POLYLINE.

spatialcoordinateRoundTrip()

Tests for SpatialCoordinate round trip.

getspatialcoordinateGoodInput()

Tests for getSpatialCoordinate.

getspatialcoordinateMinimumInput()

Tests for getSpatialCoordinate with minimum input.

getspatialcoordinateEmptyInput()

Tests for getSpatialCoordinate with empty input.

getspatialcoordinateMultipleInput()

Tests for getSpatialCoordinate with multiple input.

getdicomspatialcoordinateitemGoodInput()

Tests for getDicomSpatialCoordinateItem.

getdicomspatialcoordinateitemIncomplete()

Tests for getDicomSpatialCoordinateItem with incomplete input.

getdicomspatialcoordinateitemUndefined()

Tests for getDicomSpatialCoordinateItem with undefined input.

getscoordfromshapePoint2d()

Tests for getScoordFromShape with Point2D.

getscoordfromshapeLine()

Tests for getScoordFromShape with Line.

getscoordfromshapeCircle()

Tests for getScoordFromShape with Circle.

getscoordfromshapeProtractor()

Tests for getScoordFromShape with Protractor.

getscoordfromshapeRoi()

Tests for getScoordFromShape with ROI.

getscoordfromshapeEllipse()

Tests for getScoordFromShape with Ellipse.

getscoordfromshapeRectangle()

Tests for getScoordFromShape with Rectangle.

getscoordfromshapeBidimensionalline()

Tests for getScoordFromShape with BidimensionalLine.

getshapefromscoordBidimensionalline()

Tests for getShapeFromScoord with BidimensionalLine polyline.

getshapefromscoordNoData()

Tests for getShapeFromScoord with no data.

getshapefromscoordNoCoord()

Tests for getShapeFromScoord with no coord.

getshapefromscoordOddCoord()

Tests for getShapeFromScoord with odd coord.

getshapefromscoordPoint()

Tests for getShapeFromScoord with point.

getshapefromscoordPolyline2Points()

Tests for getShapeFromScoord with polyline 2 points.

getshapefromscoordCircle()

Tests for getShapeFromScoord with circle.

getshapefromscoordBadCircle()

Tests for getShapeFromScoord with bad circle.

getshapefromscoordEllipse()

Tests for getShapeFromScoord with ellipse.

getshapefromscoordBadEllipse()

Tests for getShapeFromScoord with bad ellipse.

getshapefromscoordPolyline3Points()

Tests for getShapeFromScoord with polyline 3 points.

getshapefromscoordPolyline4Points()

Tests for getShapeFromScoord with polyline 4 points.

getshapefromscoordPolyline6Points()

Tests for getShapeFromScoord with polyline 6 points.

getshapefromscoordMultipoint()

Tests for getShapeFromScoord with mulitpoint.

spatialcoordinate3dUndefined()

Tests for SpatialCoordinate3D undefined.

spatialcoordinate3dTostring()

Tests for SpatialCoordinate3D toString.

spatialcoordinate3dTostringMultiple()

Tests for SpatialCoordinate3D toString multiple.

spatialcoordinate3dTostringEmpty()

Tests for SpatialCoordinate3D toString empty.

spatialcoordinate3dRoundTrip()

Tests for SpatialCoordinate3D round trip.

getspatialcoordinate3dGoodInput()

Tests for getSpatialCoordinate3D.

getspatialcoordinate3dOnlyGraphic()

Tests for getSpatialCoordinate3D with only graphic type and data.

getspatialcoordinate3dMultiple()

Tests for getSpatialCoordinate3D with mulitple values.

getspatialcoordinate3dOnlyFrame()

Tests for getSpatialCoordinate3D with only frame reference UID.

getspatialcoordinate3dOnlyFiducial()

Tests for getSpatialCoordinate3D with only fiducial UID.

getspatialcoordinate3dEmpty()

Tests for getSpatialCoordinate3D empty.

getspatialcoordinate3dFirstGraphic()

Tests for getSpatialCoordinate3D uses first graphic.

getdicomspatialcoordinate3ditemGood()

Tests for getDicomSpatialCoordinate3DItem.

getdicomspatialcoordinate3ditemOnlyGraphic()

Tests for getDicomSpatialCoordinate3DItem only graphic.

getdicomspatialcoordinate3ditemUndefined()

Tests for getDicomSpatialCoordinate3DItem undefined.

getdicomspatialcoordinate3ditemEmpty()

Tests for getDicomSpatialCoordinate3DItem empty.

getdicomspatialcoordinate3ditemGraphicArr()

Tests for getDicomSpatialCoordinate3DItem preserves graphic array.

dicomTagClass()

Tests for Tag.

gettagfromdictionary()

Tests for getTagFromDictionary.

getuid()

Tests getUID.

writeMultiframe()

Tests for DicomWriter using multiframe DICOM data. Using remote file for CI integration.

writeAnonymised()

Tests for DicomWriter anomnymisation. Using remote file for CI integration.

writeRemovePrivateTags()

Tests for DicomWriter private tags removal.

setRulesNameWarning()

Tests for DicomWriter setRules warning for name based rules.

setRulesUnknownActionWarning()

Tests for DicomWriter setRules warning for unknown actions.

writeUnknownActionFallback()

Tests for DicomWriter unknown action rules fallback.

writeRangeRules()

Tests for DicomWriter range rules.

translateWriterRules()

Tests for translateWriterRules.

writeRuleValueReuse()

Tests for DicomWriter rule values not modified by writing.

writeReplaceMultipleValues()

Tests for DicomWriter replace rules with multiple values.

writeRulesInSequence()

Tests for DicomWriter rules applied to sequence items.

writeAnonymisedAndAddTags()

Tests for DicomWriter anomnymisation and add tags. Using remote file for CI integration.

readWriteSyntheticExplicit()

Tests write/read DICOM data with explicit encoding. Using remote file for CI integration.

readWriteSyntheticExplicitWithRules()

Tests write with rules / read DICOM data with explicit encoding. Using remote file for CI integration.

readWriteSyntheticImplicit()

Tests write/read DICOM data with implicit encoding. Using remote file for CI integration.

readWriteSyntheticImplicitWithRules()

Tests write with rules / read DICOM data with implicit encoding. Using remote file for CI integration.

readWriteSyntheticExplicitBigEndian()

Tests write/read DICOM data with explicit big endian encoding. Using remote file for CI integration.

readWriteSyntheticExplicitBeWithRules()

Tests write with rules / read DICOM data with explicit big endian encoding. Using remote file for CI integration.