Class: HospitalLocation

domain/HospitalLocation.HospitalLocation

Constructors

constructor

new HospitalLocation(id, latitude, longitude, name, street1, city, region, postalCode)

Location of a hospital

Parameters

Name

Type

Description

id

number

Hospital unique ID

latitude

number

Latitude of hospital location

longitude

number

Longitude of hospital location

name

string

Name of hospital

street1

string

street address of hospital

city

string

city in which hospital is located

region

string

region in which hospital is located

postalCode

string

postal code of hospital

Properties

city

city: string


id

id: number


latitude

latitude: number


longitude

longitude: number


name

name: string


postalCode

postalCode: string


region

region: string


street1

street1: string

Methods

fromJSON

Static fromJSON(hospitalLocation): HospitalLocation

Create from JSON

Parameters

Name

Type

Description

hospitalLocation

any

JSON object

Returns

HospitalLocation