Class: Dcm4chee::Patient

Inherits:
Object
  • Object
show all
Includes:
DataMapper::Resource, DataMapper::Searcher, HasDicomObject
Defined in:
app/models/dcm4chee/patient.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from HasDicomObject

#as_json, #dcm, #dcm_elements

Class Method Details

.repository(name = nil, &block) ⇒ Object



38
39
40
# File 'app/models/dcm4chee/patient.rb', line 38

def self.repository(name = nil, &block)
  super(Dcm4chee.config.repository_name, &block)
end

Instance Method Details

#birthdayString

Returns birthday.

Returns:

  • (String)

    birthday



24
# File 'app/models/dcm4chee/patient.rb', line 24

property :birthday, String, field: 'pat_birthdate'

#genderString

Returns gender.

Returns:

  • (String)

    gender



27
# File 'app/models/dcm4chee/patient.rb', line 27

property :gender, String, field: 'pat_sex'

#idInteger

Returns primary key.

Returns:

  • (Integer)

    primary key



12
# File 'app/models/dcm4chee/patient.rb', line 12

property :id, Serial, field: 'pk'

#move_to_trashObject



34
35
36
# File 'app/models/dcm4chee/patient.rb', line 34

def move_to_trash
  Dcm4chee.content_edit_service.move_patient_to_trash(id)
end

#nameString

Returns patient name.

Returns:

  • (String)

    patient name



21
# File 'app/models/dcm4chee/patient.rb', line 21

property :name, String, field: 'pat_name'

#pat_attrsString

Returns DICOM attributes.

Returns:

  • (String)

    DICOM attributes



30
# File 'app/models/dcm4chee/patient.rb', line 30

dicom_field 'pat_attrs'

#pidInteger

Returns ID of the patient.

Returns:

  • (Integer)

    ID of the patient



15
# File 'app/models/dcm4chee/patient.rb', line 15

property :pid, String, field: 'pat_id'

#pid_issuerString

Returns Issuer of the patient id.

Returns:

  • (String)

    Issuer of the patient id



18
# File 'app/models/dcm4chee/patient.rb', line 18

property :pid_issuer, String, field: 'pat_id_issuer'