//----------------------------------------------------
//
// Generated by www.easywsdl.com
// Version: 5.7.0.0
//
// Created by Quasar Development 
//
//---------------------------------------------------


import Foundation

/**
* vocSet: T19250 (C-0-T19250-cpt)
*/

public enum EPA_FdV_AUTHZ_CodingRationale:Int,CustomStringConvertible
{
    case  SH
    case  HL7
    case  SRC

    static func createWithXml(node:DDXMLNode) -> EPA_FdV_AUTHZ_CodingRationale?
    {
        return createWithString(value: node.stringValue!)
    }

    static func createWithString(value:String) -> EPA_FdV_AUTHZ_CodingRationale?
    {
        var i = 0
        while let item = EPA_FdV_AUTHZ_CodingRationale(rawValue: i) 
        {
            if String(describing: item) == value
            {
                return item
            }
            i += 1
        }
       return nil
    }

    public var stringValue : String
    {
        return description
    }

    public var description : String
    {
        switch self
        {
            case  .SH: return "SH"
            case  .HL7: return "HL7"
            case  .SRC: return "SRC"
        }
    }

    public func getValue() -> Int
    {
        return rawValue
    }

    func serialize(__parent:DDXMLNode)
    {
        __parent.stringValue = stringValue
    }
}


        
