# US real-world data networks: pharma rwd-us-networks

The pharma rwd-us-networks commands, with each dataset's columns, units and source credit.

A US real-world-data network (N3C, the NIH National Clinical Cohort Collaborative, today): the institutions that hold a published agreement with it (a DTA data transfer, a DUA data use or an LHBA, the code N3C publishes), the RX suppliers they match and the public project roster. A custodian list, not a capability register: an agreement is a signature, not evidence that data arrived or was used. NCATS OpenData, CC BY.

Id: The network key, lower-case letters and digits (n3c today). The block on /rwd-networks is the web page. Matching is exact.

## Commands

| Command | Reads |
| --- | --- |
| pharma rwd-us-networks list | US real-world data networks (N3C) |
| pharma rwd-us-networks get <id> | One us real-world data network and the datasets reachable from it |
| pharma rwd-us-networks get <id> rwd-us-network-memberships | US real-world data network membership (N3C) |
| pharma rwd-us-networks get <id> rwd-us-network-projects | US real-world data network projects (N3C) |

Every command takes the paging, sorting and output flags described on the CLI page; the CLI prints the source credit with every result.

- [Pharma Observatory CLI](https://pharmaobservatory.com/cli)

## US real-world data networks (N3C)

**Command**

```sh
pharma rwd-us-networks list
```

One row per US real-world-data (RWD) network, N3C (the NIH National Clinical Cohort Collaborative) today: how many institutions hold each kind of published agreement with NCATS, how many resolve to an organization and to an RX supplier, and N3C's own published counts labelled as N3C's. A custodian list, not a capability register: an agreement is a signature, not evidence that data arrived or was used.

One row per: US RWD network. Key columns: `network_key`.

Source: NCATS OpenData, CC BY (CC BY 4.0 (dashboard footer: "NCATS OpenData is licensed under a CC BY license"); NIH NCATS U.S. federal government work)

| Column | Type | Unit | Description |
| --- | --- | --- | --- |
| network_key | text |  | The network key, the entry key of the rwd_us_networks object type (n3c today). |
| network_source | text |  | The source the network rows come from. |
| network_name | text |  | The network's name. |
| network_operator | text |  | The operating body. |
| member_total | integer |  | Institutions holding at least one published agreement, our count of the register. |
| members_with_dta | integer |  | Institutions holding a Data Transfer Agreement. |
| members_with_current_dta | integer |  | Institutions with a DTA row whose published term end is on or after the retrieval date. |
| members_with_dua | integer |  | Institutions holding a Data Use Agreement. |
| members_with_current_dua | integer |  | Institutions with a DUA row within its published term. |
| members_with_lhba | integer |  | Institutions holding an agreement published with the type code LHBA. |
| members_resolved_org | integer |  | Members resolved to an organization on the spine. |
| members_matched_rx | integer |  | Members matched to at least one RX provider, by an exact method visible in rwd_us_network_memberships. |
| published_dta_count | integer |  | N3C's own published count of DTAs, as N3C labels it. Differs from ours; not reconciled. |
| published_dua_count | integer |  | N3C's own published count of DUAs. Differs from ours; not reconciled. |
| published_institution_count | integer |  | N3C's own published count of institutions. Differs from ours; not reconciled. |
| published_project_count | integer |  | N3C's own published count of projects. Differs from ours; not reconciled. |
| as_of | date |  | The retrieval date of the agreement snapshot. |
| source_url | text |  | The API endpoint the agreements came from. |
| agreements_url | text |  | The public N3C dashboard. |
| signatories_page_url | text |  | N3C's HTML signatories page, kept as a documented reconciliation and not ingested. |
| retrieved_at | timestamp |  | When the snapshot was retrieved, in UTC. |
| attribution | text |  | The credit line every surface carrying this data prints. |

## US real-world data network membership (N3C)

**Command**

```sh
pharma rwd-us-networks get <id> rwd-us-network-memberships
```

Which institutions hold a published agreement with a US real-world-data network (N3C, the NIH National Clinical Cohort Collaborative), one row per ASSERTION: (network, institution, RX supplier or none, match method). A member matched to two suppliers is two rows with the method visible; a member matched to none is one row with match_method unmatched. Count distinct institution_name_key to count members, never rows. EXAMPLE, members and their agreement kinds: SELECT institution_name_key, institution_name, membership_kind, has_current_dta, has_current_dua FROM rwd_us_network_memberships WHERE network_key = 'n3c' GROUP BY institution_name_key, institution_name, membership_kind, has_current_dta, has_current_dua ORDER BY institution_name_key LIMIT 100. A custodian list, not a capability register: an agreement is a signature, not evidence that data arrived or was used. Per-institution project counts are a read-time rollup over rwd_us_network_projects (SELECT institution_name_key, count(*) FILTER (WHERE workspace_status = 'Active') AS active_projects, count(*) AS projects FROM rwd_us_network_projects GROUP BY 1).

One row per: network, institution, supplier and match method (an unmatched member is one row). Key columns: `membership_assertion_id`.

Source: NCATS OpenData, CC BY (CC BY 4.0 (dashboard footer: "NCATS OpenData is licensed under a CC BY license"); NIH NCATS U.S. federal government work)

| Column | Type | Unit | Description |
| --- | --- | --- | --- |
| membership_assertion_id | text |  | The assertion id: a hash of the network, institution, provider uuid and match method. |
| network_source | text |  | The source the member rows come from. |
| network_key | text |  | The network key, the entry key of the rwd_us_networks object type. |
| network_name | text |  | The network's name. |
| network_operator | text |  | The operating body. |
| membership_kind | text |  | The strongest agreement the institution holds. membership_kind is the strongest agreement the institution holds (dta_signatory, else dua_signatory, else lhba_signatory), never data contributor. |
| has_dta | boolean |  | The institution holds at least one published DTA (Data Transfer Agreement) row. |
| has_dua | boolean |  | The institution holds at least one published DUA (Data Use Agreement) row. |
| has_lhba | boolean |  | The institution holds at least one agreement published with the type code LHBA, which N3C does not expand. |
| has_current_dta | boolean |  | A DTA row's published term end is on or after the retrieval date. |
| has_current_dua | boolean |  | A DUA row is within its published term. |
| has_current_lhba | boolean |  | An LHBA row is within its published term. |
| first_executed_on | date |  | The earliest published execution date over the institution's agreement rows. |
| latest_term_ends_on | date |  | The latest published term end over the institution's rows. |
| agreement_count | integer |  | Published agreement rows folded into this member. |
| institution_name | text |  | The institution as N3C publishes it (the ROR name). |
| institution_name_key | text |  | The normalized name key, the join key to other name-keyed datasets. |
| ror_id | text |  | The bare ROR id (Research Organization Registry) N3C published; null when it published a domain instead. |
| institution_domain | text |  | The organization's email domain as published, an organization domain and not a personal address. |
| is_lead | boolean |  | Null for N3C, which has no lead concept; false would be a false No. |
| as_of | date |  | The retrieval date of the agreement snapshot. |
| source_url | text |  | The API endpoint the agreements came from. |
| retrieved_at | timestamp |  | When the snapshot was retrieved, in UTC. |
| org_id | text |  | The organization spine id the member resolved to, or null. Carried, never minted. |
| org_name | text |  | The spine organization's name. |
| org_match_rung | text |  | How the member reached the organization: ror_exact (the source's own ROR id), xref, match_keys, ambiguous or unresolved. |
| org_match_tier | text |  | The tier of the organization match (ror_exact is high, stated as the source's own identifier). |
| org_match_confidence | numeric |  | The organization match confidence (0.95 on ror_exact). |
| provider_id | text |  | The RX supplier id as text, the entry key of the suppliers object type. Null on an unmatched row. |
| provider_uuid | text |  | The Scientist.com public provider uuid. Null on an unmatched row. |
| provider_slug | text |  | The supplier's marketplace slug. |
| provider_name | text |  | The supplier's name. |
| match_method | text |  | How the supplier was matched: org_member_exact (through the resolved organization), rx_name_key_exact (an exact name match, not a verified identity) or unmatched (no provider). |
| also_matched_by_name | boolean |  | True on an org_member_exact row whose provider also matches by name; null on an unmatched row. |
| match_confidence | numeric |  | The organization match confidence passed through on org_member_exact; null on rx_name_key_exact and unmatched. |
| member_total | integer |  | Members of the network, the register-wide denominator printed beside any count. |
| members_with_current_dta | integer |  | Network members with a DTA within its published term. |
| members_with_current_dua | integer |  | Network members with a DUA within its published term. |
| members_resolved_org | integer |  | Network members resolved to an organization. |
| members_matched_rx | integer |  | Network members matched to at least one RX provider. |
| attribution | text |  | The credit line every surface carrying this data prints. |

## US real-world data network projects (N3C)

**Command**

```sh
pharma rwd-us-networks get <id> rwd-us-network-projects
```

One row per project (a Data Use Request) on the public N3C roster: title, accessing institution, status, type, the principal investigator's name (personal data, tagged contains_personal_data, never a gate) and, where the PI's name and the institution's organization both agreed with one person on the spine, that person. The measured resolution rate rides on every row (projects_with_resolved_pi over project_total) and it is small. Per-institution counts are a read-time rollup, never columns. EXAMPLE, active projects per institution: SELECT institution_name_key, count(*) FILTER (WHERE workspace_status = 'Active') AS active_projects, count(*) AS projects FROM rwd_us_network_projects GROUP BY institution_name_key ORDER BY projects DESC, institution_name_key LIMIT 100. The free-text project text never lands.

One row per: N3C project. Key columns: `project_id`.

Source: NCATS OpenData, CC BY (CC BY 4.0 (dashboard footer: "NCATS OpenData is licensed under a CC BY license"); NIH NCATS U.S. federal government work)

| Column | Type | Unit | Description |
| --- | --- | --- | --- |
| project_id | text |  | The N3C project id (a Data Use Request uid), the grain. |
| network_key | text |  | The network key, the entry key of the rwd_us_networks object type. |
| title | text |  | The project title as N3C publishes it. |
| institution_name | text |  | The accessing institution as published. |
| institution_name_key | text |  | The normalized name key; joins to rwd_us_network_memberships.institution_name_key. |
| pi_name | text |  | Personal data: the principal investigator's name as N3C's public dashboard publishes it. Landed whole, tagged, never a gate (#5143). |
| workspace_status | text |  | The project's workspace status as N3C publishes it. |
| project_type | text |  | The project type as N3C publishes it. |
| is_task_team | boolean |  | Whether N3C marks the project as a task team. |
| contains_personal_data | boolean |  | True wherever pi_name is populated. A tag, never a gate (#5143). |
| personal_data_fields | text |  | The personal-data columns of the row, as a JSON list: ["pi_name"]. |
| as_of | date |  | The retrieval date of the roster snapshot. |
| source_url | text |  | The API endpoint the roster came from. |
| retrieved_at | timestamp |  | When the snapshot was retrieved, in UTC. |
| org_id | text |  | The organization spine id of the accessing institution, or null. Carried, never minted. |
| org_name | text |  | The spine organization's name. |
| institution_ror_id | text |  | The bare ROR id N3C published for the institution where it is a network member; null otherwise. |
| org_match_rung | text |  | How the institution reached the organization: ror_exact, xref, match_keys, ambiguous or unresolved. |
| org_match_tier | text |  | The tier of the organization match. |
| org_match_confidence | numeric |  | The organization match confidence. |
| institution_is_network_member | boolean |  | Whether the accessing institution itself holds a published agreement. |
| pi_person_id | text |  | A resolved person on the spine, by name plus organization; see pi_match_method. The entry key of the investigators object type; null when unresolved. |
| pi_match_method | text |  | How the PI was matched: name_org_spine (name and organization agreed with one spine person), name_org_reporter (a unique NIH RePORTER PI at the same organization), ambiguous (more than one candidate, never picked) or unresolved. |
| pi_corroborated | boolean |  | False on every row: no shared trial or paper corroborates the name-plus-organization match. |
| pi_reporter_pi_id | text |  | NIH RePORTER's persistent PI_ID, an external key published as a labelled attribute, never as a resolved person; set where a unique RePORTER PI shares the name and organization. |
| candidate_person_count | integer |  | On an ambiguous row, the number of distinct spine persons the evidence could not choose between; otherwise 0. |
| also_matched_by_reporter | boolean |  | True on a name_org_spine row whose person the RePORTER arm also reached. |
| project_total | integer |  | Projects in the roster, the denominator of the resolution rate. |
| projects_with_institution_on_spine | integer |  | Projects whose institution resolved to a spine organization. |
| projects_with_resolved_pi | integer |  | Projects whose PI resolved to a spine person; over project_total it is the measured resolution rate. |
| projects_with_reporter_pi_id | integer |  | Projects carrying a RePORTER PI_ID. |
| attribution | text |  | The credit line every surface carrying this data prints. |
