{
  "profile": "tabular-data-package",
  "name": "everything-morgantown-hsds",
  "title": "Everything Morgantown listings in Open Referral HSDS",
  "description": "Organizations and services in Morgantown and Monongalia County, WV, in the column names of Open Referral HSDS 3.1.1. Details change; check each listing's source before you act. Sources and checked dates for every record are in https://everythingmorgantown.org/api/v1/orgs.json and https://everythingmorgantown.org/api/v1/resources.json.",
  "homepage": "https://everythingmorgantown.org/data/",
  "version": "1.0.0",
  "licenses": [
    {
      "name": "CC-BY-4.0",
      "path": "https://creativecommons.org/licenses/by/4.0/",
      "title": "Creative Commons Attribution 4.0. Credit \"Everything Morgantown\" and link to https://everythingmorgantown.org"
    }
  ],
  "sources": [
    {
      "title": "Everything Morgantown",
      "path": "https://everythingmorgantown.org"
    }
  ],
  "resources": [
    {
      "name": "organizations",
      "path": "organizations.csv",
      "profile": "tabular-data-resource",
      "format": "csv",
      "mediatype": "text/csv",
      "encoding": "utf-8",
      "schema": {
        "fields": [
          {
            "name": "id",
            "type": "string",
            "format": "uuid"
          },
          {
            "name": "name",
            "type": "string"
          },
          {
            "name": "description",
            "type": "string"
          },
          {
            "name": "website",
            "type": "string",
            "format": "uri"
          },
          {
            "name": "uri",
            "type": "string",
            "format": "uri"
          }
        ],
        "primaryKey": "id"
      }
    },
    {
      "name": "services",
      "path": "services.csv",
      "profile": "tabular-data-resource",
      "format": "csv",
      "mediatype": "text/csv",
      "encoding": "utf-8",
      "schema": {
        "fields": [
          {
            "name": "id",
            "type": "string",
            "format": "uuid"
          },
          {
            "name": "organization_id",
            "type": "string",
            "format": "uuid"
          },
          {
            "name": "name",
            "type": "string"
          },
          {
            "name": "description",
            "type": "string"
          },
          {
            "name": "url",
            "type": "string",
            "format": "uri"
          },
          {
            "name": "email",
            "type": "string",
            "format": "email"
          },
          {
            "name": "status",
            "type": "string"
          },
          {
            "name": "eligibility_description",
            "type": "string"
          },
          {
            "name": "application_process",
            "type": "string"
          },
          {
            "name": "fees_description",
            "type": "string"
          },
          {
            "name": "last_modified",
            "type": "string",
            "format": "date-time"
          }
        ],
        "primaryKey": "id",
        "foreignKeys": [
          {
            "fields": "organization_id",
            "reference": {
              "resource": "organizations",
              "fields": "id"
            }
          }
        ]
      }
    },
    {
      "name": "phones",
      "path": "phones.csv",
      "profile": "tabular-data-resource",
      "format": "csv",
      "mediatype": "text/csv",
      "encoding": "utf-8",
      "schema": {
        "fields": [
          {
            "name": "id",
            "type": "string",
            "format": "uuid"
          },
          {
            "name": "organization_id",
            "type": "string",
            "format": "uuid"
          },
          {
            "name": "service_id",
            "type": "string",
            "format": "uuid"
          },
          {
            "name": "number",
            "type": "string"
          },
          {
            "name": "type",
            "type": "string"
          }
        ],
        "primaryKey": "id",
        "foreignKeys": [
          {
            "fields": "organization_id",
            "reference": {
              "resource": "organizations",
              "fields": "id"
            }
          },
          {
            "fields": "service_id",
            "reference": {
              "resource": "services",
              "fields": "id"
            }
          }
        ]
      }
    },
    {
      "name": "schedules",
      "path": "schedules.csv",
      "profile": "tabular-data-resource",
      "format": "csv",
      "mediatype": "text/csv",
      "encoding": "utf-8",
      "schema": {
        "fields": [
          {
            "name": "id",
            "type": "string",
            "format": "uuid"
          },
          {
            "name": "service_id",
            "type": "string",
            "format": "uuid"
          },
          {
            "name": "description",
            "type": "string"
          }
        ],
        "primaryKey": "id",
        "foreignKeys": [
          {
            "fields": "service_id",
            "reference": {
              "resource": "services",
              "fields": "id"
            }
          }
        ]
      }
    }
  ]
}
