This file is indexed.

/usr/include/dcmtk/dcmsr/cmr/tid1001.h is in libdcmtk-dev 3.6.1~20160216-4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
/*
 *
 *  Copyright (C) 2015-2016, J. Riesmeier, Oldenburg, Germany
 *  All rights reserved.  See COPYRIGHT file for details.
 *
 *  Header file for class TID1001_ObservationContext
 *
 *  Author: Joerg Riesmeier
 *
 */


#ifndef CMR_TID1001_H
#define CMR_TID1001_H

#include "dcmtk/config/osconfig.h"   /* make sure OS specific configuration is included first */

#include "dcmtk/dcmsr/dsrstpl.h"

#include "dcmtk/dcmsr/cmr/define.h"
#include "dcmtk/dcmsr/cmr/cid7445.h"
#include "dcmtk/dcmsr/cmr/cid7452.h"
#include "dcmtk/dcmsr/cmr/cid7453.h"


/*---------------------*
 *  class declaration  *
 *---------------------*/

/** Implementation of DCMR Template:
 *  TID 1001 - Observation Context (and included templates 1002-1004).
 *  All added content items are annotated with a text in the format "TID 1001 - Row [n]".
 ** @note Please note that the included templates 1005-1010 are not yet supported.
 */
class DCMTK_CMR_EXPORT TID1001_ObservationContext
  : public DSRSubTemplate
{

  public:

    /// type used for storing and managing a list of device participating roles
    typedef OFList<CID7445_DeviceParticipatingRoles> DeviceParticipatingRolesList;

    /** default constructor
     */
    TID1001_ObservationContext();

    /** add content items for TID 1002 (Observer Context) with Observer Type being "Person".
     *  This also includes the content items from TID 1003 (Person Observer Identifying
     *  Attributes).
     ** @param  personName        name of human observer that created the observations
     *                            (mandatory)
     *  @param  organizationName  organization or institution with which the human observer
     *                            is affiliated for the context of the current observation
     *                            (optional)
     *  @param  organizationRole  organizational role of human observer for the context of
     *                            the current observation (optional)
     *  @param  procedureRole     procedural role of human observer for the context of the
     *                            current observation (optional)
     *  @param  check             if enabled, check values for validity before setting them
     ** @return status, EC_Normal if successful, an error code otherwise
     */
    OFCondition addPersonObserver(const OFString &personName,
                                  const OFString &organizationName = "",
                                  const CID7452_OrganizationalRoles &organizationRole = CID7452_OrganizationalRoles(),
                                  const CID7453_PerformingRoles &procedureRole = CID7453_PerformingRoles(),
                                  const OFBool check = OFTrue);

    /** add content items for TID 1002 (Observer Context) with Observer Type being "Device".
     *  This also includes the content items from TID 1004 (Device Observer Identifying
     *  Attributes).
     ** @param  deviceUID         unique identifier of automated device that created the
     *                            observations (mandatory)
     *  @param  deviceName        institution-provided identifier of automated device that
     *                            created the observations (optional)
     *  @param  manufacturer      manufacturer of automated device that created the
     *                            observations (optional)
     *  @param  modelName         manufacturer-provided model name of automated device that
     *                            created the observations (optional)
     *  @param  serialNumber      manufacturer-provided serial number of automated device
     *                            that created the observations (optional)
     *  @param  physicalLocation  location of automated device that created the observations
     *                            whilst the observations were being made (optional)
     *  @param  procedureRoles    the roles played by a device in a procedure (optional,
     *                            multiple values allowed)
     *  @param  stationAEtitle    application entity title of the device (optional)
     *  @param  check             if enabled, check values for validity before setting them
     ** @return status, EC_Normal if successful, an error code otherwise
     */
    OFCondition addDeviceObserver(const OFString &deviceUID,
                                  const OFString &deviceName = "",
                                  const OFString &manufacturer = "",
                                  const OFString &modelName = "",
                                  const OFString &serialNumber = "",
                                  const OFString &physicalLocation = "",
                                  const DeviceParticipatingRolesList &procedureRoles = DeviceParticipatingRolesList(),
                                  const OFString &stationAEtitle = "",
                                  const OFBool check = OFTrue);

    /** add content items for TID 1005 (Procedure Context)
     ** @return always returns EC_NotYetImplemented since this methods has not been implemented yet
     */
    OFCondition addProcedureContext();

    /** add content items for TID 1006 (Subject Context), and included TID 1007-1010
     ** @return always returns EC_NotYetImplemented since this methods has not been implemented yet
     */
    OFCondition addSubjectContext();
};


/*-------------------*
 *  type definition  *
 *-------------------*/

// define short name for the SR template class
typedef TID1001_ObservationContext CMR_TID1001;


#endif