<gh_stars>0
import NoKnownAllergy from '../shr/allergy/NoKnownAllergy';

class FluxNoKnownAllergy {
    constructor(json) {
        this._noKnownAllergy = NoKnownAllergy.fromJSON(json);
    }
    
    get entryInfo() {
        return this._noKnownAllergy.entryInfo;
    }
    
    /*
     *  Getter for no known allergy
     *  Returns displayText string for no known allergy
     */
    get noKnownAllergy() {
        return this._noKnownAllergy.value.coding[0].displayText;
    }

    /*
     *  Getter for code
     */
    get code() {
        return this._noKnownAllergy.value.coding[0].code;
    }

    toJSON() {
        return this._noKnownAllergy.toJSON();
    }
}

export default FluxNoKnownAllergy;