public class LifeCardItem
extends java.lang.Object
implements java.io.Serializable
The object is stored (as a BLOB) as a part of the LcMain record (entity). The record does only contain values for convenience to handle DB / SEHR data at the zone host.
The physical (delivered) card itself is managed by LC_CAD (card administrative data) records. So the misleading field name lcid is not the LcMain reference but the LcCad ID.
Constructor and Description |
---|
LifeCardItem() |
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getDoB() |
int |
getEMConContactId() |
java.lang.String |
getEMConFQName() |
java.lang.String |
getEMConPhone() |
java.lang.String |
getFirstname() |
java.lang.Short |
getGender()
Gender of the person.
|
java.lang.String |
getIdentNo()
ID/Number of a passport or driver licence.
|
java.lang.Short |
getIdentType()
Type of identification: drivers lic, passport, ssn.
|
int |
getLcid()
Get the assigned and issued (plastic) card id.
|
java.lang.String |
getLcPrintnumber() |
java.lang.String |
getMiddle() |
byte[] |
getPhoto()
Photo.
|
java.lang.String |
getProblem()
The problem as string (printed on the card).
|
byte[] |
getPublicKey()
Public Key.
|
byte[] |
getQrcode() |
short |
getSts()
Status of the LifeCARD main entry (not card entry).
|
java.lang.String |
getSuffix() |
java.lang.String |
getSurname() |
java.lang.String |
getTitle() |
java.lang.String |
getVersion()
Version.
|
void |
setDoB(java.util.Date dob) |
void |
setEMConContactId(int EMConContactId) |
void |
setEMConFQName(java.lang.String EMConFQName) |
void |
setEMConPhone(java.lang.String EMConPhone) |
void |
setFirstname(java.lang.String firstname) |
void |
setGender(java.lang.Short gender)
Gender of the person.
|
void |
setIdentNo(java.lang.String no)
ID/Number of a passport or driver licence.
|
void |
setIdentType(java.lang.Short identtype)
Type of identification: drivers lic, passport, ssn.
|
void |
setLcid(int lcid)
The issued card id from LcCad.
|
void |
setLcPrintnumber(java.lang.String lcprintnumber) |
void |
setMiddle(java.lang.String middle) |
void |
setPhoto(byte[] photo)
Photo.
|
void |
setProblem(java.lang.String problem)
The problem as string to be printed on the card.
|
void |
setPublicKey(byte[] publicKey)
Public Key.
|
void |
setQrcode(byte[] qrcode) |
void |
setSts(short sts)
Status of the LifeCARD main entry (not card entry).
|
void |
setSuffix(java.lang.String suffix) |
void |
setSurname(java.lang.String surname) |
void |
setTitle(java.lang.String title) |
void |
setVersion(java.lang.String version)
Version.
|
java.lang.String |
toString() |
public short getSts()
SEHRConstants.LifeCARD_STS_NEW
public void setSts(short sts)
sts
- the sts to setSEHRConstants.LifeCARD_STS_NEW
public int getLcid()
A patient may have more than one physically delivered cards during his life, e.g. i a card got lost or broken. This is the id of the current card that has been delivered to the patient.
By the conventions of SEHR the LcCad recording is very important and a provider (card issuer) implement this.
public void setLcid(int lcid)
lcid
- the issued card id to set; use LcCadPK.getLcid()!public java.lang.String getLcPrintnumber()
public void setLcPrintnumber(java.lang.String lcprintnumber)
lcprintnumber
- the lcprintnumber to setpublic byte[] getQrcode()
public void setQrcode(byte[] qrcode)
qrcode
- the qrcode to setpublic java.lang.String getFirstname()
public void setFirstname(java.lang.String firstname)
firstname
- the firstname to setpublic java.lang.String getSurname()
public void setSurname(java.lang.String surname)
surname
- the surname to setpublic java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- the title to setpublic java.lang.String getMiddle()
public void setMiddle(java.lang.String middle)
middle
- the middle to setpublic java.lang.String getSuffix()
public void setSuffix(java.lang.String suffix)
suffix
- the suffix to setpublic java.util.Date getDoB()
public java.lang.Short getGender()
public void setGender(java.lang.Short gender)
gender
- the gender to setpublic void setDoB(java.util.Date dob)
dob
- the date of birth to setpublic java.lang.String getEMConFQName()
public void setEMConFQName(java.lang.String EMConFQName)
EMConFQName
- the EMConFQName to setpublic java.lang.String getEMConPhone()
public void setEMConPhone(java.lang.String EMConPhone)
EMConPhone
- the EMConPhone to setpublic int getEMConContactId()
public void setEMConContactId(int EMConContactId)
EMConContactId
- the EMConContactId to setpublic java.lang.String getProblem()
e.g. 'ICD E11', 'Penicillin Allergy', 'CHD since 1995'
public void setProblem(java.lang.String problem)
It is the descision of the patient to print a note or not!
problem
- the problem to setpublic java.lang.String getIdentNo()
public void setIdentNo(java.lang.String no)
no
- the to setpublic byte[] getPhoto()
public void setPhoto(byte[] photo)
photo
- the photo (bytes)public byte[] getPublicKey()
By convention a patient is responsible to secure his data.
The patient creates by himself a PPK for the Public Private Key
Infrastructure (PKI) of SEHR.
PKI systems are quite complex and there are in fact some costs to operate
them. By the specification of SEHR it is impotant that at least for a
ginven zone the systems are able to talk to each another.
public void setPublicKey(byte[] publicKey)
By convention a patient is responsible to secure his data.
The patient creates by himself a PPK for the Public Private Key
Infrastructure (PKI) of SEHR. For more informations ses attribute
description.
publicKey
- The public key to setpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Short getIdentType()
public void setIdentType(java.lang.Short identtype)
identtype
- the identtype to setpublic java.lang.String getVersion()
Set by LifeCARDObjectHandler to the version of the current structure.
public void setVersion(java.lang.String version)
Set by LifeCARDObjectHandler to the version of the current structure.
version
- the version to setConstants.LIFECARD_VERSION