asDicomAccessionNumber

Casts this SearchByAttributeValue as a DicomAccessionNumber and retrieves its kotlin.String value. Throws an exception if the SearchByAttributeValue is not a DicomAccessionNumber.