19.1.33. camcops_server.cc_modules.cc_recipdef


Copyright (C) 2012-2018 Rudolf Cardinal (rudolf@pobox.com).

This file is part of CamCOPS.

CamCOPS is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

CamCOPS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with CamCOPS. If not, see <http://www.gnu.org/licenses/>.


class camcops_server.cc_modules.cc_recipdef.RecipientDefinition(config: configparser.ConfigParser = None, section: str = None)[source]

Class representing HL7/file recipient.

Full details of parameters are in the demonstration config file.

get_filename(req: CamcopsRequest, is_anonymous: bool = False, surname: str = None, forename: str = None, dob: pendulum.datetime.DateTime = None, sex: str = None, idnum_objects: List[PatientIdNum] = None, creation_datetime: pendulum.datetime.DateTime = None, basetable: str = None, serverpk: int = None) → str[source]

Get filename, for file transfers.

static get_id_aa(req: CamcopsRequest, which_idnum: int) → str[source]

Get HL7 ID type for a specific ID number.

static get_id_type(req: CamcopsRequest, which_idnum: int) → str[source]

Get HL7 ID type for a specific ID number.

using_file() → bool[source]

Is the recipient a filestore?

using_hl7() → bool[source]

Is the recipient an HL7 recipient?

valid(req: CamcopsRequest) → bool[source]

Is this definition valid?