-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathPharmanetTransactionLogArchive.cs
More file actions
60 lines (45 loc) · 1.79 KB
/
PharmanetTransactionLogArchive.cs
File metadata and controls
60 lines (45 loc) · 1.79 KB
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
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;
namespace Prime.Models
{
/// <summary>
/// PRIME copy of header information of Pharmanet transactions
/// (originally stored in ODR database).
///
/// This is a copy of PharmannetTransactionLog table to archive older transaction logs. The record in this table
/// will be backed up and moved to S3 storage and deleted from the database.
/// </summary>
[Table("PharmanetTransactionLogArchive")]
public class PharmanetTransactionLogArchive
{
[Key]
public long Id { get; set; }
[JsonIgnore]
public DateTimeOffset CreatedTimeStamp { get; set; }
[JsonProperty("txnId")]
public long TransactionId { get; set; }
[JsonProperty("txnDateTime")]
public DateTime TxDateTime { get; set; }
public string UserId { get; set; }
public string LocationIpAddress { get; set; }
public string SourceIpAddress { get; set; }
[JsonProperty("pharmacyId")]
public string PharmacyId { get; set; }
[JsonProperty("txnType")]
public string TransactionType { get; set; }
[JsonProperty("txnSubtype")]
public string TransactionSubType { get; set; }
[JsonProperty("practitionerId")]
public string PractitionerId { get; set; }
[JsonProperty("collegeRef")]
public string CollegePrefix { get; set; }
[JsonProperty("pnetTxnOutcome")]
public string TransactionOutcome { get; set; }
[JsonProperty("providerSoftwareId")]
public string ProviderSoftwareId { get; set; }
[JsonProperty("providerSoftwareVer")]
public string ProviderSoftwareVersion { get; set; }
}
}