DvBoolean

public class DvBoolean extends EhrDatatype

This class represents a DV_BOOLEAN item, according to the definition provided by the OpenEHR Data Type Information Model

Constructors

DvBoolean

public DvBoolean(String path, JSONObject attributes)

Instantiates a new DV_BOOLEAN item.

Parameters:
  • path – the path
  • attributes – the attributes

Methods

fromJSON

public void fromJSON(JSONObject data)

getValue

public boolean getValue()

Gets the current value of this DV_BOOLEAN item

Returns:the current text of this DV_TEXT item

setAttributes

protected void setAttributes(JSONObject attributes)

setValue

public void setValue(boolean value)

Sets the text of this DV_BOOLEAN item

Parameters:
  • text – the new text

toJSON

public JSONObject toJSON()