{"$schema":"http://json-schema.org/draft-07/schema#","title":"service","type":"object","properties":{"id":{"type":"string","description":"Each service must have a unique identifier."},"organization":{"type":"object","properties":{"id":{"type":"string","pattern":"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}","description":"Each organization must have a unique identifier."},"name":{"type":"string","description":"The official or public name of the organization."},"description":{"type":"string","description":"A brief summary about the organization. It can contain markup such as HTML or Markdown."},"email":{"type":"string","format":"email","description":"The contact e-mail address for the organization."},"url":{"type":"string","format":"uri","pattern":"^(https?|wss?|ftp)://","description":"The URL (website address) of the organization."},"logo":{"type":"string","description":"A URL to an image associated with the organization which can be presented alongside its name."},"uri":{"type":"string","format":"uri","pattern":"^(https?|wss?|ftp)://","description":"A persistent identifier to uniquely identify the organization."}},"required":["id","name","description"]},"name":{"type":"string","description":"The official or public name of the service."},"description":{"type":"string","description":"A description of the service. It can contain markup such as HTML or Markdown."},"url":{"type":"string","format":"uri","pattern":"^(https?|wss?|ftp)://","description":"URL of the service"},"email":{"type":"string","format":"email","description":"Email address for the service"},"status":{"type":"string","description":"The current status of the service.","enum":["active","inactive","defunct","temporarily closed"]},"fees":{"type":"string","description":"Details of any charges for service users to access this service.\r\n\r\nApplication Profile Notes: Use structured information where available in preference to this text field. LGA defines an extension table for 'cost_option'. This 'fees' field can contain a single human-readable description of costs. The 'cost_option' table can optionally add a further breakdown that can be filtered on."},"accreditations":{"type":"string","description":"Details of any accreditations. Accreditation is the formal evaluation of an organization or program against best practice standards set by an accrediting organization.\r\n\r\nApplication Profile Notes: Use structured information where available in preference to this text field. LGA defines an extension table for 'review'. This 'accreditations' field can contain a single human-readable description of reviews. The 'review' table can optionally add a further breakdown that can be filtered on."},"deliverable_type":{"type":"string","description":"A categorisation of the nature of the output of the Service.\r\n\r\nApplication Profile Notes: Expected to reference a taxonomy rather than an enueration in future versions","enum":["Advice","Assessment","Counselling","Equipment","Financial Support","Information","Permission","Training"]},"assured_date":{"type":"string","description":"The date that the information about the service was last checked"},"attending_type":{"type":"string","description":"How to attend this service.\r\n\r\nApplication Profile Notes: Expected to reference a taxonomy ratehr than an enueration in future versions","enum":["phone","online","venue","home visit"]},"attending_access":{"type":"string","description":"Access restrictions for this service.\r\n\r\nApplication Profile Notes: Expected to reference a taxonomy ratehr than an enueration in future versions","enum":["referral","appointment","membership","drop-in"]},"service_taxonomies":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Each service must have a unique identifier."},"taxonomy":{"type":"object","properties":{"id":{"type":"string","description":"Each taxonomy entry must have a unique identifier. If combining multiple taxonomies with overlapping identifiers, use a prefix to distinguish them. The prefix can be a CURIE which must be resolvable by all software consuming the data."},"name":{"type":"string","description":"The name of this taxonomy term or category."},"parent_id":{"type":"string","description":"If this is a child category in a hierarchical taxonomy, give the identifier of the parent category. For top-level categories, this should be left blank."},"vocabulary":{"type":"string","description":"If this is an established taxonomy, detail which taxonomy is in use. For example, AIRS or Open Eligibility."}},"required":["id","name"]}},"required":["id","taxonomy"]}},"service_at_locations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Each entry must have a unique identifier."},"location":{"type":"object","properties":{"id":{"type":"string","description":"Each location must have a unique identifier"},"name":{"type":"string","description":"The name of the location"},"description":{"type":"string","description":"A description of this location."},"latitude":{"type":"number","description":"Y coordinate of location expressed in decimal degrees in WGS84 datum."},"longitude":{"type":"number","description":"X coordinate of location expressed in decimal degrees in WGS84 datum."}},"required":["id"]}},"required":["id","location"]}},"contacts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Each contact must have a unique identifier"},"name":{"type":"string","description":"The name of the person"},"title":{"type":"string","description":"The job title of the person"}},"required":["id"]}},"regular_schedules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Each entry must have a unique identifier"},"service_at_location":{"type":"object","properties":{"id":{"type":"string","description":"Each entry must have a unique identifier."},"location":{"type":"object","properties":{"id":{"type":"string","description":"Each location must have a unique identifier"},"name":{"type":"string","description":"The name of the location"},"description":{"type":"string","description":"A description of this location."},"latitude":{"type":"number","description":"Y coordinate of location expressed in decimal degrees in WGS84 datum."},"longitude":{"type":"number","description":"X coordinate of location expressed in decimal degrees in WGS84 datum."}},"required":["id"]}},"required":["id","location"]},"weekday":{"type":"integer","description":"The day of the week that this entry relates to\r\n\r\nApplication Profile Notes: Although this is required in the base Open Referral UK schema, it may not be suitable for an iCal schedule record."},"opens_at":{"type":"string","format":"time","description":"The time when a service or location opens. This should use HH:MM format and should include timezone information, either adding the suffix 'Z' when the date is in UTC, or including an offset from UTC (e.g. 09:00-05:00 for 9am East Coast Time. "},"closes_at":{"type":"string","format":"time","description":"The time when a service or location opens. This should use HH:MM format and should include timezone information, either adding the suffix 'Z' when the date is in UTC, or including an offset from UTC (e.g. 09:00-05:00 for 9am East Coast Time."},"valid_from":{"type":"string","format":"date","description":"The date from which the schedule information is valid."},"valid_to":{"type":"string","format":"date","description":"The last date on which the schedule information is valid."},"dtstart":{"type":"string","format":"date","description":"iCal - The date of the first event is the schedule. Necessary when using the 'interval' feature\r\n\r\nApplication Profile Notes: Necessary when using the 'interval' feature."},"freq":{"type":"string","description":"iCal - How often the frequency repeats. E.g. Frequency use one of WEEKLY or MONTHLY.\r\n\r\nApplication Profile Notes: See the 'interval' field for combinations to make other frequencies.","enum":["WEEKLY","MONTHLY"]},"interval":{"type":"number","description":"iCal - How often the frequency repeats. E.g. Interval 2 for Frequency WEEKLY gives Fortnightly\r\n\r\nApplication Profile Notes: For example - interval 2 for freq WEEKLY gives Fortnightly"},"byday":{"type":"string","description":"iCal - Comma seperated days of the week. E.g. SU,MO,TU,WE,TH,FR,SA. Where freq is MONTHLY each part can be preceded by a positive or negative integer to represent which occurrence in a month. E.g. 2MO is the second Monday in a month. -1FR is the last Friday"},"bymonthday":{"type":"number","description":"iCal - Day number in a month if frequency is MONTHLY \r\n\r\nApplication Profile Notes: if freq is MONTHLY"},"description":{"type":"string","description":"Human readable description of the availability of the service.\r\n\r\nApplication Profile Notes: Should match up with the iCAL field. E.g. 'The 2nd Monday of every month from 8:00pm till 12:00pm'"}},"required":["id","weekday"]}},"holiday_schedules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Each entry must have a unique identifier"},"service_at_location":{"type":"object","properties":{"id":{"type":"string","description":"Each entry must have a unique identifier."},"location":{"type":"object","properties":{"id":{"type":"string","description":"Each location must have a unique identifier"},"name":{"type":"string","description":"The name of the location"},"description":{"type":"string","description":"A description of this location."},"latitude":{"type":"number","description":"Y coordinate of location expressed in decimal degrees in WGS84 datum."},"longitude":{"type":"number","description":"X coordinate of location expressed in decimal degrees in WGS84 datum."}},"required":["id"]}},"required":["id","location"]},"closed":{"type":"boolean","description":"Indicates if a service or location is closed during a public holiday"},"opens_at":{"type":"string","format":"time","description":"The time when a service or location opens. This should use HH:MM format and should include timezone information, either adding the suffix 'Z' when the date is in UTC, or including an offset from UTC (e.g. 09:00-05:00 for 9am East Coast Time."},"closes_at":{"type":"string","format":"time","description":"The time when a service or location closes. This should use HH:MM format and should include timezone information, either adding the suffix 'Z' when the date is in UTC, or including an offset from UTC (e.g. 09:00-05:00 for 9am East Coast Time."},"start_date":{"type":"string","format":"date","description":"The first day that a service or location is closed during a public or private holiday"},"end_date":{"type":"string","format":"date","description":"The last day that a service or location is closed during a public or private holiday"}},"required":["id","closed","start_date","end_date"]}},"fundings":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Each entry must have a unique identifier"},"source":{"type":"string","description":"A free text description of the source of funds for this organization or service."}},"required":["id"]}},"eligibilities":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Each entry must have a unique identifier"},"eligibility":{"type":"string","description":"The rules or guidelines that determine who can receive the service.\r\n\r\nApplication Profile Notes: Use structured information where available in preference to this text field. OR permitted values should be removed from the LGA Application Profile.","enum":["adult","child","teen","family","female","male","Transgender","Transgender - M to F","Transgender - F to M"]},"minimum_age":{"type":"number","description":"The minimum age required to meet this eligibility requirement."},"maximum_age":{"type":"number","description":"The maximum age required to meet this eligibility requirement."}},"required":["id","minimum_age","maximum_age"]}},"service_areas":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Each service area must have a unique identifier"},"service_area":{"type":"string","description":"The geographic area where a service is available. This is a free-text description, and so may be precise or indefinite as necessary."},"extent":{"type":"string","description":"A definition of the polygon defining the area, in geojson."},"uri":{"type":"string","description":"A persistent identifier to identify an area."}},"required":["id"]}},"languages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Each language must have a unique identifier"},"language":{"type":"string","description":"Languages, other than English, in which the service is delivered. Languages are listed as ISO639-1 codes."}},"required":["id"]}},"cost_options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Each entry must have a unique identifier"},"valid_from":{"type":"string","format":"date","description":"When this price is valid from"},"valid_to":{"type":"string","format":"date","description":"When this price is valid to"},"option":{"type":"string","description":"Conditions associated with the cost option.\r\n\r\nApplication Profile Notes: e.g."},"amount":{"type":"number","pattern":"currency","description":"The cost of the option, expresssed as an amount in a currency (expected to be GBP by Open Referral UK)."},"amount_description":{"type":"string","description":"Specific details qualifying the cost amount, e.g. 'per session'"}},"required":["id"]}},"reviews":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Each entry must have a unique identifier"},"organization":{"type":"object","properties":{"id":{"type":"string","pattern":"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}","description":"Each organization must have a unique identifier."},"name":{"type":"string","description":"The official or public name of the organization."},"description":{"type":"string","description":"A brief summary about the organization. It can contain markup such as HTML or Markdown."},"email":{"type":"string","format":"email","description":"The contact e-mail address for the organization."},"url":{"type":"string","format":"uri","pattern":"^(https?|wss?|ftp)://","description":"The URL (website address) of the organization."},"logo":{"type":"string","description":"A URL to an image associated with the organization which can be presented alongside its name."},"uri":{"type":"string","format":"uri","pattern":"^(https?|wss?|ftp)://","description":"A persistent identifier to uniquely identify the organization."}},"required":["id","name","description"]},"title":{"type":"string","description":"The title of the review"},"description":{"type":"string","description":"A detailed description of this review"},"date":{"type":"string","format":"date","description":"The date of the review"},"score":{"type":"string","description":"The review score\r\n\r\nApplication Profile Notes: e.g. '3 star'"},"url":{"type":"string","description":"A URL were the review can be read"},"widget":{"type":"string","description":"Code that can be embedded into a web page to give more information about a review."}},"required":["id"]}}},"required":["id","organization","name"]}