AdamSlack / sideways

Software implementation of the Strock Drivers Screening Assessment digitised system.
GNU General Public License v3.0
1 stars 0 forks source link

Clinician Localisation Service is missing #30

Closed AdamSlack closed 6 years ago

AdamSlack commented 6 years ago

Service implementation relating to the posting of localization preset information is missing.

Some methods that allow data to be posted to the server needs to be implemented. It also needs to use the authentication service.

AdamSlack commented 6 years ago

I'm working on this.

There is now a baseline localisation setup service thing in the clinician application see the clinician-participant-setup branch.

Also, please review these classes for the data we collect on localisation presets for tests.


export class GeneralDetails {
    testHeading: string = '';
    testInstructions: string = '';
}

export class MatrixDetails {
    headingsLabel : string = '';
    deckLabel : string = '';
}

export class RoadSignScenario {
    roadSignName : string = '';
    scenarioName : string = '';
    scenarioImage : string = '';
    roadSignImage : string = '';
    signXPos : number = 0;
    signYPos : number = 0;
}

export class DotCancellationInstructions {
    // Dot Cancellation Instructions
    general : GeneralDetails = new GeneralDetails();
}

export class CompassDirections {
    // Compass Directions Instructions
    general : GeneralDetails = new GeneralDetails();
    matrix : MatrixDetails = new MatrixDetails();
}

export class CarDirections {
    // Car Directions Instructions
    general : GeneralDetails = new GeneralDetails();
    matrix : MatrixDetails = new MatrixDetails();
}

export class RoadSigns {
    // Road Signs Instructions
    general : GeneralDetails = new GeneralDetails();
    deckLabel : string  = '';
    scenarios : Array<RoadSignScenario> = []
}

export class TrailMaking {
    general : GeneralDetails = new GeneralDetails();
    trailA : Array<string> = [];
    trailB : Array<string> = [];
}

export class LocalePreset {
    public name : string  = '';
    public dotCancellation : DotCancellationInstructions = new DotCancellationInstructions();
    public compassDirections : CompassDirections = new CompassDirections();
    public carDirections : CarDirections = new CarDirections();
    public roadSigns : RoadSigns = new RoadSigns();
    public trailMaking : TrailMaking = new TrailMaking();
}
AdamSlack commented 6 years ago

Closing, its present. Needs testing with server.