This doesn't seem like the right encounter type. Metadata.EncounterType.CHECK_OUT is for checking out of visits rather than discontinuing from programs