Skip to content

Commit ff35da2

Browse files
committed
add record status model
1 parent ab16974 commit ff35da2

File tree

5 files changed

+121
-52
lines changed

5 files changed

+121
-52
lines changed

.vscode/launch.json

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
// Use IntelliSense to find out which attributes exist for C# debugging
3+
// Use hover for the description of the existing attributes
4+
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": ".NET Core Launch (console)",
9+
"type": "coreclr",
10+
"request": "launch",
11+
"preLaunchTask": "build",
12+
// If you have changed target frameworks, make sure to update the program path.
13+
"program": "${workspaceFolder}/RedcapApiDemo/bin/Debug/netcoreapp2.0/RedcapApiDemo.dll",
14+
"args": [],
15+
"cwd": "${workspaceFolder}/RedcapApiDemo",
16+
// For more information about the 'console' field, see https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md#console-terminal-window
17+
"console": "internalConsole",
18+
"stopAtEntry": false,
19+
"internalConsoleOptions": "openOnSessionStart"
20+
},
21+
{
22+
"name": ".NET Core Attach",
23+
"type": "coreclr",
24+
"request": "attach",
25+
"processId": "${command:pickProcess}"
26+
}
27+
,]
28+
}

.vscode/tasks.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "build",
6+
"command": "dotnet",
7+
"type": "process",
8+
"args": [
9+
"build",
10+
"${workspaceFolder}/RedcapApiDemo/RedcapApiDemo.csproj"
11+
],
12+
"problemMatcher": "$msCompile"
13+
}
14+
]
15+
}

RedcapApi/Models/Action.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
namespace Redcap.Models
88
{
99
/// <summary>
10-
/// Action
10+
/// API Action
1111
/// </summary>
1212
public enum RedcapAction
1313
{

RedcapApi/Models/RecordStatus.cs

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
using System.ComponentModel.DataAnnotations;
2+
3+
namespace Redcap.Models
4+
{
5+
/// <summary>
6+
/// Represents the status of the record in redcap
7+
/// </summary>
8+
public enum RedcapStatus
9+
{
10+
/// <summary>
11+
/// Instrument is incomplete for the record
12+
/// </summary>
13+
[Display(Name ="Incomplete")]
14+
Incomplete = 0,
15+
/// <summary>
16+
/// Instrument is unverified for the record
17+
/// </summary>
18+
///
19+
[Display(Name ="Unverified")]
20+
Unverified = 1,
21+
22+
/// <summary>
23+
/// Instrument is complete for the record
24+
/// </summary>
25+
///
26+
[Display(Name ="Complete")]
27+
Complete = 2
28+
}
29+
}

RedcapApi/Redcap.csproj

+48-51
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,49 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
2-
3-
<PropertyGroup>
4-
<TargetFramework>netstandard2.0</TargetFramework>
5-
<Authors>Michael Tran</Authors>
6-
<Company>Virginia Commonwealth University</Company>
7-
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
8-
<RepositoryUrl>https://github.com/cctrbic/redcap-api</RepositoryUrl>
9-
<PackageProjectUrl>https://github.com/cctrbic/redcap-api</PackageProjectUrl>
10-
<Description>This library allows applications on the .NET platform to make http calls to REDCap instances.</Description>
11-
<Product>Redcap Api Library</Product>
12-
<PackageId>RedcapAPI</PackageId>
13-
<Version>1.0.4-beta</Version>
14-
<AssemblyVersion>1.0.4.0</AssemblyVersion>
15-
<PackageTags>redcap api library</PackageTags>
16-
<PackageReleaseNotes>quality of life changes for methods
17-
updated documents
18-
bug fixes</PackageReleaseNotes>
19-
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
20-
<ApplicationIcon />
21-
<OutputType>Library</OutputType>
22-
<StartupObject />
23-
<NeutralLanguage>en</NeutralLanguage>
24-
</PropertyGroup>
25-
26-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
27-
<Optimize>false</Optimize>
28-
<DocumentationFile>bin\Debug\netcoreapp2.0\Redcap.xml</DocumentationFile>
29-
<DebugType>portable</DebugType>
30-
<DebugSymbols>true</DebugSymbols>
31-
<PlatformTarget>AnyCPU</PlatformTarget>
32-
</PropertyGroup>
33-
34-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
35-
<DocumentationFile>bin\Release\netcoreapp1.1\Redcap.xml</DocumentationFile>
36-
</PropertyGroup>
37-
38-
<ItemGroup>
39-
<Compile Remove="bin\**" />
40-
<EmbeddedResource Remove="bin\**" />
41-
<None Remove="bin\**" />
42-
</ItemGroup>
43-
44-
<ItemGroup>
45-
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
46-
<PackageReference Include="Serilog" Version="2.7.1" />
47-
<PackageReference Include="System.ComponentModel.Annotations" Version="4.5.0" />
48-
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
49-
<PackageReference Include="xunit.extensibility.core" Version="2.4.0" />
50-
</ItemGroup>
51-
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project Sdk="Microsoft.NET.Sdk">
3+
<PropertyGroup>
4+
<TargetFramework>netstandard2.0</TargetFramework>
5+
<Authors>Michael Tran</Authors>
6+
<Company>Virginia Commonwealth University</Company>
7+
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
8+
<RepositoryUrl>https://github.com/cctrbic/redcap-api</RepositoryUrl>
9+
<PackageProjectUrl>https://github.com/cctrbic/redcap-api</PackageProjectUrl>
10+
<Description>This library allows applications on the .NET platform to make http calls to REDCap instances.</Description>
11+
<Product>Redcap Api Library</Product>
12+
<PackageId>RedcapAPI</PackageId>
13+
<Version>1.0.4-beta</Version>
14+
<AssemblyVersion>1.0.4.0</AssemblyVersion>
15+
<PackageTags>redcap api library</PackageTags>
16+
<PackageReleaseNotes>quality of life changes for methods
17+
updated documents
18+
bug fixes</PackageReleaseNotes>
19+
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
20+
<ApplicationIcon />
21+
<OutputType>Library</OutputType>
22+
<StartupObject />
23+
<NeutralLanguage>en</NeutralLanguage>
24+
</PropertyGroup>
25+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
26+
<Optimize>false</Optimize>
27+
<DocumentationFile>bin\Debug\netcoreapp2.0\Redcap.xml</DocumentationFile>
28+
<DebugType>portable</DebugType>
29+
<DebugSymbols>true</DebugSymbols>
30+
<PlatformTarget>AnyCPU</PlatformTarget>
31+
</PropertyGroup>
32+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
33+
<DocumentationFile>bin\Release\netcoreapp1.1\Redcap.xml</DocumentationFile>
34+
</PropertyGroup>
35+
<ItemGroup>
36+
<Compile Remove="bin\**" />
37+
<EmbeddedResource Remove="bin\**" />
38+
<None Remove="bin\**" />
39+
</ItemGroup>
40+
<ItemGroup>
41+
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
42+
<PackageReference Include="Serilog" Version="2.7.1" />
43+
<PackageReference Include="System.ComponentModel.Annotations" Version="4.5.0" />
44+
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
45+
<PackageReference Include="xunit.extensibility.core" Version="2.4.0" />
46+
<Content Include="Models\RedcapMetaData.cs" />
47+
<Content Include="Models\RecordStatus.cs" />
48+
</ItemGroup>
5249
</Project>

0 commit comments

Comments
 (0)