DvText

public class DvText extends EhrDatatype

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

Constructors

DvText

public DvText(String path, JSONObject attributes)

Instantiates a new DV_TEXT item.

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

Methods

fromJSON

public void fromJSON(JSONObject data)

getText

public String getText()

Gets the current text of this DV_TEXT item

setAttributes

protected void setAttributes(JSONObject attributes)

setText

public void setText(String text)

Sets the text of this DV_TEXT item

Parameters:
  • text – the new text

toJSON

public JSONObject toJSON()