private static ThingBase ToHealthVault(this DocumentReference documentReference, Type type)
        {
            if (type == typeof(File))
            {
                return(documentReference.ToFile());
            }

            if (type == typeof(CCR))
            {
                return(documentReference.ToCCR());
            }

            if (type == typeof(CDA))
            {
                return(documentReference.ToCDA());
            }

            return(null);
        }