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

city in which hospital is located


id

id: number

Hospital unique ID


latitude

latitude: number

Latitude of hospital location


longitude

longitude: number

Longitude of hospital location


name

name: string

Name of hospital


postalCode

postalCode: string

postal code of hospital


region

region: string

region in which hospital is located


street1

street1: string

street address of hospital

Methods

fromJSON

Static fromJSON(hospitalLocation): HospitalLocation

Create from JSON

Parameters

Name

Type

Description

hospitalLocation

any

JSON object

Returns

HospitalLocation