JCasBuilder - apache/ctakes GitHub Wiki
Populate a JCas with creator, patient and document information. This follows the Builder pattern, but can be used to modify an existing cas as well as create one.
- Author: SPF , chip-nlp
- Version: %I%
-
Since: 9/22/2019
Overwrite any information already in a JCas.
-
Returns: this builder.
-
Parameters:
-
institutionIdIdentity of the institution. e.g. hospital, health system, insurance company, study, etc.
-
-
Returns: this builder
-
Parameters:
-
authorSpecialtyThe medical (or professional) specialty of a document's author.
-
-
Returns: this builder
-
Parameters:
-
patientIdThe unique ID of a patient at an institution, in a study, in an insurance database, etc.
-
-
Returns: this builder
-
Parameters:
-
patientNumDepends upon user. e.g. Index of a patient in the run, index/number of the patient in a database, etc.
-
-
Returns: this builder
-
Parameters:
-
firstNamePatient's first name.
-
-
Returns: this builder
-
Parameters:
-
middleNamePatient's middle name.
-
-
Returns: this builder
-
Parameters:
-
lastNamePatient's last name.
-
-
Returns: this builder
-
Parameters:
-
birthdayPatient's date of birth. Format of this date is not controlled.
-
-
Returns: this builder
-
Parameters:
-
deathdayPatient's date of death. Format of this date is not controlled.
-
-
Returns: this builder
-
Parameters:
-
genderPatient's date of gender. Format of this value is not controlled.
-
-
Returns: this builder
-
Parameters:
-
instanceIdThis is pretty nebulous, and can be used for anything.
-
-
Returns: this builder
-
Parameters:
-
encounterIdCan be the same or different from a document ID, or empty.
-
-
Returns: this builder
-
Parameters:
-
docIdDocument ID. Depending upon requirements of the run, this may need to be unique.
-
-
Returns: this builder
-
Parameters:
-
docIdPrefixCan be anything identifying a collection of documents. Patient ID, Document Type, etc.
-
-
Returns: this builder
-
Parameters:
-
docTypethe type of document, for instance imaging note or pathology report.
-
-
Returns: this builder
-
Parameters:
-
docSubTypea subtype. e.g. type = pathology report, subtype = biopsy analysis.
-
-
Returns: this builder
-
Parameters:
-
docStandard-
-
-
Returns: this builder
-
Parameters:
-
docRevisionNumfor a document that may have had several iterations of editing.
-
-
Returns: this builder
-
Parameters:
-
docTimetime of document. Nebulous. First write? Sign off? Also, time format is not specified.
-
-
Returns: this builder
-
Parameters:
-
docPathpath to the file containing the doc, a database cell containing the doc, net location, etc.
-
-
Returns: this builder
Use if the document text should be null.
-
Returns: this builder
-
Parameters:
-
docTexttext contents of the document.
-
-
Returns: this builder
- Returns: a jcas created from scratch and populated with data added in this builder.
-
Exceptions:
-
UIMAExceptionis the fresh jcas cannot be created.
-
-
Parameters:
-
jCasye olde ...
-
-
Returns: a jcas that has been reset (emptied of previous information) and populated with data added in this builder.
-
Parameters:
-
valueset by user or null -
defaultValue-
-
-
Returns: true if the value is not null, and is not the default value or overwrite is true.
-
Parameters:
-
valueset by user or null -
defaultValue-
-
-
Returns: true if the value is not the default value or overwrite is true.
-
Parameters:
-
valueset by user or null -
defaultValue-
-
-
Returns: true if the value is not the default value or overwrite is true.
-
Parameters:
-
jCasye olde ...
-
- Returns: the given jcas populated with the data added in this builder.