Class RelationEntity.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • subjectId

        public RelationEntity.Builder subjectId​(String subjectId)
        Subject entity of the relation.

        eg,MEDICINE_NAME, EXAMINATION

        Parameters:
        subjectId - the value to set
        Returns:
        this builder
      • objectId

        public RelationEntity.Builder objectId​(String objectId)
        Object entity of the relation.

        eg, MEDICINE_DOSAGE, MEDICINE_DURATION, MEASUREMENT

        Parameters:
        objectId - the value to set
        Returns:
        this builder
      • type

        public RelationEntity.Builder type​(String type)
        Type of relation between subject entity and object entity.

        eg,EXAMINATION_MEASUREMENT, FREQUENCY, DOSAGE

        Parameters:
        type - the value to set
        Returns:
        this builder
      • score

        public RelationEntity.Builder score​(Double score)
        Score or confidence for detected entity.
        Parameters:
        score - the value to set
        Returns:
        this builder